upstash-ratelimit-js

द्वारा upstash

Upstash Redis RateLimit TypeScript/JavaScript SDK के उपयोग के लिए हल्का मार्गदर्शन, जिसमें सेटअप चरण, बुनियादी उपयोग और उन्नत एल्गोरिदम के संकेत शामिल हैं,…

npx skills add https://github.com/upstash/skills --skill upstash-ratelimit-js

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.

upstash की और Skills

context7-docs
upstash
किसी भी लाइब्रेरी, फ्रेमवर्क, SDK, CLI टूल या क्लाउड सेवा के लिए अद्यतन दस्तावेज़ और कोड उदाहरण प्राप्त करें। जब भी उपयोगकर्ता किसी विशिष्ट… के बारे में पूछे तो उपयोग करें।
official
context7-mcp
upstash
यह कौशल तब उपयोग किया जाना चाहिए जब उपयोगकर्ता लाइब्रेरी, फ्रेमवर्क, API संदर्भों के बारे में पूछता है, या कोड उदाहरणों की आवश्यकता होती है। सेटअप प्रश्नों, कोड… के लिए सक्रिय होता है।
official
ctx7-cli
upstash
ctx7 CLI का उपयोग लाइब्रेरी दस्तावेज़ प्राप्त करने, AI कोडिंग कौशल प्रबंधित करने और Context7 MCP कॉन्फ़िगर करने के लिए करें। जब उपयोगकर्ता "ctx7" या "context7" का उल्लेख करे तो सक्रिय करें,…
official
docs
upstash
किसी भी प्रोग्रामिंग लाइब्रेरी या फ्रेमवर्क के लिए Context7 से नवीनतम दस्तावेज़ीकरण और कोड उदाहरण प्राप्त करता है और क्वेरी करता है। उस कोड को लिखते समय उपयोग करें जो… पर निर्भर करता है।
official
documentation-lookup
upstash
प्रशिक्षण डेटा पर निर्भर रहने के बजाय वर्तमान लाइब्रेरी दस्तावेज़ीकरण और कोड उदाहरण प्राप्त करें। लाइब्रेरी नामों को Context7 दस्तावेज़ीकरण आईडी में हल करता है, फिर सेटअप, कॉन्फ़िगरेशन और API संदर्भ जानकारी के लिए क्वेरी करता है। प्रमुख फ्रेमवर्क और लाइब्रेरी का समर्थन करता है: React, Vue, Svelte, Next.js, Express, Prisma, Supabase, Tailwind, और अन्य। सेटअप प्रश्नों, कोड जनरेशन अनुरोधों और फ्रेमवर्क-विशिष्ट पूछताछ के लिए स्वचालित र
official
find-docs
upstash
किसी भी लाइब्रेरी के लिए Context7 CLI का उपयोग करके वर्तमान दस्तावेज़ीकरण और कोड उदाहरण प्राप्त करें।
official
redis-js
upstash
Upstash Redis JavaScript/TypeScript SDK के साथ सर्वरलेस Redis संचालन के लिए काम करें। कैशिंग, सत्र भंडारण, दर सीमित करने, लीडरबोर्ड, पूर्ण-पाठ… के लिए उपयोग करें।
official
upstash-search-js
upstash
Upstash Search के त्वरित आरंभ, मुख्य अवधारणाओं और TypeScript SDK उपयोग को कवर करने वाले दस्तावेज़ीकरण कौशल का प्रवेश बिंदु। तब उपयोग करें जब कोई उपयोगकर्ता आरंभ करने का तरीका पूछे,…
official