Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Fewsats/awesome-L402

A curated list of awesome things related to L402 ⚡
https://github.com/Fewsats/awesome-L402

List: awesome-L402

Last synced: 3 months ago
JSON representation

A curated list of awesome things related to L402 ⚡

Awesome Lists containing this project

README

        

# Awesome-L402

A curated list of awesome things related to L402 ⚡

Try our Interactive [L402 Notebook](https://colab.research.google.com/drive/1MLZy1g6-lFqbRAfFOxR14PZ3b36sYr1r)

## Table of Contents

- [awesome-l402 ](#awesome-l402-)
- [Table of Contents](#table-of-contents)
- [Protocol](#protocol)
- [Libraries](#libraries)
- [Projects](#projcets)
- [Tools](#tools)
- [Companies](#companies)
- [Contributing](#contributing)
- [License](#license)

## Protocol

The [L402 protocol](https://l402.org), created by [Lightning Labs](https://lightning.engineering), 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.

- [L402 Homepage](https://l402.org/) - L402 Guides & Resources
- [L402 spec](https://github.com/lightninglabs/L402) - The L402 protocol specification.
- [L402 Notebook](https://colab.research.google.com/drive/1MLZy1g6-lFqbRAfFOxR14PZ3b36sYr1r) - Interactive python notebook starting with basics up to setting up an L402 server & client.
- [L420 playground](https://lsat-playground.bucko.vercel.app) - An interactive playground to learn and understand the workings of the protocol.
- [L402 Builder's guide quick start](https://docs.lightning.engineering/the-lightning-network/l402) - LL Builder's guide L402 documentation.
- [L402 Builder's guide spec](https://docs.lightning.engineering/the-lightning-network/l402/protocol-specification) LL Builder's guide protocl spec.
- [Building Paid APIs with Bitcoin](https://www.youtube.com/watch?v=PauSnLTu0BQ) - **Video** Quick overview of the architecture of an L402 by Hannah Rosenberg
- [Implementing L402 in Flask for Core Lightning](https://www.youtube.com/watch?v=MmEg160QtnE) - **Video** By [Base58](https://github.com/base58btc)

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.

- [Lightning network 101](https://docs.lightning.engineering/the-lightning-network/overview) - Learn how the Lightning Network functions.
- [Lightning network spec](https://github.com/lightning/bolts) - BOLT: Basis of Lightning Technology (Lightning Network Specifications)
- [Macaroons: minting and verification](https://github.com/lightninglabs/L402/blob/master/macaroons.md) - Macaroon component in the L402.
- [Macaroons: Cookies with Contextual Caveats for Decentralized Authorization in the Cloud](https://research.google/pubs/macaroons-cookies-with-contextual-caveats-for-decentralized-authorization-in-the-cloud/) - The Research publication introducing Macaroons.
- [Macaroons Overview](https://www.youtube.com/watch?v=CGBZO5n_SUg) - **Video** Talk given at Mozilla by Úlfar Erlingsson
- [Macaroons Escalated Quickly](https://fly.io/blog/macaroons-escalated-quickly/) **Blog** How [Fly.io](fly.io) uses macaroons in their infrastructure.

## Libraries

| Name | Language | Overview |
|---------------|---------------|-----------------------------------------|
| [Fewsats/l402-python](https://github.com/Fewsats/L402-python) | python| L402 client and server library for python projects |
| [aperture/lsat](https://github.com/lightninglabs/aperture/tree/master/lsat) | Go | L402 package used in the Reverse Proxy |
| [LangChainBitcoin](LangChainBitcoin) | python | AI tools for giving LangChain agents access to Bitcoin and the ability to traverse L402 APIs |
| [alby-tools](https://github.com/getAlby/js-lightning-tools) | typescript | Collection of helpful building blocks and tools to develop Bitcoin Lightning web apps |
| [lsat-js](https://github.com/Tierion/lsat-js) | javascript | A javascript library for working with L402 |
| [l402-ts](https://github.com/sulusolutions/l402-ts) | typescript | A client library for working with L402 |
| [gol402](https://github.com/sulusolutions/gol402) | golang | A client library for working with L402 |

## Projects

- [Pillbox](https://github.com/Fewsats/pillbox/) - A tool for managing L402 credentials and accessing L402 paywalled endpoints.
- [n8n node](https://github.com/getAlby/n8n-nodes-l402-request) - Node to integrate L402 payments in n8n workflow platform. By Alby.
- [matador](https://github.com/Kodylow/matador) - An "API reverse proxy" using L402.
- [bitcoinsearch Chat](https://chat.bitcoinsearch.xyz) - ChatGPT-like application designed to help you learn about bitcoin technology and its history.

## Tools

- [Aperture](https://github.com/lightninglabs/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](https://github.com/tierion/boltwall) - Bitcoin Lightning paywall and authentication using L402s. Built with LND, Nodejs, and Typescript.
- [Alby](https://getalby.com) - Bitcoin wallet with L402 support

## Companies

- [Lightning Labs](https://lightning.engineering) - Lightning network infrastructure. Created L402 and has been running services supporting (Loop/Pool) the protocol since 2020.
- [Fewsats](https://www.fewsats/com) - *PR incoming.*
- [Sulu](https://www.sulu.sh) - API Monetization with L402.
- [Open Agents](https://openagents.com) - An open platform for AI agents, built in public from scratch.
- [Unleashed](https://unleashed.chat) - One button to deploy your own chat.
- [OrdinalsBot](https://ordinalsbot.com/) - Inscriptions in Bitcoin with L402.

## Contribute

Contributions are not only allowed but welcomed!

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

## License

[![CC0](https://licensebuttons.net/p/zero/1.0/88x31.png)](https://creativecommons.org/publicdomain/zero/1.0/)