{"repo":"lightninglabs/aperture","free":true,"listed":false,"github":"https://github.com/lightninglabs/aperture","clone":"git clone https://github.com/lightninglabs/aperture.git","description":"⚡️L402 (Lightning HTTP 402) Reverse Proxy ⚡️","language":"Go","stars":268,"topics":["lightning-network","bitcoin","http402","reverse-proxy","api-gateway","macaroons"],"license":"MIT","category":"networking-infra","readme_excerpt":"L402 (Lightning HTTP 402) API Key proxy Aperture is your portal to the Lightning-Native Web. Aperture is used in production today by Lightning Loop, a non-custodial on/off ramp for the Lightning Network. Aperture is a HTTP 402 reverse proxy that supports proxying requests for gRPC (HTTP/2) and REST (HTTP/1 and HTTP/2) backends using the [L402 Protocol Standard][l402]. L402 is short for: the Lightning HTTP 402 protocol. L402 combines HTTP 402, macaroons, and the Lightning Network to create a new standard for authentication and paid services on the web. L402 is a new standard protocol for authentication and paid APIs developed by Lightning Labs. L402 API keys can serve both as authentication, as well as a payment mechanism (one can view it as a ticket) for paid APIs. In order to obtain a token, we require the user to pay us over Lightning in order to obtain a preimage, which itself is a cryptographic component of the final L402 token The implementation of the authentication token is chosen to be macaroons, as they allow us to package attributes and capabilities along with the token. This system allows one to automate pricing on the fly and allows for a number of novel constructs such as automated tier upgrades. In another light, this can be viewed as a global HTTP 402 reverse proxy at the load balancing level for web services and APIs. [l402]: https://github.com/lightninglabs/L402 Installation / Setup lnd Make sure lnd ports are reachable. aperture Compilation requires Go 1.25 ","default_branch":null,"files":null,"tree":[],"storefront":"/r/lightninglabs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lightninglabs/aperture/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}