
Description
upstash-ratelimit-js is an agent skill from Upstash's skills collection, listed on skills.sh. It helps an AI agent add rate limiting to serverless and edge apps using the @upstash/ratelimit TypeScript and JavaScript SDK, which keeps its counters in Upstash Redis. The skill's quick start shows the setup: install the SDK, connect to Redis with a URL and token, create a limiter and apply it to incoming operations. The example uses a sliding window of five requests per ten seconds, and checks the success flag from each call to decide whether to throttle a request. The skill is meant for cases where you want to limit how often a user, an IP address or another key can make requests, for example in API routes or edge functions. Because the SDK talks to Redis over HTTP, it suits runtimes where a persistent connection is not practical. A skill is a SKILL.md file of instructions, sometimes with scripts and reference notes, that an AI agent loads only when a task calls for it. The skill is listed as free on skills.sh, and its security audits show Pass results from Gen Agent Trust Hub, Socket and Snyk.…
Highlights
- Rate limiter backed by Upstash Redis
- Sliding window setup example
- Works in serverless and edge runtimes
- Quick start with install and connection steps
Ratings & Reviews
No ratings yet
Be the first to rate upstash-ratelimit-js.
People also visit
upstash-ratelimit-js FAQ
What does the upstash-ratelimit-js skill do?
It helps an AI agent add rate limiting with the @upstash/ratelimit SDK, backed by Upstash Redis.
How do I install it?
Run: npx skills add https://github.com/upstash/skills --skill upstash-ratelimit-js
Is it free?
Yes. The skill is listed as free on skills.sh.
What does the quick start set up?
The SDK, a Redis connection with a URL and token, and a sliding window limiter that checks each request with its success flag.
Which security audits does it pass?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best upstash-ratelimit-js alternatives?
Popular alternatives to upstash-ratelimit-js include api-rate-limiting, inngest-flow-control and upstash-redis-js. See all upstash-ratelimit-js alternatives










