Proxy Agents is a Node.js monorepo containing HTTP agent implementations for routing requests through proxy servers. Its high-level proxy-agent package automatically selects the correct agent from standard environment variables such as HTTP_PROXY, HTTPS_PROXY, and NO_PROXY. Lower-level packages provide dedicated support for HTTP, HTTPS, SOCKS, and PAC-based proxy configurations. An LRU cache reuses compatible agent instances across requests to reduce repeated setup work. The repository also includes shared foundations, URI helpers, PAC resolution utilities, negotiation code, tests, and TypeScript configuration. Applications can use the main package as a drop-in Node HTTP agent or import a protocol-specific module for greater control. The project centralizes maintenance and versioning for a widely used family of proxy networking packages.
Features
- Automatic environment-based proxy selection
- HTTP and HTTPS proxy agents
- SOCKS4 and SOCKS5 proxy support
- PAC file resolution and execution
- Reusable agents through LRU caching
- Modular TypeScript monorepo architecture