Payment-Gated
Reverse Proxy
A Cloudflare Worker that sits in front of any backend and gates access to protected routes with USDC payments. Zero backend modifications required.
Template Features
Transparent Proxying
All non-protected requests pass through unchanged to your origin server. Your backend stays untouched.
Pattern-Based Protection
Configure routes with exact paths like /premium or
wildcards like /api/private/*.
JWT Session Caching
After payment, a secure HttpOnly cookie grants 1-hour access without additional payments.
Configurable Pricing
Set custom USDC prices per route. Works on Base Sepolia (testnet) or Base mainnet.
Edge-Native
Runs entirely on Cloudflare Workers. Stateless design with no server-side session storage.
Built-in Test Endpoints
GET Health Check
Public endpoint to verify the proxy is running. Returns JSON with status and timestamp.
Always accessibleGET Protected Test
Test payment flow without an origin server. Requires valid payment or session cookie to access.
Requires payment