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

clw-cash

v0.1.40

Published

Bitcoin & Stablecoin agent wallet CLI. Keys held in a secure enclave.

Readme

clw-cash

Bitcoin & Stablecoin agent wallet CLI. Keys held in a secure enclave.

Install

npm install -g clw-cash

Quick Start

# Initialize with API and Ark server
cash init --api-url <url> --token <jwt> --ark-server <url>

# Login via Telegram (refresh token)
cash login

# Check balance
cash balance

# Send funds
cash send --amount 0.001 --currency btc --where arkade --to ark1q...
cash send --amount 100000 --currency sats --where arkade --to ark1q...
cash send lnbc500n1...

# Receive funds
cash receive --amount 0.001 --currency btc --where lightning
cash receive --amount 100000 --currency sats --where lightning

Commands

| Command | Description | |---------|-------------| | cash init | Configure API endpoint, token, and Ark server | | cash login | Re-authenticate via Telegram (refresh token) | | cash balance | Show wallet balance | | cash send | Send Bitcoin or stablecoins | | cash receive | Generate receive address/invoice | | cash start | Start background daemon (swap monitoring) | | cash stop | Stop background daemon | | cash status | Show daemon status | | cash swap <id> | Check swap status (local + LendaSat API) | | cash swaps | List swaps (last 5 per category) | | cash claim <id> | Manually claim a swap (reveal preimage) | | cash refund <id> | Manually refund a swap | | cash pubkey | Show the wallet's public key (for multisig setup) | | cash sign-psbt <psbt> | Sign a PSBT (Partially Signed Bitcoin Transaction) |

Sign PSBT (Taproot Multisig Coordination)

The sign-psbt command signs Bitcoin transactions using PSBTs (BIP-174). This is the recommended and secure way to sign transactions because:

  • No blind signing — You see exactly what you're signing (inputs, outputs, fees) before signing
  • Automatic sighash computation — Correctly computes BIP-341 Taproot sighashes for each input
  • Multi-party coordination — Works with Taproot script-path multisig setups
  • PSBT standard — Returns an updated PSBT that can be combined with other signatures

Why not support raw digest signing? Signing arbitrary digests is dangerous because you don't know what transaction you're authorizing. An attacker could trick you into signing a malicious transaction by computing its sighash and asking you to "sign this digest". PSBT-aware signing prevents this by parsing and displaying the transaction before signing.

# Sign a base64-encoded PSBT
cash sign-psbt cHNidP8BAIkCAAAAA...

# Using flags
cash sign-psbt --psbt <base64-psbt>
cash sign-psbt --hex <hex-encoded-psbt>

Output:

{
  "summary": {
    "inputsTotal": 2,
    "outputsTotal": 1,
    "fee": "1000 sats",
    "inputsSigned": 2
  },
  "signatures": [
    {
      "inputIndex": 0,
      "signature": "...128 hex characters (64 bytes BIP-340 Schnorr)..."
    }
  ],
  "psbt": {
    "base64": "cHNidP8...",
    "hex": "70736274..."
  },
  "publicKey": "9350761ae700...",
  "note": "PSBT updated with signatures. Pass to other signers or finalize if threshold met."
}

Use Case: Multi-Agent Taproot Multisig

  1. Coordinator creates a PSBT with all inputs and outputs
  2. Each agent runs cash sign-psbt <psbt>
  3. Agent sees transaction details and confirms safety
  4. Agent signs only inputs containing their public key
  5. Coordinator collects all signatures and finalizes the transaction

Supported currencies and networks

  • Currency: btc, sats, usdt, usdc
  • Where: onchain, lightning, arkade, polygon, arbitrum, ethereum

How It Works

Keys are generated and stored inside an Evervault Enclave -- a trusted execution environment. The CLI never has access to private keys directly. All signing is delegated to the enclave via authenticated ticket-based requests.

License

MIT