{"library":"infinity-agent","type":"library","category":null,"description":"infinity-agent is a Node.js utility package that provides custom HTTP and HTTPS agents configured with `maxSockets` set to `Infinity`. It effectively mirrors the behavior of Node.js core `http.Agent` and `https.Agent` classes but modifies them to allow an unlimited number of concurrent outgoing requests. This can be critical for high-throughput applications or services that experience `maxSockets` exhaustion with default Node.js agents. The current stable version is 2.0.3. As a wrapper around Node.js core modules, its release cadence tends to be stable, with updates driven by bug fixes or significant changes in Node.js's underlying network modules. A key differentiator is its out-of-the-box support for an unbounded connection pool, requiring minimal configuration to achieve high concurrency without the usual `maxSockets` limitations. It also includes a minor modification to the `addRequest` method that disables `keepAlive` if the agent isn't explicitly configured for it and `maxSockets` is set to `Infinity`, which is a subtle behavioral difference from the standard Node.js agent.","language":"javascript","status":"active","version":"2.0.3","tags":["javascript","http","https","agent","maxSockets"],"last_verified":"Wed May 27","install":[{"cmd":"npm install infinity-agent","imports":["const infinityAgent = require('infinity-agent');","const { http, https } = require('infinity-agent');\nconst infiniteHttpAgent = http.globalAgent;","const { http, https } = require('infinity-agent');\nconst infiniteHttpsAgent = https.globalAgent;"]},{"cmd":"yarn add infinity-agent","imports":[]},{"cmd":"pnpm add infinity-agent","imports":[]}],"homepage":null,"github":"https://github.com/floatdrop/infinity-agent","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/infinity-agent","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/infinity-agent/compatibility"}}