/awesome-L402

A curated list of awesome things related to L402 ⚡

Creative Commons Zero v1.0 UniversalCC0-1.0

Awesome-L402

A curated list of awesome things related to L402 ⚡

Try our Interactive L402 Notebook

Table of Contents

The L402 protocol, created by Lightning Labs, serves as a framework, facilitating service providers in securing their services with a payment gateway.

This setup allows clients to seamlessly transact and gain access to the respective resources. Essentially, it bridges the gap between payment requirements and resource accessibility, streamlining the process for both service providers and their customers.

When a client requests a resource without a valid access token, the server responds with an incomplete token and a Lightning Network invoice for payment. Once the client pays the invoice and obtains a proof of payment, they combine this with the incomplete token to create a valid access token. This complete token, when presented in a subsequent request, is independently verified by the server, confirming the payment and granting access without needing external validation.

The following list will provide you with detailed insights and resources to enhance your understanding of Macaroons and the Lightning Network, the core technologies underpinning the L402 protocol.

Name Language Overview
Fewsats/l402-python python L402 client and server library for python projects
aperture/lsat Go L402 package used in the Reverse Proxy
LangChainBitcoin python AI tools for giving LangChain agents access to Bitcoin and the ability to traverse L402 APIs
alby-tools typescript Collection of helpful building blocks and tools to develop Bitcoin Lightning web apps
lsat-js javascript A javascript library for working with L402
l402-ts typescript A client library for working with L402
gol402 golang A client library for working with L402
  • Pillbox - A tool for managing L402 credentials and accessing L402 paywalled endpoints.
  • n8n node - Node to integrate L402 payments in n8n workflow platform. By Alby.
  • matador - An "API reverse proxy" using L402.
  • bitcoinsearch Chat - ChatGPT-like application designed to help you learn about bitcoin technology and its history.
  • Aperture - HTTP 402 reverse proxy that supports proxying requests for gRPC (HTTP/2) and REST (HTTP/1 and HTTP/2) backends using the L402
  • boltwall - Bitcoin Lightning paywall and authentication using L402s. Built with LND, Nodejs, and Typescript.
  • Alby - Bitcoin wallet with L402 support
  • Lightning Labs - Lightning network infrastructure. Created L402 and has been running services supporting (Loop/Pool) the protocol since 2020.
  • Fewsats - PR incoming.
  • Sulu - API Monetization with L402.
  • Open Agents - An open platform for AI agents, built in public from scratch.
  • Unleashed - One button to deploy your own chat.
  • OrdinalsBot - Inscriptions in Bitcoin with L402.

Contributions are not only allowed but welcomed!

Feel free to open a PR adding a new entry or section to the repository.

CC0