Aperture L402 Proxy

•
16
•

Implements L402 Lightning Network paywalls for API endpoints and web content using a specialized reverse proxy architecture.

Aperture is a specialized reverse proxy designed to enable the L402 protocol, allowing developers to gate API access and digital content behind Lightning Network micropayments. It sits in front of backend services, automatically handling the HTTP 402 'Payment Required' flow by issuing invoices and validating macaroon-based tokens once payments are confirmed. This skill streamlines the installation, setup, and management of Aperture, making it ideal for developers building paid services for AI agents, monetized API endpoints, or premium content delivery systems that leverage the speed and efficiency of the Lightning Network.

Key Features

01Support for both static satoshi-based pricing and dynamic gRPC price servers
02Flexible service routing with regex-based path and host matching
03Automated L402 protocol implementation for HTTP 402 payment-gated access
0416 GitHub stars
05Granular access control including rate limiting and authentication whitelists
06Seamless integration with LND for invoice generation and payment verification

Use Cases

01Creating pay-per-request API endpoints for autonomous AI agents
02Building and testing secure L402 authentication flows in development environments
03Monetizing digital content and documentation through Lightning micropayments