U
upstash-ratelimit-js
by @upstashv
4.6(120)
Upstash Redis RateLimit TypeScript/JavaScript SDK の軽量ガイダンス。インストール、レートリミッターの作成、スライディングウィンドウなどのアルゴリズム適用をカバーします。開発者がアプリに信頼性の高いレート制限を迅速に追加し、不正利用や過負荷を防止し、開発プロセスを簡素化します。
インストール方法
npx skills add https://github.com/upstash/skills --skill upstash-ratelimit-jscompare_arrows
Before / After 効果比較
1 组使用前
開発者は手動でRedis Luaスクリプトを記述し、デバッグと検証に多くの時間を費やしていました。
使用後
このSkillは明確なSDKドキュメントとサンプルコードを提供し、数行のコードで統合が可能になり、実装の負担が大幅に軽減されました。
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.
ユーザーレビュー (0)
レビューを書く
効果
使いやすさ
ドキュメント
互換性
レビューなし
統計データ
インストール数21.3K
評価4.6 / 5.0
バージョン
更新日2026年10月23日
比較事例1 件
ユーザー評価
4.6(120)
5
37%
4
43%
3
13%
2
5%
1
2%
この Skill を評価
0.0
対応プラットフォーム
🤖claude-code
タイムライン
作成2026年7月19日
最終更新2026年10月23日