{"type":"rich","version":"1.0","title":"DhananjayPurohit wrote","author_name":"DhananjayPurohit (npub1qn…d9r6h)","author_url":"https://nostr.now/npub1qnw27f2jsqvn05wzpd56m7ykgmepk57p0yrzw8fzc7lfhjkmjmqqmd9r6h","provider_name":"njump","provider_url":"https://nostr.now","html":"ngx-l402 — an nginx module that puts a Lightning paywall (L402) in front of\nany HTTP API.\n\nTwo directives:\n\n  l402 on;\n  l402_amount_msat_default 1000;\n\nA request without payment gets a 402 with a macaroon + BOLT-11 invoice. Pay,\nretry with the preimage, get your 200. \n\nNon-custodial by design: sats settle straight to your own node or Lightning\naddress. No account, no intermediary, nothing routed through us.\n\nLightning backends: LND, CLN, Eclair, LNURL, NWC, BOLT12, LNC.\n\nCashu eCash works too — the client sends a token in the X-Cashu header\ninstead of paying an invoice. Proofs verify offline via NUT-12 DLEQ, so\nthere's no round-trip to the mint on the request path. Bearer, unlinkable,\nand skipping the invoice round-trip makes it the fastest path of the lot.\n\nIt also publishes a capability manifest at /.well-known/l402-services, so\nagents can discover your routes and prices and pay — no API key, no signup.\n\nLive demo, 1 sat and learn more at: https://ngx-l402.org\nCode (MIT): https://github.com/ngx-l402/ngx-l402\n\nThe repo is mirrored on Nostr via ngit (gitworkshop.dev) and release\nbinaries are on Blossom. GitHub flagged the org twice, so the project is\nbuilt to survive being deplatformed.\n\nrepo on ngit:- https://gitworkshop.dev/npub1qnw27f2jsqvn05wzpd56m7ykgmepk57p0yrzw8fzc7lfhjkmjmqqmd9r6h/relay.ngit.dev/ngx-l402\n\nRelease on blossom: https://nostr.download/03b6473139813e3c06361da15803a61e4c9f86111413a2467227825ed72b093d.gz\n\n#bitcoin #lightning #l402 \n\n"}
