/rate_limiter-for-apis

An implement to rate limit the apis using hono js and redis.

Primary LanguageTypeScript

Rate Limiter for apis

This is a simple implementation to limit the usage of apis. Cache in redis is implemented through sliding window algorithm function.

You can build your apis on top of it and use it to limit the usage of your apis.

image

Tech stack

  • Typescript
  • Honojs
  • Upstash/Redis
  • Wrnagler

Create your account on

  • Upstash
  • Cloudflare

How to run

  • Clone the repo
  • Run npm install
  • Run npm run dev