This package is currently in early development and not ready for production use.
Features, API, and documentation are subject to change. We are actively working to stabilize the package for a production release.
RateLimitAPI is a powerful rate limiting middleware for APIs, it is currently under development. It provides a simple yet robust solution for implementing industry-standard rate limiting to protect your endpoints from abuse.
- Easy-to-use middleware for popular frameworks
- Flexible rate limit configuration
- Customizable response formats for rate limit headers
- Detailed analytics and monitoring
- Protection against common abuse patterns
npm install ratelimitapi
or
yarn add ratelimitapi
Full documentation will be available at RateLimitAPI.com upon official release.
const rateLimitResponse = await isRateLimited(request, "your-api-token");
if (rateLimitResponse) {
return rateLimitResponse; // Return the 429 response if rate-limited
}
// Continue with normal request handling if not rate-limited
This project is licensed under the MIT License - see the package for details.
- Star our GitHub repository
- Follow our progress on Twitter (coming soon)
- Join our community Discord (coming soon)
For more information, please visit RateLimitAPI.com when it's available.