{"library":"redis-gcra","type":"library","category":null,"description":"An implementation of the Generic Cell Rate Algorithm (GCRA) for rate limiting using Redis. Version 0.7.0 is the latest stable release, updated as of early 2025. It supports both ioredis and node-redis clients, with TypeScript type definitions included. Key differentiators are its reliance on the efficient GCRA algorithm (no token bucket overhead) and minimal dependencies. The package provides three core methods: limit (attempt to consume tokens), peek (check availability without consumption), and reset (clear state for a key). It is actively maintained by Losant with a focus on correctness and performance.","language":"javascript","status":"active","version":"0.7.0","tags":["javascript","GCRA","redis","limit","throttle","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install redis-gcra","imports":["import RedisGCRA from 'redis-gcra'","import redisGcra from 'redis-gcra'","import type { Limiter } from 'redis-gcra'"]},{"cmd":"yarn add redis-gcra","imports":[]},{"cmd":"pnpm add redis-gcra","imports":[]}],"homepage":"https://github.com/Losant/redis-gcra#readme","github":"https://github.com/Losant/redis-gcra","docs":null,"changelog":null,"pypi":null,"npm":"redis-gcra","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}