From upstash
Guides setup and usage of the Upstash Redis RateLimit SDK for TypeScript/JavaScript, with pointers to algorithm, pricing, and traffic protection docs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/upstash:upstash-ratelimit-jsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Install the SDK and connect to Redis.
Example:
import { Ratelimit } from "@upstash/ratelimit";
import { Redis } from "@upstash/redis";
const redis = new Redis({ url: "<url>", token: "<token>" });
const limiter = new Ratelimit({ redis, limiter: Ratelimit.slidingWindow(5, "10s") });
const { success } = await limiter.limit("user-id");
if (!success) {
// throttled
}
npx claudepluginhub upstash/skills --plugin upstashControls request throughput with token bucket, sliding window, and fixed window algorithms to protect APIs from abuse, enforce usage quotas, and prevent service overload using Redis.
Implements API rate limiting with sliding windows, token buckets, quotas using Redis and libraries for Node.js, Python/FastAPI, Java. Protects endpoints from excessive requests with headers and 429 responses.
Implements API rate limiting using token bucket, sliding window, Redis algorithms, and Express middleware. Use for securing public APIs, tiered access, and DoS protection.