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

chaincraft

v1.0.4

Published

Build a cli with nodejs

Downloads

6

Readme

Chaincraft: CLI

Chaincraft CLI is a command line interface that enables users to create or destroy Algorand assets using the JavaScript AlgosDK. With chaincraft, you can effortlessly perform transactions on the Algorand network and manage your assets.

Features

  • Create or Destroy Algorand assets
  • Connects with the JavaScript AlgosDK to interact with the Algorand network
  • Supports Arc3 and Arc69 standards
  • chaincraft-auth utilizes web3auth & firebase-jwt on browser to create wallet and store keys (Note: This may not be the case in production)

Requirements

Node.js version 18 or later npm version 8 or later

Installation

To install chaincraft CLI, Use:

npm i chaincraft

Or Clone GitHub Repository

git clone https://github.com/acgodson/chaincraft.git

#  Navigate to bin directory
cd chaincraft/chaincraft-CLI

# Install globally to test from anywhere
npm install -g .

Usage

 chaincraft  [command] [options]

Options

      --help         Show help                                                           [boolean]
      --version      Show version number                                                 [boolean]
  -t, --type         choose to "pure nft" or "fractional"
                         [string] [required] [choices: "pure nft", "fractional"]

  -n, --name         Used to derieve unit and asset name, < 8 character length           [string] [required]


  -d, --description  Description for NFT metadata                                        [string]
  -m, --manager      Address permitted to anage asset configuration                      [string]
  -f, --freezer      Address permitted freeze and unfreeze assets                        [string]
  -i, -id            Asset id, required to modify, lookup or destroy asset               [string] [required]

Commands

create-asset  [type] [name]  [description] [manager]
    create an Algorand asset with specified parameters

destroy [asset-id]
    destroy an Algorand asset

freeze-asset [asset-id]   Freeze or Unfreeze asset on Algorand Blockchain
reauth         Sign in to your chaincraft wallet and overide any existing stored keys

Examples

Create a pure NFT (arc3)


chaincraft create-asset --type "pure nft" --name "bluesky" --description "my album art cover"

# URL or file-path to image: /Users/godson/Downloads/me. jpeg

# ~ Transaction confirmed; Pure NFT Created Confirmed Round: 27565515
# AssetID: 157587852
# parms: {
# "creator": "6TYVZDYX2IP6GROUSUYTJIQU2WX4G5LBHHXPQSAXVZSVN773HSPMAZYAOQ" ,
# "decimals": 0,
# "default-frozen": false,
# "metadata-hash": "J8F69QtKaakRjpr3YvSqDH10VqtOTTtLpjNaWc/pSTE=",
# "name": "bluesky@arc3"
# "name-b64" : "dGlueWJpcmRAYXJiMw==
# "total": 1,
# "unit-name": "BLUESKY",
# "unit-name-b64": "VElOWUJJUkQ="
# "url": "ipfs://QmR1qizBGy KyPD3nTpUPUHeXMzsekarpJWJ5EM91DkzSC"
# "url-b64": "aXBmczovL1FtUjFxaXpCR31GS31QRDNuVHBVUFVIZVhNenNla2FycEpXSjVFTTkXRG t6UOM="
# }
# Preview NFT

log1 log2

Destroy Asset (asset-id)


chaincraft destroy-asset 157787208

# {
# Asset destroyed
# 'confirmed-round': 27611290,
# ...

# txn: {
#     caid: 157787208,
#     fee: 1000,
#     fv: 27611287,
#     gen: 'testnet-v1.0'
#     gh: [Uint8Array],
#     1v: 27612287,
#     snd: [Uint8Array],
#     type: 'acfg'

log2