nutsplit: ecash a podcast receives, paid out to everyone in its split

Listeners send Cashu to the show (NUT-18 or NIP-61 nutzaps). nutsplit books every sat to the episode's podcast:value recipients, the way Hopp and Sovereigncast split Lightning, and pays each host, guest and editor in one Lightning payment per batch. A public ledger shows each of them what they were owed and paid.

Today a show's ecash goes to the show as a whole: Hopp's ADR 0014 says so, and Sovereigncast sweeps it to one wallet. nutsplit is the missing split for that money.

Split a boost on a real feed

This runs nutsplit's own split code (src/split.ts, checked against 600 cases from Sovereigncast's Python) in your browser, on a snapshot of Nodesignal's feed. Nothing is paid here.

RecipientSplitGetsHow nutsplit pays it

And for a whole audience

each sending the amount above on this episode:

Lightning payments if each listener's wallet pays the split itself-
Lightning payments through nutsplit (one per recipient per batch)-

A real run on the test mint

node demo/run.ts, run 2026-11-12 against testnut.cashu.space (Lightning simulated) with Nodesignal's feed: 50 streaming payments and 4 boosts on three episodes, then settlement.

received681 sat54 payments
paid out530 sat4 Lightning payments
fees65 sat54 intake, 11 payout
still owed86 satbooks match the wallet

The public ledger page from that run (JSON, console log) · nutzap run: ledger, log (15 kind:9321 events: 12 redeemed, a wrong-key one rejected, a replay caught, restart books nothing twice).

What to look for: the 21-sat boost booked 17 + 4; guests' fee columns at 0 because the show's own balance carries every fee; the keysend share on E299 kept owed (80 sat) and given to nobody else.

Run it

git clone https://github.com/apeirs/nutsplit && cd nutsplit
npm ci
npm test              # 87 tests, no network
node demo/run.ts      # the run above, against the public test mints
node demo/nutzap.ts   # the nutzap run (local relay, testnut)

Node 24 or newer. For a show: nutsplit serve --feed <rss> --mint <mint> --public-url <url>, then put the podcast:txt purpose="cashu" line it prints in the feed. Details, rules and limits in the README.