Toolverse
All skills

ratelimit-ts

by upstash

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.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
upstash
Category
Backend
Views
1

About this skill

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.

How to use

  1. Zainstaluj pakiet SDK poleceniem npm install @upstash/ratelimit @upstash/redis w swoim projekcie TypeScript.

  2. Utwórz połączenie z Redisem, przekazując URL i token dostępu do konstruktora Redis. Dane dostępowe znajdziesz w konsoli Upstash.

  3. Zainicjuj rate limiter, wskazując instancję Redis i wybierając algorytm ograniczania, na przykład sliding window z limitem 5 żądań na 10 sekund.

  4. Zastosuj limiter do każdego żądania przychodzącego, wywołując metodę limit() z identyfikatorem użytkownika lub klucza. Metoda zwraca obiekt z polem success wskazującym, czy żądanie przeszło limit.

  5. Obsłuż przypadek, gdy success jest false, zwracając błąd lub opóźniając żądanie. Pozwala to na kontrolę przepustowości i ochronę przed atakami brute-force.

  6. Zapoznaj się z dokumentacją dostępną w pliku algorithms.md, aby wybrać inny algorytm ograniczania, lub traffic-protection.md, aby poznać strategie zaawansowanej ochrony ruchu.

Related skills

youtube-transcribe-skill

by feiskyer

Extract subtitles/transcripts from a YouTube video URL and save as a local file. Use when you need to extract subtitles from a YouTube video.

Backend
24178

video-downloader

by ComposioHQ

Downloads videos from YouTube and other platforms for offline viewing, editing, or archival. Handles various formats and quality options.

Backend
50173

pdf-to-markdown

by aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions \

Backend
355664

dotnet-backend

by anton-abyzov

.NET/C# backend developer for ASP.NET Core APIs with Entity Framework Core. Builds REST APIs, minimal APIs, gRPC services, authentication with Identity/JWT, authorization, database operations, background services, SignalR real-time features. Activates for: .NET, C#, ASP.NET

Backend
92296

youtube-transcript

by michalparkola

Download YouTube video transcripts when user provides a YouTube URL or asks to download/get/fetch a transcript from YouTube. Also use when user wants to transcribe or get captions/subtitles from a YouTube video.

Backend
53214

literature-review

by K-Dense-AI

Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature

Backend
238507