{"library":"connect-ratelimit","type":"library","category":null,"description":"connect-ratelimit is a Connect middleware designed to limit the number of requests per client IP address or hostname to a Node.js server. As of its last known update, it is at version 0.0.7, indicating a very early stage of development and a likely abandoned status, with no new releases since August 2014. It distinguishes clients using `req.headers['x-forwarded-for']` or `req.connection.remoteAddress` and supports flexible rate limiting rules through configurable 'normal', 'whitelist', and 'blacklist' categories. Uniquely, it offers an `end` option to either prematurely terminate the middleware chain with a 'Rate limit exceeded' message or allow the chain to continue, augmenting the `response` object with rate limit details for custom handling. This package is built for the `connect` framework, which is less commonly used directly in modern Node.js web applications, often replaced by frameworks like Express. Its core differentiation lies in its direct integration with `connect`'s simple middleware pattern and its customizable category-based limiting, though newer, more robust alternatives exist for current Node.js ecosystems.","language":"javascript","status":"abandoned","version":"0.0.7","tags":["javascript","connect","middleware","ip","limit","throttle","bandwidth"],"last_verified":"Wed May 27","install":[{"cmd":"npm install connect-ratelimit","imports":["const limiter = require('connect-ratelimit');"]},{"cmd":"yarn add connect-ratelimit","imports":[]},{"cmd":"pnpm add connect-ratelimit","imports":[]}],"homepage":null,"github":"https://github.com/dharmafly/connect-ratelimit","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/connect-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/connect-ratelimit/compatibility"}}