Install the Package
Install the@convex-dev/rate-limiter package using your preferred package manager:
Configure Convex
Create aconvex.config.ts file in your app’s convex/ folder and register the rate limiter component by calling use:
convex/convex.config.ts
The
convex.config.ts file is where you configure all Convex components. If you already have this file, simply add the app.use(rateLimiter) line.Version Requirements
The rate limiter component has the following peer dependencies:- Convex:
^1.24.8or higher (required) - React:
^18.2.0or^19.0.0(optional, only needed if using the React hook)
Verify Installation
After installation, run your Convex development server:Next Steps
Quickstart
Follow the quickstart guide to define and use your first rate limit