Paper Sats: design and print paper notes that carry sats. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Local services without Docker
Use these when Docker is not available. They run as your own user, store data in
~/.local/share/papersats/, and listen on the same ports as infra/docker-compose.dev.yml.
| Service | Script | Port |
|---|---|---|
Postgres 15 cluster, role and database paper |
infra/local/pg.sh start |
5433 |
| Nutshell Cashu mint, FakeWallet backend | infra/local/mint.sh |
3338 |
| Nostr relay (in-process, for tests and dev) | pnpm --filter @paper-sats/devservers relay |
7778 |
| Blossom server (in-process, for tests and dev) | pnpm --filter @paper-sats/devservers blossom |
3301 |
| lnurl-mint (real, pinned commit, lnd backend) | infra/local/lnurl-mint.sh |
3339 |
| Fake LND, the funding source of lnurl-mint | pnpm --filter @paper-sats/devservers fake-lnd |
3340 |
| LNbits stub, for the fee payout path | pnpm --filter @paper-sats/devservers lnbits-stub |
3341 |
The FakeWallet pays incoming invoices after about one second, so tests can fund batches without real Lightning.
Start the fake LND before lnurl-mint.sh. Its invoices settle after one second and its outgoing payments succeed, with
control endpoints under /_control/ for tests (hold, settle, config, payee-invoice). It keeps everything in memory, so
restarting it forgets invoices the mint may still ask about. Invoices created before a restart then answer as errors;
new ones are fine. The mint keeps its own database in ~/.local/share/papersats/lnurl-mint/data.
The integration tests need the mint and the fake LND running. The LNbits stub and Nutshell tests skip when those are down:
pnpm --filter @paper-sats/protocols test:int.