Powered by @cat5th/pool.js

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-proxy
Custom concurrency
TARGET=http://api.example.com \
CONCURRENCY=2 rate-proxy
Via npx (no install)
TARGET=http://api.example.com \
npx @cat5th/rate-proxy

Environment Variables

VariableDefaultDescription
TARGETUpstream server URL (required)
PORT8080Local listening port
CONCURRENCY5Max concurrent upstream requests
TIMEOUT120000Request timeout in milliseconds

Get Started

Protect your upstream servers in one command.

TARGET=<your-api> rate-proxy