Hacker GitHub

← All repos

philippgille/ln-paywall

View on GitHub ↗ ★ 157 Go

Go middleware for monetizing your API on a per-request basis with Bitcoin and Lightning ⚡️

6 mentions on Hacker News by 1 person: 0 stories, 6 comments · first 2019-04-03 · latest 2026-07-01

Mentions per year 6 mentions · busiest year 2025 (2)
20082026
  1. …and deposit some money/crypto on the client side first. This part needs to become simpler. [1] https://github.com/philippgille/ln-paywall [2] https://en.wikipedia.org/wiki/Flattr
  2. …On layer 2 it was always cheap and fast. For example I created this Go middleware at the time: https://github.com/philippgille/ln-paywall#how-it-works (currently defunct) Similar projects implemented that into standalone API gateways. All…
  3. …the Lightning Network (a Bitcoin Layer 2 protocol/network that enables instant, low-fee payments): https://github.com/philippgille/ln-paywall But most people are either unwilling to touch crypto at all, or holding on to it tightly as…
  4. It's not a new idea. For example I created https://github.com/philippgille/ln-paywall (also using 402 status code) in 2018.
  5. …for true pay-per-call APIs (payable via Bitcoin's Lightning Network) and my demo deployment: - https://github.com/philippgille/ln-paywall - https://lightning.ws
    comment by PhilippGille · 2020-02-02 · in HTTP 402: Payment Required
  6. …web service / API: https://lightning.ws (disclaimer: my project, based on another project by me: https://github.com/philippgille/ln-paywall )