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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@chainlaunch/pro-cli

v0.1.1

Published

CLI for ChainLaunch Pro blockchain infrastructure platform

Downloads

84

Readme

ChainLaunch CLI

Bun-based CLI for the ChainLaunch blockchain infrastructure platform. Talks directly to the ChainLaunch REST API (/api/v1) — no Go binary required.

bunx @chainlaunch/pro-cli --help
# or install globally
bun add -g @chainlaunch/pro-cli
chainlaunch --help

Quick start

# Authenticate (interactive: prompts for API key or username/password)
chainlaunch login http://localhost:8100

# Or non-interactive, for automation
chainlaunch login http://localhost:8100 --api-key clpro_xxxx
chainlaunch login http://localhost:8100 -u admin -p secret --no-interactive
# Self-signed HTTPS (dev clusters): -k/--insecure is persisted on the context
chainlaunch login https://10.30.0.121:8100 --api-key clpro_xxxx --insecure

chainlaunch whoami
chainlaunch nodes list
chainlaunch networks list

Commands

| Command | Description | |---------|-------------| | login / logout / whoami | Authentication | | context (ctx) | Manage multiple server contexts (list, use/switch, current, rename, remove) | | nodes (n) | List/show/start/stop/restart/delete nodes, tail logs | | networks (net) | List/show/delete networks; config dumps channel config, map shows joined nodes | | organizations (orgs) | Manage Fabric organizations (MSPs) | | chaincodes (cc) | Inspect chaincodes: definitions, container logs, lifecycle timeline | | keys | List/show/delete cryptographic keys | | key-providers | List/show key providers (database, AWS KMS, Vault) | | backups | List backups, targets, and schedules | | users | List/show users | | api-keys | List/create/revoke API keys | | plugins | List plugins and deployment status | | settings | View server settings |

Every read command supports --json for machine-readable output (spinners and chrome are suppressed, so output pipes cleanly into jq).

Contexts

Log in to multiple ChainLaunch servers and switch between them:

chainlaunch login https://prod.example.com --api-key clpro_xxx -c prod
chainlaunch login http://localhost:8100 -u admin -p secret -c local
chainlaunch context list
chainlaunch context use prod       # or: context switch prod
chainlaunch context current        # prints just the name (script-friendly)
chainlaunch context rename local dev
chainlaunch context remove prod    # local only — does NOT revoke the server-side key

Contexts are stored in ~/.chainlaunch-pro-cli/.contexts.json (mode 0600). The active-context marker in context list honors CHAINLAUNCH_CONTEXT, so it always shows what the next command will actually use.

Environment variables

| Variable | Purpose | |----------|---------| | CHAINLAUNCH_API_URL | Override server URL (highest priority) | | CHAINLAUNCH_API_KEY / CHAINLAUNCH_TOKEN | API key for CI / automation (sent as Bearer) | | CHAINLAUNCH_USERNAME / CHAINLAUNCH_PASSWORD | Basic-auth credentials | | CHAINLAUNCH_CONTEXT | Pin a context for this shell without mutating the active flag | | CHAINLAUNCH_INSECURE | Set to 1 to skip TLS certificate verification (self-signed certs) |

Resolution order everywhere: env vars → active context → legacy secrets file.

Development

bun install
bun run dev -- --help        # run from source
bun run typecheck
bun run build                # bundle to dist/ (node target, for npm)
bun run build:bin            # compile a standalone binary to bin/chainlaunch
bun run generate:api         # regenerate src/api from openapi.json

To refresh the API SDK after backend changes, copy chainlaunch-pro/docs/swagger.json over openapi.json, convert it (the spec is Swagger 2.0, the generator wants OpenAPI 3):

bunx swagger2openapi --patch openapi.json -o openapi.json
bun run generate:api