Requirements
- Node.js 18+
- An API key from the Throttlr Dashboard
Install
Initialize
Create a single instance ofRateLimiter and reuse it across your application. Do not create a new instance per request.
Constructor Options
Environment Setup
Add your key to.env: