{"library":"koa-ratelimit","type":"library","category":null,"description":"koa-ratelimit is a robust rate limiting middleware designed for Koa web applications. The current stable version is 6.0.0. It provides essential functionality to control and restrict the frequency of client requests to prevent abuse, enhance security, and ensure fair resource usage. Developers can choose between an in-memory driver (using a JavaScript Map) for simple, single-instance deployments or a Redis driver (requiring an ioredis client) for scalable, distributed environments. Key configurable options include the duration of the rate limit window, the maximum number of requests allowed within that duration, custom error messages, and flexible request identification (e.g., by IP address). It also supports advanced features like whitelisting, blacklisting, and custom HTTP headers for communicating rate limit status to clients. Releases follow an evolutionary path, with recent major versions focusing on updated Node.js engine support and feature refinements.","language":"javascript","status":"active","version":"6.0.0","tags":["javascript","koa","middleware","rate","ratelimit","ratelimiter"],"last_verified":"Wed May 27","install":[{"cmd":"npm install koa-ratelimit","imports":["const ratelimit = require('koa-ratelimit');","const Koa = require('koa');","const Redis = require('ioredis');"]},{"cmd":"yarn add koa-ratelimit","imports":[]},{"cmd":"pnpm add koa-ratelimit","imports":[]}],"homepage":null,"github":"https://github.com/koajs/ratelimit","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/koa-ratelimit","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/koa-ratelimit/compatibility"}}