{"library":"redis-rate-limiter","type":"library","category":null,"description":"Rate-limit any operation with Redis, using a fixed-window algorithm. Current stable version is 1.2.0. The package is lightweight and focuses on performance (>10,000 checks/sec on local Redis) and race-condition safety. It provides a simple API for creating rate limiters with shorthands like '100/minute' and includes built-in HTTP middleware for Express/Restify. Unlike rolling-window implementations like ratelimiter, this uses fixed windows which can allow traffic bursts at window edges. The package has low maintenance activity and limited documentation, but works reliably for basic use cases.","language":"javascript","status":"maintenance","version":"1.2.0","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install redis-rate-limiter","imports":["const rateLimiter = require('redis-rate-limiter');","const limit = rateLimiter.create({ redis: client, key: 'ip', rate: '100/minute' });","const middleware = rateLimiter.middleware({ redis: client, key: 'ip', rate: '100/minute' });"]},{"cmd":"yarn add redis-rate-limiter","imports":[]},{"cmd":"pnpm add redis-rate-limiter","imports":[]}],"homepage":"https://github.com/Tabcorp/redis-rate-limiter#readme","github":"https://github.com/Tabcorp/redis-rate-limiter","docs":null,"changelog":null,"pypi":null,"npm":"redis-rate-limiter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}