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.

来源信息

仓库
vn7n24fzkq/github-profile-summary-cards
最近来源活动
2026年7月16日 14:25
检测到的 SKILL.md 语言
英语
星标
3,686
分支
521

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
6 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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.
在 GitHub 查看