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

neutron-cli

v0.3.8

Published

CLI for Neutron Lightning wallet services — for developers and AI agents

Readme

neutron-cli

CLI for Neutron Lightning wallet services — for developers and AI agents.

Install

npm install -g neutron-cli

Then use it from anywhere:

neutron-cli auth
neutron-cli balance
neutron-cli rate

Note: If you just want to try it without installing, use npx neutron-cli --help. But for regular use, global install is recommended.

Setup

First time you run any command, you'll be prompted for your credentials:

⚡ Welcome to Neutron CLI
  Get your API key at: https://portal.neutron.me

  API Key:    ****************
  API Secret: ****************

  ✅ Credentials saved to ~/.neutron/config.json

Credentials are stored in ~/.neutron/config.json with 600 permissions (private to you). You'll never be prompted again.

Commands

Verify credentials

neutron-cli auth

Check balances

neutron-cli balance

Create a Lightning invoice

neutron-cli invoice --amount 5000
neutron-cli invoice --amount 5000 --memo "order #123"

Send a payment — auto-detects payment type

# Lightning (BOLT11 invoice)
neutron-cli send --to lnbc50u1p... --amount 5000

# Bitcoin on-chain (auto-detected from address format)
neutron-cli send --to 1A1zP1eP5QGefi2DMPTfTL5SLmv7Divf... --amount 5000

# USDT on TRON (auto-detected from T... address)
neutron-cli send --to TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE --amount 10 --currency USDT

# USDT on ETH (auto-detected from 0x... address)
neutron-cli send --to 0xAbC123... --amount 10 --currency USDT

send automatically detects the payment type from the destination address — no flags needed:

  • lnbc... → Lightning
  • 1..., 3..., bc1... → Bitcoin on-chain
  • T... → USDT on TRON
  • 0x... → USDT on Ethereum

Get deposit addresses

neutron-cli address ln                   # Lightning Address ([email protected])
neutron-cli address btc                  # Bitcoin on-chain deposit address
neutron-cli address usdt                 # USDT on TRON (default)
neutron-cli address usdt --chain ETH     # USDT on Ethereum

Swap currencies

neutron-cli swap --from BTC --to USDT --amount 1000   # BTC → USDT (amount in sats)
neutron-cli swap --from USDT --to BTC --amount 10     # USDT → BTC

Fiat payouts

# List banks for a country
neutron-cli fiat institutions --country VN

# Send fiat payout (KYC required)
neutron-cli fiat payout \
  --amount 0.001 \
  --from BTC \
  --to VND \
  --method vnd-instant \
  --bank-account 0123456789 \
  --bank-code 970422 \
  --recipient "LE VAN A" \
  --country VN

Fiat payouts require KYC verification. If not verified, you'll see:

⚠️  Fiat payouts require KYC verification.
   Complete KYC at: https://portal.neutron.me
   (Bitcoin, USDT, and Lightning don't require KYC)

Transactions

neutron-cli tx get txn_abc123
neutron-cli tx list
neutron-cli tx list --limit 20 --from 2026-01-01 --to 2026-03-01

Exchange rate

neutron-cli rate
neutron-cli rate --currency thb

Webhooks

neutron-cli webhook create --url https://example.com/webhook
neutron-cli webhook list
neutron-cli webhook delete wh_abc123

Manage config

neutron-cli config init    # set up credentials
neutron-cli config show    # show current credentials (masked)
neutron-cli config test    # test credentials against API

Update

neutron-cli update         # update to latest version

Output

TUI (colored, human-readable) is the default. Add --json for machine-readable output:

neutron-cli balance --json
# {"ok":true,"data":{"wallets":[...]}}

Errors go to stderr with exit code 1:

{"error":"Missing credentials","code":"AUTH_MISSING"}

For AI Agents

Any AI agent with bash/exec access can use Neutron immediately — no MCP setup required:

export NEUTRON_API_KEY=...
export NEUTRON_API_SECRET=...

neutron-cli invoice --amount 1000 --memo "agent payment" --json
neutron-cli tx list --limit 5 --json
neutron-cli rate --currency usd --json
neutron-cli send --to lnbc... --amount 1000 --json

Works with Claude Code, Codex, and any agent that can run shell commands.

Links