RA

ratelimit-ts

Documentation and setup guide for the Upstash Redis Rate Limit TypeScript SDK.

Install

mkdir -p .claude/skills/ratelimit-ts && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4202" && unzip -o skill.zip -d .claude/skills/ratelimit-ts && rm skill.zip

Installs to .claude/skills/ratelimit-ts

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Lightweight guidance for using the Redis Rate Limit TypeScript SDK, including setup steps, basic usage, and pointers to advanced algorithm, features, pricing, and traffic‑protection docs.
187 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Configure Redis-based rate limiting
  • Implement sliding window algorithms
  • Protect APIs from traffic spikes
  • Set up rate limit SDK

How it works

The SDK connects to Redis to track request counts and apply rate-limiting algorithms like sliding windows to incoming operations.

Inputs & outputs

You give it
Rate limit configuration parameters
You get back
Rate limiter instance and success check logic

When to use ratelimit-ts

  • Setup Redis-based rate limiting
  • Implement sliding window rate limits
  • Protect APIs against traffic spikes

About this skill

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.

When not to use it

  • Applications without Redis infrastructure
  • Client-side only rate limiting

Prerequisites

Redis instanceUpstash Redis token

Limitations

  • Requires Redis connectivity

How it compares

It provides a pre-configured TypeScript SDK for Redis-based limiting instead of implementing custom rate-limiting logic.

Compared to similar skills

ratelimit-ts side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
ratelimit-ts (this skill)15moNo flagsIntermediate
telegram-mini-app626moReviewAdvanced
stripe-integration482moNo flagsAdvanced
nodejs-backend-patterns122moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

telegram-mini-app

davila7

Expert in building Telegram Mini Apps (TWA) - web apps that run inside Telegram with native-like experience. Covers the TON ecosystem, Telegram Web App API, payments, user authentication, and building viral mini apps that monetize. Use when: telegram mini app, TWA, telegram web app, TON app, mini app.

62163

stripe-integration

wshobson

Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.

48165

nodejs-backend-patterns

wshobson

Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.

1246

agent-dev-backend-api

ruvnet

Agent skill for dev-backend-api - invoke with $agent-dev-backend-api

318

shopify-apps

alinaqi

Shopify app development - Remix, Admin API, checkout extensions

19

ccxt-typescript

ccxt

CCXT cryptocurrency exchange library for TypeScript and JavaScript developers (Node.js and browser). Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchanges, fetch market data, place orders, stream live tickers/orderbooks, handle authentication, and manage errors. Use when working with crypto exchanges in TypeScript/JavaScript projects, trading bots, arbitrage systems, or portfolio management tools. Includes both REST and WebSocket examples.

15

Search skills

Search the agent skills registry