Elestia Open Source Ratings
7.9

express-rate-limit

A strong pick. 3rd of 10 web security libraries.

express-rate-limit is the standard rate-limiting middleware for Express. It is small and easy to set up, actively maintained, and has plug-in stores for Redis and other backends. It is a strong pick for Express apps. For non-Express servers, or for more complex limiting strategies, rate-limiter-flexible fits better.

Best for: Express (or Connect-style) apps that want per-client request limits with a few lines of config and an optional Redis store.

WebsiteGitHubnpm

Scores

Overall7.9

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 7.5, likely 6.5 to 8.0

For an Express app, this is the default way to add rate limiting. It is simple, active, typed and handles security issues well. It ranks below Helmet and DOMPurify as a category default because it serves only Express. rate-limiter-flexible suits multi-framework or complex distributed limits better.

GPT-6.2 Sol: 8.3, likely 7.2 to 9.2

This is a strong choice for new Express apps that need straightforward request limits. Its typed middleware, clear documentation, active maintenance, and adoption growth support that recommendation. Rate-limiter-flexible is a better fit for apps outside Express or for teams that need a wider choice of built-in storage backends. The need for deployment-specific proxy and store setup keeps the recommendation strongest for conventional Express services.

Needed by many4.9

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

Most public APIs need rate limiting, but this project serves only Express and Connect-style servers. That is a large group, but it is narrower than the whole category, which also covers headers and HTML sanitizing. Express is still the most used Node server framework.

GPT-6.2 Sol: 4.8, likely 3.7 to 6.0

Request throttling is a common need for public APIs and login routes, and Express led backend framework usage in the 2025 State of JavaScript survey. This package targets Express-compatible servers and covers one part of web security. The survey leaves open how many teams delegate rate limiting to a gateway or hosting platform.

Helps a lot7.7

How well does it do the job for those who need it?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

It does the common job well: it has clear options, standard RateLimit headers, IPv6 subnet masking, async stores and many config checks that catch mistakes. AI agents write correct code for it easily. Its limits are a fixed-window model and the Express-only design. rate-limiter-flexible is the more capable tool for distributed or complex strategies.

GPT-6.2 Sol: 8.3, likely 7.2 to 9.2

Version 8.7.5 provides typed fixed-window middleware with async limits, custom client keys, and documented configuration warnings. The small API and worked examples make routine setup straightforward for coding agents, while proxy identity and shared counters still require deployment context. A LibreChat user reported real proxy setup friction, and a benchmark from the makers of hitlimit measured fast in-memory checks with lower throughput than rate-limiter-flexible in its test.

Holds up over time8.1

Will it still be a good choice in two years?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

The project has been maintained for twelve years. In the last year it had 17 releases and 136 commits, and its issue backlog is tiny. Releases are automated with npm provenance. A small volunteer team carries the work, and the next major release will remove some constants. That is a modest risk, which keeps it from a top score.

GPT-6.2 Sol: 8.1, likely 6.9 to 9.1

The project logged 136 commits and 17 GitHub releases in the past year, and both named maintainers merged changes in November. The high-severity March fix was backported to three earlier minor lines. The small maintainer team, limited visible sponsorship, and the change to default IPv6 grouping in v8 leave some uncertainty about future support and upgrade effort.

Used widely6.7

How many use it, and is that growing?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

Downloads rose from 37M to 388M per 4 weeks. That ratio of 10.4 is far above the 4.1 median, but most of the jump comes from the MCP TypeScript SDK, which installs it. Its 27.6k dependent repos are about nine times rate-limiter-flexible's, which points to many direct choices: likely hundreds of thousands of projects.

  • npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 388.3M vs 37.3M, ratio about 10.4 against a median of 4.1
  • dependents: 27,591 repos and 781 packages; rate-limiter-flexible has 3,010 repos
  • licenses.dev/npm/%40modelcontextprotocol%2Fsdk/1.15.1: MCP SDK lists express-rate-limit as a direct dependency, which inflates downloads

GPT-6.2 Sol: 6.4, likely 5.1 to 7.7

Four-week npm downloads climbed from 37.3 million to 388.3 million, about 10.4 times the prior year and well ahead of the 4.1 times catalog median. Ecosyste.ms found 27,591 dependent repositories and 781 packages, well ahead of both rate-limiting peers in the bundle. The MCP SDK and express-slow-down bring indirect installs, and public discussion is sparse, so the download surge gives an imprecise estimate of growth in direct adoption.

Vouched for6.6

Who stands behind it being good?

Claude Opus 5.5: 6.0, likely 4.0 to 7.0

The official MCP TypeScript SDK builds on it, and many tutorials and comparisons treat it as the default for Express. There are no survey results or independent benchmarks for it. Community discussion is thin: no Hacker News stories, and only 3 Bluesky posts.

GPT-6.2 Sol: 7.2, likely 6.0 to 8.4

The MCP TypeScript SDK uses it for OAuth, n8n declares it directly, and LibreChat users have reported running it in deployed apps. Those are concrete signs of trust in real applications. Evidence specific to the current release is thinner, with limited independent performance coverage and no package-level satisfaction figures in the sources reviewed.

Safe8.0

How safe is it to depend on?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

It has one advisory, a high-severity issue in March 2026 where IPv4-mapped addresses all shared one limit bucket. It was fixed in 8.3.0 and backported to older minors. Later releases fixed two more security issues before they became advisories. It has 2 dependencies, an MIT licence and publishes with provenance. No Scorecard data is available, which widens the range a little.

GPT-6.2 Sol: 7.9, likely 6.7 to 9.0

The MIT-licensed package has two direct runtime dependencies, and its tagged CI workflow uses npm trusted publishing. The maintainers backported the high-severity March fix and published patches for two additional advisories in October and November that the bundle omitted. All three fixes are in 8.7.5. The unavailable OpenSSF Scorecard and limited visibility into who can trigger a release widen the range.

Good

  • Takes a few lines of config, with clear TypeScript types and runtime checks that catch typos and proxy misconfiguration.
  • Very active maintenance: 17 releases and 136 commits in the last year, with only 3 open issues.
  • Separate store packages such as rate-limit-redis make limits shared across instances.
  • Security fixes ship fast and get backported to older 8.x minors.

Bad

  • Tied to Express-style middleware, so it does not fit Fastify, Hono or edge runtimes well.
  • Has fewer algorithms and knobs than rate-limiter-flexible, for example no built-in sliding window or login brute-force patterns.
  • The default in-memory store gives wrong totals when more than one process runs, unless you add an external store.
  • Most of its recent download growth comes from the MCP TypeScript SDK installing it, not from developers choosing it.

The numbers

npm downloads, 4 weeks
388M ×10 in a year
GitHub stars
3.3k
Commits, 12 months
136
npm version
8.7.5 Nov 2026
Versions, 12 months
20
Advisories, 24 months
1 of 1 ever
OpenSSF Scorecard
None
Licence
MIT

Read on 21 November 2026 from GitHub (express-rate-limit/express-rate-limit), npm (express-rate-limit), OSV and the OpenSSF Scorecard.

Web security libraries

  1. 8.7DOMPurify
  2. 8.2Helmet
  3. 7.9express-rate-limit
  4. 7.6cors
  5. 7.4rate-limiter-flexible
  6. 7.0Upstash Ratelimit
  7. 6.8sanitize-html
  8. 6.1csrf-csrf
  9. 5.7Arcjet
  10. 5.0js-xss
Compare all 10 on six scores