Quick Start
Install the package and add your first quota middleware in under five minutes.
Core Concepts
Learn how quota keys, drivers, and weighting work together.
Guides
Step-by-step walkthroughs for multi-tenant apps, callbacks, testing, and custom drivers.
API Reference
Full reference for
createQuotaLimiter, drivers, types, and response headers.How it works
1
Install
Add express-quota-limiter to your project with npm or yarn.
2
Choose a driver
Use
RedisDriver for production or MemoryDriver for local development and tests.3
Create middleware
Call
createQuotaLimiter with your storage driver, quota key generator, and limit.4
Attach to routes
Pass the returned middleware to any Express route or router.
Unlike rate limiters that enforce requests-per-second windows, express-quota-limiter is designed for long-window quotas — daily, weekly, or monthly usage caps.