ratelimit-js
Add serverless rate limiting and abuse protection to any app
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install ratelimit-js?โผ
Run `npx skills add upstash/ratelimit-js --all -g -y` in your terminal to install all tools in this suite globally.
How to rate limit serverless functions?โผ
Create a Ratelimit instance with an Upstash Redis database, pick an algorithm like sliding window, and call limit() with a user ID or IP before running your logic.
Which rate limiting algorithm should I use?โผ
Use fixed window for the lowest cost, sliding window for smoother behavior at window boundaries, and token bucket when you want to allow controlled bursts.
Does it work on Cloudflare Workers and Vercel Edge?โผ
Yes. It is HTTP-based with no TCP connections, so it runs natively on Cloudflare Workers, Vercel Edge, Deno, Fastly, and AWS Lambda.
Can it block malicious IPs automatically?โผ
Yes. Enable protection mode to use deny lists and an auto-updating IP blocklist aggregated from over 30 open-source abuse databases.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core