upstash-ratelimit-js
Implement Upstash Rate Limits for JavaScript APIs
Serverless APIs need request limits that balance abuse prevention, latency, and Redis costs. This skill guides SDK integration, algorithm selection, and operational configuration with focused TypeScript examples.
Instalar com meu Agente
Copie esta solicitação para o seu Agente. Ela inclui a página canônica do Skill e o manifesto.
Review the Skillstore skill "upstash-ratelimit-js" from https://skillstore.io/skills/upstash-upstash-ratelimit-js.md and its manifest at https://skillstore.io/api/skills/upstash-upstash-ratelimit-js/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Seu Agente ainda deve apresentar o plano e solicitar qualquer confirmação exigida pela política de segurança.
Recursos legíveis por agentes
Use estes links quando um agente de IA, crawler ou script precisar de contexto limpo em vez de ler a página completa.
Testar
Usando "upstash-ratelimit-js". Which algorithm should I use for a low-cost, single-region endpoint that tolerates boundary bursts?
Resultado esperado:
- Fixed window fits these requirements because its documented Redis command count is lower than sliding window.
- Requests near a window boundary can create bursts beyond the intended short-term rate.
- Choose a stable identifier and test behavior across window transitions before deployment.
Usando "upstash-ratelimit-js". My edge deployment loses analytics updates and rarely benefits from the block cache. What should I check?
Resultado esperado:
- Create the limiter or shared ephemeral cache outside the request handler so warm invocations can reuse blocked identifiers.
- Pass the pending promise to the runtime background task mechanism so analytics and replication can finish.
- Cold starts still begin with empty caches, so cache savings depend on runtime reuse and traffic patterns.
Auditoria de segurança
SeguroAll 14 static findings are false positives involving documentation prose, Markdown formatting, example addresses, or legitimate Redis configuration. No evidence found of prompt injection, unauthorized command execution, credential exfiltration, or malicious intent in the reviewed files. Application integrations still require Redis credentials and deliberate timeout and consistency policies.
Fatores de risco
🌐 Acesso à rede (7)
🔑 Variáveis de ambiente (2)
⚙️ Comandos externos (2)
Compartilhar e citar este relatório
Compartilhe o relatório de avaliação versionado, o badge neutro, o cartão incorporável e as citações. A Skillstore apresenta evidências sem decidir se este Skill é seguro.
Copiar link do relatório
https://skillstore.io/skills/upstash-upstash-ratelimit-js/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportBadge Markdown
[](https://skillstore.io/skills/upstash-upstash-ratelimit-js?utm_source=security_passport_badge)Badge HTML
<a href="https://skillstore.io/skills/upstash-upstash-ratelimit-js?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/upstash-upstash-ratelimit-js/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Cartão incorporável
<iframe src="https://skillstore.io/embed/skills/upstash-upstash-ratelimit-js.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Citações acadêmicas (APA · BibTeX · CFF)
Citação APA
upstash. (2026). upstash-ratelimit-js security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/upstash-upstash-ratelimit-js/audits/1Citação BibTeX
@techreport{upstash-upstash-upstash-ratelimit-js-2026,
author = {upstash},
title = {upstash-ratelimit-js security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/upstash-upstash-ratelimit-js/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "upstash-ratelimit-js security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "upstash"
date-released: "2026-10-29"
url: "https://skillstore.io/skills/upstash-upstash-ratelimit-js/audits/1"
identifiers:
- type: other
value: "skillstore:upstash-upstash-ratelimit-js:audit:1"
description: "Skillstore immutable audit report identifier"
Pontuação do Skillstore
Por que esta pontuação Confiança das evidências: MédioO que você pode criar
Throttle a serverless API
Add per-user limits to an API route and return a 429 response when the quota is exhausted.
Plan Redis capacity and costs
Compare algorithm command counts, cache behavior, and replication overhead before choosing a regional deployment strategy.
Configure abuse protection
Apply deny-list checks to client metadata and account for exact matching, cached blocks, and asynchronous IP list updates.
Teste estes prompts
Show a TypeScript Upstash rate limiter allowing five requests per user every ten seconds. Explain Redis configuration and handling rejected requests without exposing secrets.
Compare fixed window, sliding window, and token bucket for my API. Ask about burst tolerance, regional deployment, and Redis costs before recommending an algorithm.
Review my edge rate limiter for cache placement, timeout behavior, analytics, and pending task completion. Identify integration gaps and propose changes using bundled SDK documentation.
Design limits for free and paid tenants across two regions. Compare prefixes, weighted requests, protection, and command costs, and explain consistency and dynamic-limit restrictions.
Boas práticas
- Check bundled SDK documentation and source before implementing version-sensitive options, and keep Redis credentials in server-side configuration.
- Reuse limiters outside serverless handlers and complete pending background work through the runtime lifecycle.
- Choose trusted identifiers and test rejection, timeout, and regional consistency behavior against your security requirements.
Evitar
- Treating timeout success or multi-region quotas as strict abuse prevention guarantees.
- Creating a fresh ephemeral cache for every request and expecting persistent block caching.
- Assuming deny lists support CIDR ranges or patterns, or omitting client metadata required by protection checks.
Perguntas frequentes
Does this skill run a rate limiting service?
Which languages and runtimes does it cover?
Does it require credentials?
Are requests always blocked when Redis is unavailable?
Can I use dynamic limits across multiple regions?
Can this skill estimate my Redis bill?
Detalhes do desenvolvedor
Autor
upstashLicença
MIT
Revisão da Skillstore
r1
Aviso de versão
O autor não declarou uma versão.
Repositório
https://github.com/upstash/skills/tree/adffa8896cd8e75649366a34183ecab6156e33c0/skills/upstash-ratelimit-jsReferência
91cd54c30dc04e4a3cfe02dd687a03c81d0c00bc
Atualidade da manutenção
29/10/2026
Uso
0 downloads · 0 visualizações
Estrutura de arquivos