animir/node-rate-limiter-flexible
Atomic and non-atomic counters and rate limiting tools. Limit resource access at any scale. observed · 2026-08-28
Health v2 · maintenance only
89/100
- Activity 86
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 13
- age_days: 3041
- days_rel: 86
- days_push: 86
- n_releases_24m: 26
Adoption not part of the score
3581 stars · 195 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Node.js/Deno library for counting and limiting events with atomic rate limiting across many backends including Redis, Valkey, Memcached, MongoDB, DynamoDB, MySQL, PostgreSQL, SQLite, Prisma, and in-process memory. It provides a unified API to throttle requests, block keys, and protect against DoS and brute force attacks at any scale.
Use cases
- rate limit api requests per ip address
- protect login endpoint from brute force attacks
- throttle requests in express or koa middleware
- distributed rate limiting across multiple servers with redis
- limit user actions like password resets or otp requests
- prevent dos attacks on nodejs application
- rate limiting without external store using in-memory counters
When to choose
- you need a unified rate limiter API that can switch between memory, Redis, and SQL/NoSQL stores as your app scales
- you need atomic increments to avoid race conditions in distributed environments
- you use Express, Koa, Hapi, or NestJS and need drop-in throttling middleware
- you need features like key blocking, action delays, and insurance/failover options
When to avoid
- you need advanced algorithms like token bucket or sliding window log with precise guarantees
- you are not on a JavaScript runtime (Node.js, Deno, or browser)
- you only need simple HTTP-level rate limiting already provided by your API gateway or reverse proxy
Facets
library · maturity stable
rate-limiting security caching middleware security web-development backend apis developer-tools browser cross-platform brute-force-protection dos-protection throttling express koa nestjs redis dynamodb postgresql memcached mongodb sqlite fixed-window distributed-rate-limiting nodejs deno web-server
1 source
- readme: https://github.com/animir/node-rate-limiter-flexible · fetched 2026-08-28 · 53edf2ee536e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| animir/node-rate-limiter-flexible | main | 89 |
For agents
markdown · JSON · MCP: product_card(name="animir/node-rate-limiter-flexible")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem