{"id":13779685,"url":"https://github.com/koajs/maxrequests","last_synced_at":"2025-10-19T13:31:36.622Z","repository":{"id":66114045,"uuid":"60957480","full_name":"koajs/maxrequests","owner":"koajs","description":"Limit max requests on each http keepalive connection.","archived":false,"fork":false,"pushed_at":"2020-09-09T14:40:15.000Z","size":4,"stargazers_count":3,"open_issues_count":1,"forks_count":4,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-29T15:32:22.691Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koajs.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-06-12T09:00:38.000Z","updated_at":"2024-07-20T00:02:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"597fc95f-c520-457c-b5e1-ac96fbbde327","html_url":"https://github.com/koajs/maxrequests","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"60a5fad9426a0e8e633badc5f4cafcde5c9942e8"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Fmaxrequests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Fmaxrequests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Fmaxrequests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Fmaxrequests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koajs","download_url":"https://codeload.github.com/koajs/maxrequests/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237133601,"owners_count":19260507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T18:01:08.019Z","updated_at":"2025-10-19T13:31:31.350Z","avatar_url":"https://github.com/koajs.png","language":"JavaScript","funding_links":[],"categories":["Middleware"],"sub_categories":[],"readme":"# maxrequests\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/koa-maxrequests.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/koa-maxrequests\n[travis-image]: https://img.shields.io/travis/koajs/maxrequests.svg?style=flat-square\n[travis-url]: https://travis-ci.org/koajs/maxrequests\n[codecov-image]: https://codecov.io/gh/koajs/maxrequests/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/koajs/maxrequests\n[david-image]: https://img.shields.io/david/koajs/maxrequests.svg?style=flat-square\n[david-url]: https://david-dm.org/koajs/maxrequests\n[snyk-image]: https://snyk.io/test/npm/koa-maxrequests/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/koa-maxrequests\n[download-image]: https://img.shields.io/npm/dm/koa-maxrequests.svg?style=flat-square\n[download-url]: https://npmjs.org/package/koa-maxrequests\n\nLimit max requests on each http keepalive connection.\n\n## Install\n\n```bash\n$ npm install koa-maxrequests\n```\n\n## Usage\n\n```js\nconst maxrequests = require('koa-maxrequests');\nconst koa = require('koa');\n\nconst app = koa();\napp.use(maxrequests({\n  // if keepalive socket hit max requests, response will set `Connection: close` header.\n  max: 1000,\n}));\n```\n\n## License\n\n[MIT](LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoajs%2Fmaxrequests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoajs%2Fmaxrequests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoajs%2Fmaxrequests/lists"}