Dhananjay Purohit's avatar
Dhananjay Purohit
dhananjay@ngx-l402.org
npub1qnw2...9r6h
I built payblob — a client that pays to pull container images. The image is a signed Nostr event, its layers sit on Blossom behind a Lightning paywall. payblob settles the L402 invoice and pulls it — 10 sats, non-custodial, over Nostr. Why? GitHub's bots flagged my repo twice and took it offline — images and all. So I moved images where nobody can flag them, and made them pay for their own hosting. Built on @Alex Gleason ncontainer + noci — he shipped that base in a weekend. I added the payments. Video 👇 — and poke at the live server yourself (free upload, 10 sats to download): https://blossom.ngx-l402.org payblob: paywalled blossom server: ncontainer: noci: #nostr #bitcoin #lightning #L402
ngx-l402 — an nginx module that puts a Lightning paywall (L402) in front of any HTTP API. Two directives: l402 on; l402_amount_msat_default 1000; A request without payment gets a 402 with a macaroon + BOLT-11 invoice. Pay, retry with the preimage, get your 200. Non-custodial by design: sats settle straight to your own node or Lightning address. No account, no intermediary, nothing routed through us. Lightning backends: LND, CLN, Eclair, LNURL, NWC, BOLT12, LNC. Cashu eCash works too — the client sends a token in the X-Cashu header instead of paying an invoice. Proofs verify offline via NUT-12 DLEQ, so there's no round-trip to the mint on the request path. Bearer, unlinkable, and skipping the invoice round-trip makes it the fastest path of the lot. It also publishes a capability manifest at /.well-known/l402-services, so agents can discover your routes and prices and pay — no API key, no signup. Live demo, 1 sat and learn more at: Code (MIT): The repo is mirrored on Nostr via ngit (gitworkshop.dev) and release binaries are on Blossom. GitHub flagged the org twice, so the project is built to survive being deplatformed. repo on ngit:- Release on blossom: https://nostr.download/03b6473139813e3c06361da15803a61e4c9f86111413a2467227825ed72b093d.gz #bitcoin #lightning #l402
🐋 Back in 2021 I did my Google Summer of Code with Orcasound — an open-source project running a cooperative network of hydrophones (underwater mics) off the Pacific Northwest coast. Anyone can put on headphones and listen live for endangered orcas, helping scientists detect and protect them. Open-source software + hardware + a distributed community of listeners. My contribution there wrapped a while back, but they haven't forgotten me — a kind surprise recently landed in the mail. 👕📦 Grateful to have played a small part in helping orcas be heard. #OpenSource #ListenForWhales #Orcasound image
GitHub trying to sabotage solid open source projects. #BTCBreakdown image
↑