Upstash · Class
Ratelimit
Upstash Ratelimit is an HTTP-based TypeScript library for limiting requests with Upstash Redis. Configure an algorithm, call limit with an identifier, and use success to allow or reject work.
Last updated
Syntax
new Ratelimit({ redis, limiter }); await ratelimit.limit(identifier)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
RedisRatelimit.slidingWindowRatelimit.limitblockUntilReadyresetUsedTokensgetRemainingAnalyticsMulti Region