Preparing for system design interviews?  Try bugzed.com →

Express Throttle

JSON →
library 2.0.0 ·javascript
verified Jun 17, 2026

Request throttling middleware for Express using a token bucket algorithm with sliding window refill. Version 2.0.0 is current stable. Enables per-route rate limiting with configurable burst capacity, rate, and key function (defaults to IP address). Supports half-requests and custom cost per request. Limitations: in-memory storage by default (not shared across processes), and race conditions when using custom external backends under high load. Recommended for single-process apps.

total hits 13
actors 3 distinct systems
last hit 18d ago AhrefsBot
GPTBot
4
Script
1
Humans
4

top countries 🇺🇸 United States · 🇨🇦 Canada · VN · 🇬🇧 United Kingdom · HK