{"repo":"upstash/ratelimit-js","free":true,"listed":false,"github":"https://github.com/upstash/ratelimit-js","clone":"git clone https://github.com/upstash/ratelimit-js.git","description":"Rate limiting library for serverless runtimes","language":"TypeScript","stars":2045,"topics":["rate-limiting","redis","serverless","upstash","upstash-ratelimit","upstash-sdk"],"license":"MIT","category":"databases-storage","readme_excerpt":"Upstash Rate Limit [!NOTE] This project is in GA Stage. The Upstash Professional Support fully covers this project. It receives regular updates, and bug fixes. The Upstash team is committed to maintaining and improving its functionality. It is the only connectionless (HTTP based) rate limiting library and designed for: - Serverless functions (AWS Lambda, Vercel ....) - Cloudflare Workers & Pages - Vercel Edge - Fastly Compute@Edge - Next.js, Jamstack ... - Client side web/mobile applications - WebAssembly - and other environments where HTTP is preferred over TCP. Quick Start Install npm Deno Create database Create a new redis database on upstash. See here for documentation on how to create a redis instance. Basic Usage For more information on getting started, you can refer to our documentation. Here's a complete nextjs example Documentation See the documentation for more information details about this package. Telemetry The SDK reports its name and version to Upstash as a header on the requests made by the redis client you provide, so we know which SDK versions are in use. No personal data, keys or identifiers are collected. You can opt out with enableTelemetry: false : or by setting the UPSTASH DISABLE TELEMETRY environment variable. Disabling telemetry on the redis client itself also disables it here. Contributing Database Create a new redis database on upstash and copy the url and token. Running tests To run the tests, you will need to set some environment variables. Here ","default_branch":null,"files":null,"tree":[],"storefront":"/r/upstash","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/upstash/ratelimit-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}