Skip to main content

upstash-ratelimit-js

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.

Jump to install

Source facts

Repository
vn7n24fzkq/github-profile-summary-cards
Last source activity
July 16, 2026 at 14:25
Detected SKILL.md language
English
Stars
3,658
Forks
517

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
6 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
upstash-ratelimit-js
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.
# Rate Limit TS SDK ## Quick Start - Install the SDK and connect to Redis. - Create a rate limiter and apply it to incoming operations. Example: ```ts 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.
View on GitHub