upstash-ratelimit-js
작성자: upstash
Upstash Redis RateLimit TypeScript/JavaScript SDK 사용을 위한 간단한 안내로, 설정 단계, 기본 사용법, 고급 알고리즘에 대한 포인터 등을 포함합니다.
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의 다른 스킬
context7-cli
upstash
ctx7 CLI를 사용하여 라이브러리 문서를 가져오고, AI 코딩 스킬을 관리하며, Context7 MCP를 구성하세요. 사용자가 "ctx7" 또는 "context7"을 언급하면 활성화됩니다.
official
context7-mcp
upstash
이 스킬은 사용자가 라이브러리, 프레임워크, API 참조에 대해 묻거나 코드 예제가 필요할 때 사용해야 합니다. 설정 질문, 코드…에 대해 활성화됩니다.
official
documentation-lookup
upstash
이 스킬은 사용자가 라이브러리, 프레임워크, API 참조에 대해 묻거나 코드 예제가 필요할 때 사용되어야 합니다. 설정 질문, 코드...에 대해 활성화됩니다.
official
find-docs
upstash
Context7 CLI를 사용하여 모든 라이브러리의 최신 문서와 코드 예제를 검색합니다.
official
context7-cli
upstash
ctx7 CLI를 사용하여 라이브러리 문서를 가져오고, AI 코딩 스킬을 관리하며, Context7 MCP를 구성하세요. 사용자가 "ctx7" 또는 "context7"을 언급할 때 활성화됩니다.
official
context7-docs-lookup
upstash
Context7를 사용하여 최신 라이브러리 문서를 가져옵니다. 사용자가 라이브러리, 프레임워크, API 참조에 대해 묻거나 코드 예제가 필요할 때 활성화됩니다…
official
context7-mcp
upstash
이 스킬은 사용자가 라이브러리, 프레임워크, API 참조에 대해 묻거나 코드 예제가 필요할 때 사용해야 합니다. 설정 질문, 코드…에 대해 활성화됩니다.
official
ctx7-cli
upstash
ctx7 CLI를 사용하여 라이브러리 문서를 가져오고, AI 코딩 스킬을 관리하며, Context7 MCP를 구성하세요. 사용자가 "ctx7" 또는 "context7"을 언급할 때 활성화됩니다.
official