upstash-ratelimit-js
tarafından upstash
Upstash Redis RateLimit TypeScript/JavaScript SDK'sini kullanmak için hafif rehberlik, kurulum adımları, temel kullanım ve gelişmiş algoritma işaretçileri dahil,…
npx skills add https://github.com/upstash/skills --skill upstash-ratelimit-jsRate 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.
upstash tarafından daha fazla skill
context7-cli
upstash
ctx7 CLI'yi kullanarak kütüphane dokümantasyonunu getirin, AI kodlama becerilerini yönetin ve Context7 MCP'yi yapılandırın. Kullanıcı "ctx7" veya "context7"den bahsettiğinde etkinleşir,…
official
context7-mcp
upstash
Bu beceri, kullanıcı kütüphaneler, çerçeveler, API referansları hakkında soru sorduğunda veya kod örneklerine ihtiyaç duyduğunda kullanılmalıdır. Kurulum soruları, kod… için etkinleşir.
official
documentation-lookup
upstash
Bu beceri, kullanıcı kütüphaneler, çerçeveler, API referansları hakkında soru sorduğunda veya kod örneklerine ihtiyaç duyduğunda kullanılmalıdır. Kurulum soruları, kod… için etkinleşir.
official
find-docs
upstash
Herhangi bir kütüphane için Context7 CLI kullanarak güncel dokümantasyon ve kod örneklerini alır.
official
context7-cli
upstash
ctx7 CLI'yi kullanarak kütüphane dokümantasyonunu getirin, AI kodlama becerilerini yönetin ve Context7 MCP'yi yapılandırın. Kullanıcı "ctx7" veya "context7"den bahsettiğinde etkinleşir,…
official
context7-docs-lookup
upstash
Context7'yi kullanarak güncel kütüphane dokümantasyonunu getirir. Kullanıcı kütüphaneler, çerçeveler, API referansları hakkında soru sorduğunda veya kod örneklerine ihtiyaç duyduğunda etkinleşir —…
official
context7-mcp
upstash
Bu beceri, kullanıcı kütüphaneler, çerçeveler, API referansları hakkında soru sorduğunda veya kod örneklerine ihtiyaç duyduğunda kullanılmalıdır. Kurulum soruları, kod… için etkinleşir.
official
ctx7-cli
upstash
ctx7 CLI'yi kullanarak kütüphane dokümantasyonunu getir, AI kodlama becerilerini yönet ve Context7 MCP'yi yapılandır. Kullanıcı "ctx7" veya "context7"den bahsettiğinde etkinleşir,…
official