
Description
Lightweight guidance for using the Upstash Redis RateLimit TypeScript/JavaScript SDK, including setup steps, basic usage, and pointers to advanced algorithm, features, pricing, and traffic‑protection docs.
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.
More skills from the skills repository
View all 7 skillsupstash
build applications with Upstash SDKs
Apr 6DatabaseRedisServerlessUpstashupstash-box-py
build sandboxed environments with Upstash Box
Jun 26CloudCode ExecutionPythonSandboxing +1upstash-cli
manage Upstash resources via CLI
Apr 27CLIDatabaseRedisServerless +1upstash-qstash-js
manage serverless messaging with QStash
Apr 6MessagingNode.jsServerlessUpstashupstash-redis-js
manage serverless Redis with Upstash
Apr 6Node.jsRedisServerlessUpstashupstash-redis-start
provision Upstash Redis databases for agents
May 9AgentsAutomationDatabaseMemory +2
More from Upstash
View publishercontext7-cli
manage documentation and skills with ctx7
context7
Apr 6CLIDocumentationKnowledge Managementcontext7-docs
fetch documentation and code examples
context7
May 27CLIDocumentationReferenceSDKcontext7-mcp
retrieve library documentation via MCP
context7
Apr 6DocumentationKnowledge ManagementMCPfind-docs
retrieve documentation for developer technologies
context7
Apr 6DocumentationResearchSearchupstash-ratelimit-ts
implement Redis rate limiting with Upstash
ratelimit-js
Apr 6PerformanceRedisTypeScriptUpstashredis-js
manage serverless Redis with Upstash
redis-js
Apr 6Node.jsRedisServerlessUpstash