One Worker in front of your backends. Routes live in KV, so changing them needs no redeploy. Built with Hono, streaming by default, running on Cloudflare's edge.
First match wins. Query strings are kept and the prefix is stripped before forwarding.
Several targets per route with a weighted pick, failover for GET and HEAD, and a per-route circuit breaker.
Optional request signing so backends can reject traffic that did not come through the Worker, with key rotation.
Optional caching of GET responses and per-IP rate limiting.
Config is cached in memory and refreshed in the background (stale-while-revalidate).
Streaming bodies, a 120 s default timeout, generic JSON errors with a request ID, structured logs and optional Analytics Engine metrics.
git clone https://github.com/KalpataruLab/edgeroute.git cd edgeroute pnpm install pnpm run dev # http://localhost:8787 pnpm test
Copy config.example.json to config.json, edit the routes and upload it to KV. Use https:// domain names for targets, and put specific prefixes first.