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

hyperwave-wallet-cashu

v0.4.0

Published

HyperWave Cashu wallet: a Chaumian-ecash (Cashu, on a Lightning mint) implementation of the hyperwave-engine Wallet interface, runs under Bare.

Downloads

526

Readme

hyperwave-wallet-cashu

A Chaumian ecash (Cashu) implementation of the hyperwave-wallet interface — self-custodial bitcoin on a Lightning-connected mint, unit sat. This is the desktop default wallet for hyperwave-engine.

  • Participation fees are burned as ecash P2PK-locked to a NUMS ("nothing-up-my-sleeve") pubkey — the unspendable black-hole analog — tagged with the seat memo (NUT-11). Verifiable as spent via NUT-07 (verifyBurnTx).
  • Tips are bearer tokens the recipient redeems (sendreceive).
  • Any Lightning Cashu peer interoperates regardless of mint (type is the generic 'cashu').

Cashu is stateful — proofs are bearer funds held locally (ProofStore), so this wallet persists proofs outside the engine's ephemeral store.

Install

npm install hyperwave-wallet-cashu

Use

A host injects the factory into the engine:

const { createEngine } = require('hyperwave-engine');
const { createCashuWallet } = require('hyperwave-wallet-cashu');

const engine = createEngine({
  storageDir: '/tmp/hyperwave/a',
  config: { topicId: 'my-topic:v1', walletOptions: { mint: DEFAULT_MINT } },
  deps: { createPayments: createCashuWallet }
});

The dev default mint is the free auto-paying testnut mint (https://testnut.cashu.space) — no real funds; call wallet.fund(sats) and it's paid automatically. A real mint returns a bolt11 invoice to pay.

Exports

  • createCashuWallet(options) / CashuWallet — the Wallet implementation. Beyond the base interface it adds fund(amountSats, { onInvoice }), receive(token) (redeem a tip), and consolidate({ sourceMint }) (sweep proofs into one mint).
  • CASHU_WALLET_TYPE ('cashu'), CASHU_UNIT ('sat'), DEFAULT_MINT.
  • verifyBurnProofs, burnTags, p2pkLockPubkey, MEMO_TAG_KEY (cashu-burn — pure structural burn verification).
  • numsBurnPubkey, NUMS_DOMAIN (nums — the deterministic on-curve burn pubkey).
  • ProofStore, MAX_HISTORY (per-mint ecash proof store).
  • installBareWebShims (fetch/WebCrypto shims so cashu-ts runs under Bare).

See docs/cashu.md in the repo for the full money model.

Runtime

CommonJS; runs under Bare (the shims bridge cashu-ts's web APIs) and Node.

Testnet only

Ecash on a testnet Lightning mint; no real value. Do not point it at a production mint with real funds.

License: Apache-2.0