upstash/ratelimit-js
Rate limiting library for serverless runtimes observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 99
- Release rhythm 53
- 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: 70
- age_days: 1596
- days_rel: 233
- days_push: 9
- n_releases_24m: 6
Adoption not part of the score
2044 stars · 50 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A TypeScript rate limiting library backed by Upstash Redis that works over HTTP, making it suitable for serverless and edge runtimes. It provides sliding window, fixed window, token bucket, and other limiting algorithms with optional analytics.
Use cases
- rate limit api requests in serverless functions
- add rate limiting to next.js app
- limit requests per ip in cloudflare workers
- sliding window rate limiter with redis
- protect expensive endpoints from abuse
- rate limiting on vercel edge functions
When to choose
- you need connectionless HTTP-based rate limiting in serverless or edge environments
- you already use Upstash Redis
- you want built-in analytics and multiple window algorithms
When to avoid
- you want rate limiting without an external Redis dependency
- you need TCP-based Redis with a self-hosted instance and low latency
- you are not on a JavaScript/TypeScript runtime
Facets
library · maturity stable
rate-limiting caching middleware backend web-development apis serverless wasm cloud redis upstash serverless edge-runtime http-based sliding-window fixed-window typescript-sdk nodejs deno typescript
2 sources
- readme: https://github.com/upstash/ratelimit-js · fetched 2026-08-28 · 1410e9033582
- homepage: https://ratelimit-with-upstash.vercel.app/ · fetched 2026-08-29 · 187d252fc127
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| upstash/ratelimit-js | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="upstash/ratelimit-js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem