Powered by @cat5th/pool.jsRate-Limited
Rate-Limited
HTTP Reverse Proxy
Protect upstream servers with precise concurrency control.
Simple, lightweight, built on ES2024 resource management.
npm install -g @cat5th/rate-proxy
Features
01
Concurrency Control
Limit the number of simultaneous upstream connections. New requests queue automatically when the limit is reached.
02
Zero Config
One environment variable to start. Sensible defaults for port (8080), concurrency (5), and timeout (120s).
03
Transparent Proxy
Forwards headers, handles request bodies, streams responses back. Full HTTP proxy with rate limiting.
04
Timeout Protection
Configurable request timeout with proper 504 responses. Prevents hung connections from consuming resources.
Usage
Basic
TARGET=http://api.example.com rate-proxyCustom concurrency
TARGET=http://api.example.com \
CONCURRENCY=2 rate-proxyVia npx (no install)
TARGET=http://api.example.com \
@cat5th/rate-proxyEnvironment Variables
| Variable | Default | Description |
|---|---|---|
TARGET | — | Upstream server URL (required) |
PORT | 8080 | Local listening port |
CONCURRENCY | 5 | Max concurrent upstream requests |
TIMEOUT | 120000 | Request timeout in milliseconds |
Get Started
Protect your upstream servers in one command.
TARGET=<your-api> rate-proxy