upstash-ratelimit-ts

- Install the SDK and connect to Redis.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "upstash-ratelimit-ts" with this command: npx skills add upstash/ratelimit-js/upstash-ratelimit-js-upstash-ratelimit-ts

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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

ratelimit-ts

No summary provided by upstream source.

Repository SourceNeeds Review
General

documentation-lookup

No summary provided by upstream source.

Repository SourceNeeds Review
1.3K-upstash
General

redis-js

No summary provided by upstream source.

Repository SourceNeeds Review
General

find-docs

No summary provided by upstream source.

Repository SourceNeeds Review