npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mixin-cli

v0.2.0

Published

Command Line Tools to easy Mixin DApp Development

Downloads

6

Readme

mixin-cli

build status code coverage code style styled with prettier made with lass license

Command line tool set that easy DApp development in Mixin Network.

Table of Contents

Install

yarn add mixin-cli --global
# OR npm install mixin-cli -g

Usage

Please note that currently only mixin dapp:config works.

$ mixin
Usage: mixin [options] [command]

Options:
  -V, --version  output the version number
  -h, --help     output usage information

Commands:
  dapp:config    Generate mixin-node-client config from a newly generated DApp session info
  dapp:create    Bootstrap a new DAPP that have mixin-client-sdk integrated
  dapp:start     Start an DApp bootstrapped with `mixin dapp:create`
  dapp:build     Build an DApp bootstrapped with `mixin dapp:create`

Generate DApp Config

See follow screen cast in action:

asciicast

Please note that the generated config still missing 2 important pieces of info to be used with mixin-node-sdk. As shown below:

// Generated with awesome https://github.com/wangshijun/mixin-cli
module.exports = {
  clientId: '<PUT YOUR DAPP CLIENT_ID HERE>',
  clientSecret: '<PUT YOUR DAPP CLIENT_SECRET HERE>',
  assetPin: '310012',
  sessionId: '621c905b-1739-45e7-b668-b5531dd83646',
  aesKey: '******s2EFHBPV2Xsb/OiwLdgjGt3q53JcFeLmbUutEk=',
  privateKey: `-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQCsNaGbDx1UeKrTux01nC6R7/bu2GUELe6Q2mBSPymkZW2fpiaO
vr3RYbwfcFEuBDA9GQQoTiMYe/TUiYLGIycvpR5oifBQjgsTvxnwxqThD0VkrDKM
CA2ezXSb3e5yD0fn6X5HrkfVfYmNKwSbr7Yes/rYsVHCbZgq49omzitHwQIDAQAB
AoGANSsRzBfsjEn9JAXfTM/9qN0XtkJlXdb4kwx5NKt/pdwS7nmT6fqGDIFKXcKF
rdlpM1Pn7rHBMCwFOSGDmLz9ubxvXaLrViWNf50eUWEWlIYsGolChDWquG+LRXEx
BtdaJrzA1DucS/MlirQ4nGnnQ4jRXzbs/lIyuqph8T5rh0kCQQDTXfKcBtwa4u0s
0VG7Fz0tSm+8uW9FVZfRAlR+dMlllBnDaQT6FvVik1lfObli3+RLPeJYfyONmsuO
yMRvtboTAkEA0JLppAMZfwdkgfanzsyM+SAeiw3BIfn302G+K0rlkJAgJbv5zDKa
BTtpFtPO6SsuPKWuqDlQRA21MycmfsmxWwJAWh+s2qpyH2SzDHEUEFoQU8dxbV8D
-----END RSA PRIVATE KEY-----`,
};

clientId and clientSecret can be obtained from Mixin Developer Dashboard.

Debugging

If you are curious what happened during each command, try run following command:

DEBUG=mixin-cli:* mixin

Contributors

| Name | | -------------- | | wangshijun |

License

MIT © wangshijun