U
upstash-ratelimit-js
by @upstashv
4.6(120)
Lightweight guidance for using the Upstash Redis RateLimit TypeScript/JavaScript SDK, covering setup, rate limiter creation, and algorithm application like sliding window. Helps developers quickly add reliable rate limiting to their apps to prevent abuse and overload, streamlining development.
Installation
npx skills add https://github.com/upstash/skills --skill upstash-ratelimit-jscompare_arrows
Before / After Comparison
1 组Before
Developers had to manually write Redis Lua scripts for rate limiting logic, with repeated debugging and validation, often taking a lot of time.
After
This Skill provides clear SDK docs and example code, allowing integration in just a few lines, greatly reducing implementation effort.
SKILL.md
Rate Limit TS SDK
Quick Start
- Install the SDK and connect to Redis.
- Create a rate limiter and apply it to incoming operations.
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
}
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.
User Reviews (0)
Write a Review
Effect
Usability
Docs
Compatibility
No reviews yet
Statistics
Installs21.3K
Rating4.6 / 5.0
Version
Updated2026年10月23日
Comparisons1
User Rating
4.6(120)
5
37%
4
43%
3
13%
2
5%
1
2%
Rate this Skill
0.0
Compatible Platforms
🤖claude-code
Timeline
Created2026年7月19日
Last Updated2026年10月23日