express-rate-limit
npmv8.7.0TypeScriptBasic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.
Safe to adopt
Yes — express-rate-limit scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 12 days ago. 23 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 12 days ago. 23 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 3 transitive packages, about 549 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding express-rate-limit to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing express-rate-limit, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >= 16
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the express-rate-limit README.
import { rateLimit } from 'express-rate-limit'
const limiter = rateLimit({
windowMs: 15 * 60 * 1000, // 15 minutes
limit: 100, // Limit each IP to 100 requests per `window` (here, per 15 minutes).
standardHeaders: 'draft-8', // draft-6: `RateLimit-*` headers; draft-7 & draft-8: combined `RateLimit` header
legacyHeaders: false, // Disable the `X-RateLimit-*` headers.
ipv6Subnet: 56, // Set to 60 or 64 to be less aggressive, or 52 or 48 to be more aggressive
// store: ... , // Redis, Memcached, etc. See below.
})
// Apply the rate limiting middleware to all requests.
app.use(limiter)express-rate-limit vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| express-rate-limitthis page | 0 | 2 | MIT | 12 days ago |
| p-limit | 293.1M | 5 | MIT | 1 day ago |
| cors | 69.7M | 6 | MIT | 1 day ago |
| ipaddr.js | 121.8M | 2 | MIT | 1 day ago |
| express | 92.8M | 17 | MIT | 1 day ago |
| proxy-addr | 72.2M | 1 | MIT | 1 day ago |
Dependencies
Declared by express-rate-limit v8.7.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (2)
Peer (1)
Dev (25)
Used by
Popular packages that depend on express-rate-limit.
Relationship graph
Dependencies (left) and dependents (right) of express-rate-limit.
Frequently installed together
TypeScript-first schema declaration and validation library with static type inference
Fast, unopinionated, minimalist web framework
Next generation testing framework powered by Vite
Node.js CORS middleware
TypeScript definitions for cors
TypeScript definitions for node
TypeScript definitions for ws
Create and parse HTTP Content-Type header
An AST-based pattern checker for JavaScript.
Get and validate the raw body of a readable stream.
Prettier is an opinionated code formatter
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
Release history
22 releases in the last two years, typically about 9 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 8.7.0latest | 12 days ago | 151 KB | MIT |
| 8.6.2 | 1 month ago | 149 KB | MIT |
| 8.6.1 | 1 month ago | 148 KB | MIT |
| 8.6.0 | 1 month ago | 148 KB | MIT |
| 8.5.2 | 3 months ago | 143 KB | MIT |
| 8.5.1 | 4 months ago | 143 KB | MIT |
| 8.5.0 | 4 months ago | 143 KB | MIT |
| 8.4.1 | 4 months ago | 141 KB | MIT |
| 8.4.0 | 4 months ago | 139 KB | MIT |
| 8.3.2 | 5 months ago | 138 KB | MIT |
| 8.3.1 | 6 months ago | 138 KB | MIT |
| 8.0.2 | 6 months ago | 131 KB | MIT |
| 8.2.2 | 6 months ago | 138 KB | MIT |
| 8.1.1 | 6 months ago | 135 KB | MIT |
| 8.3.0 | 6 months ago | 138 KB | MIT |
Overview
express-rate-limit is an npm package that basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset. It has 2 known dependents in the graph. The latest version is 8.7.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (28 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use express-rate-limit?
Yes — express-rate-limit scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 12 days ago. 23 releases in the last 2 years.
How do I install express-rate-limit?
Run `npm install express-rate-limit` to add express-rate-limit to your npm project.
How many dependencies does express-rate-limit have?
express-rate-limit declares 28 direct dependencies and pulls in 3 packages in total once its runtime tree is resolved totalling about 549 KB on disk.
What license is express-rate-limit released under?
express-rate-limit is distributed under the MIT license.
How popular is express-rate-limit?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on express-rate-limit.
Is express-rate-limit still maintained?
The most recent release of express-rate-limit (v8.7.0) was published 12 days ago.
Does express-rate-limit run install scripts?
No. express-rate-limit does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.