{"library":"async-redis-rate-limiter","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.0.4","tags":["javascript","rate limiter","rate limit","throttle","limiting","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install async-redis-rate-limiter","imports":["import { FixedWindowRateLimit } from 'async-redis-rate-limiter'","import { incrementFixedWindowCounter } from 'async-redis-rate-limiter'","import type { FixedWindowRateLimit } from 'async-redis-rate-limiter'"]},{"cmd":"yarn add async-redis-rate-limiter","imports":[]},{"cmd":"pnpm add async-redis-rate-limiter","imports":[]}],"homepage":"https://github.com/Waveful/async-redis-rate-limiter","github":"https://github.com/Waveful/async-redis-rate-limiter","docs":null,"changelog":null,"pypi":null,"npm":"async-redis-rate-limiter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}