Agent skill · software engineering · upstash
upstash-ratelimit-js
Rate limiting for serverless and edge apps with the @upstash/ratelimit TypeScript/JavaScript SDK backed by Upstash Redis. Use when adding a rate limiter or throttling to an API route, Next.js middleware, Vercel Edge, Cloudflare Workers, or any HTTP endpoint; returning 429 Too Many Requests; choosing between fixed window, sliding window, and token bucket algorithms; limiting per user, IP, API key, or tenant with prefixes and custom keys; protecting login, signup, form, or AI endpoints from abuse, bots, and brute force; using deny lists, ephemeral caching, analytics, timeouts, and multi-region rate limits; or estimating the Redis command cost of rate limiting. Also use when the user says rate limit, rate-limiting, throttle, quota, request limits, or traffic protection.
Why this skill is useful
Provides specific usage patterns and advanced features for the Upstash Redis RateLimit SDK that the AI wouldn't reliably generate on its own.
What it needs
Requires @upstash/ratelimit, @upstash/redis installed locally. About 1k tokens when loaded. Last updated 2026-07-14. 17 stars on the source repository.
What this skill does
Rate Limit TS SDK Quick Start Install the SDK and connect to Redis. Create a rate limiter and apply it to incoming operations. Example: Other Skill Files algorithms.md: Describes all available rate‑limiting algorithms and how they behave. pricing-cost.md: Explains pricing, Redis cost implications, and operational considerations. features.md: Lists SDK features such as prefixes, custom keys, and behavioral options. methods-getting-started.md: Full method reference for the SDK's API and getting started guide. traffic-protection.md: Guidance on applying rate limiting for traffic shaping, abuse prevention, and protection patterns.
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills upstash/upstash-ratelimit-js