{"id":35016612,"url":"https://github.com/jhkim31/http-connection-pool","last_synced_at":"2026-05-21T11:34:52.609Z","repository":{"id":213617863,"uuid":"730723297","full_name":"jhkim31/http-connection-pool","owner":"jhkim31","description":"HTTP connection pool that can be used when limiting the number of connections and sending multiple requests at the same time.","archived":false,"fork":false,"pushed_at":"2024-02-21T09:14:18.000Z","size":9171,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-28T19:10:14.230Z","etag":null,"topics":["connection-pool","http","http-connection-pool","https"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jhkim31.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-12-12T14:33:47.000Z","updated_at":"2024-09-11T09:03:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"d53f3ef2-f1d4-4240-8aea-552ccef99dd1","html_url":"https://github.com/jhkim31/http-connection-pool","commit_stats":null,"previous_names":["jhkim31/http-connection-pool"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/jhkim31/http-connection-pool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhkim31%2Fhttp-connection-pool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhkim31%2Fhttp-connection-pool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhkim31%2Fhttp-connection-pool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhkim31%2Fhttp-connection-pool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhkim31","download_url":"https://codeload.github.com/jhkim31/http-connection-pool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhkim31%2Fhttp-connection-pool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33299172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["connection-pool","http","http-connection-pool","https"],"created_at":"2025-12-27T05:22:17.842Z","updated_at":"2026-05-21T11:34:52.591Z","avatar_url":"https://github.com/jhkim31.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-connection-pool\n| [npm](https://www.npmjs.com/package/http-connection-pool) | \n\n**http-connection-pool** quickly performs many HTTP requests in concurrently that cannot be processed at once.\n\n\n## Table of contents\n* [Docs](#docs)\n* [Installation](#installation)\n* [Usage](#usage)\n  * [CJS (js)](#cjs-js)\n  * [ESM (js)](#esm-js)\n  * [Typescript](#typescript)  \n* [Use External HTTP Library](#use-external-http-library)\n  * [axios](#axios)\n  * [node-fetch](#node-fetch)\n  \n## Docs\n* [Getting Started](./docs/1-GettingStarted.md)\n* [API](./docs/2-API.md)\n* [Types](./docs/3-Types.md)\n\n## Installation\n```bash\nnpm install http-connection-pool\n```\n\n## Usage\n### CJS (js)\n```javascript\nconst { ConnectionPool } = require(\"http-connection-pool\");\n\nconst connectionPool = new ConnectionPool({size: 1000});\nfor (let i = 0; i \u003c= 100_000; i++) {\n  connectionPool.add({\n    url: \"http://localhost:3000/get\"\n  })\n  .then(d =\u003e {\n    console.log(d)\n  })\n  .catch(e =\u003e {\n    console.log(e)\n  })\n}\n```\n\n### ESM (js)\n```javascript\nimport ConnectionPool from \"http-connection-pool\";\n\nconst connectionPool = new ConnectionPool({size: 1000});\nfor (let i = 0; i \u003c= 100_000; i++) {\n  connectionPool.add({\n    url: \"http://localhost:3000/get\"\n  })\n  .then(d =\u003e {\n    console.log(d)\n  })\n  .catch(e =\u003e {\n    console.log(e)\n  })\n}\n```\n\n### Typescript\n```typescript\nimport ConnectionPool from \"http-connection-pool\";\n\nconst connectionPool = new ConnectionPool({size: 1000});\nfor (let i = 0; i \u003c= 100_000; i++) {\n  connectionPool.add({\n    url: \"http://localhost:3000/get\"\n  })\n  .then(d =\u003e {\n    console.log(d)\n  })\n  .catch(e =\u003e {\n    console.log(e)\n  })\n}\n```\n\n## [Use External HTTP Library](./example/other-agent/)\n### [axios](./example//other-agent/axios.ts);\n```typescript\nimport ConnectionPool from \"http-connection-pool\";\nimport axios, { AxiosResponse } from \"axios\";\n\nconst connectionPool = new ConnectionPool({size: 1000});\nfor (let i = 0; i \u003c= 100_000; i++) {\n  connectionPool.addExternalHttpClient\u003cAxiosResponse\u003e(axios.get, `http://localhost:${PORT}/test`)\n    .then(d =\u003e console.log(d.data, i));\n}\n```\n\n### [node-fetch](./example//other-agent/node-fetch.ts);\n```typescript\nimport ConnectionPool from 'http-connection-pool';\nimport fetch, {Response} from \"node-fetch\";\n\nconst connectionPool = new ConnectionPool({size: 1000});\nfor (let i = 0; i \u003c= 100_000; i++) {\n  connectionPool.addExternalHttpClient\u003cResponse\u003e(fetch, `http://localhost:${PORT}/test`)\n    .then(d =\u003e d.text())\n    .then(d =\u003e console.log(d, i));\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhkim31%2Fhttp-connection-pool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhkim31%2Fhttp-connection-pool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhkim31%2Fhttp-connection-pool/lists"}