Skip to main content

Requirements

Install

Initialize

Create a single instance of RateLimiter and reuse it across your application. Do not create a new instance per request.

Constructor Options

Never hardcode your API key in source code. Use environment variables.

Environment Setup

Add your key to .env:
And load it in your app: