</>PackageGraphPackageGraph

express-rate-limit

npmv8.7.0TypeScript

Basic 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.

2
Direct dependencies

Runtime packages this one declares itself.

3
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

549 KB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

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.

PackageWeekly downloadsDependentsLicenseLast release
express-rate-limitthis page02MIT12 days ago
p-limit293.1M5MIT1 day ago
cors69.7M6MIT1 day ago
ipaddr.js121.8M2MIT1 day ago
express92.8M17MIT1 day ago
proxy-addr72.2M1MIT1 day ago

Dependencies

Declared by express-rate-limit v8.7.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (25)

@asyncapi/specs 6.11.1@biomejs/biome 2.4.6@express-rate-limit/prettier 1.1.1@express-rate-limit/tsconfig 1.0.5@jest/globals 30.4.1@types/debug 4.1.13@types/express 5.0.6@types/jest 30.0.0@types/node 26.2.0@types/supertest 7.2.1del-cli 7.0.0dts-bundle-generator 8.1.2esbuild 0.28.2express 5.2.1husky 9.1.7jest 30.4.2lint-staged 17.3.0mintlify 4.2.817npm-run-all 4.1.5prettier 3.9.6ratelimit-header-parser 0.1.0supertest 7.2.2ts-jest 29.4.12ts-node 10.9.2typescript 5.9.3

Used by

Popular packages that depend on express-rate-limit.

Relationship graph

Dependencies (left) and dependents (right) of express-rate-limit.

Frequently installed together

Release history

22 releases in the last two years, typically about 9 days apart.

Recent versions of express-rate-limit
VersionPublishedSizeLicense
8.7.0latest12 days ago151 KBMIT
8.6.21 month ago149 KBMIT
8.6.11 month ago148 KBMIT
8.6.01 month ago148 KBMIT
8.5.23 months ago143 KBMIT
8.5.14 months ago143 KBMIT
8.5.04 months ago143 KBMIT
8.4.14 months ago141 KBMIT
8.4.04 months ago139 KBMIT
8.3.25 months ago138 KBMIT
8.3.16 months ago138 KBMIT
8.0.26 months ago131 KBMIT
8.2.26 months ago138 KBMIT
8.1.16 months ago135 KBMIT
8.3.06 months ago138 KBMIT

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

Keywords

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.