async-redis-rate-limiter

JSON →
library 1.0.4 ·javascript
verified Jun 7, 2026

Fixed-window rate limiter for Node.js using a centralized Redis instance. Current stable version is 1.0.4 (released March 2022), with infrequent updates. It implements a fixed-window algorithm with millisecond precision, using only O(1) Redis operations for high performance (tested up to ~5.7M actions/minute locally). Unlike rolling-window limiters, it resets counters at window boundaries, which can allow bursts. Provides TypeScript types and promises-based API built on the 'redis' package v4+. Minimal dependencies (only @types/redis for TypeScript). Suitable for distributed systems (FaaS, microservices) requiring a centralized counter.