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
:
"
upstash-ratelimit-js
安装
npx skills add https://github.com/upstash/skills --skill upstash-ratelimit-js