HTTP/HTTPS Proxy Agent for Node.js

JSON →
library 1.2.0 ·javascript
verified May 27, 2026

hpagent is a Node.js library providing HttpProxyAgent and HttpsProxyAgent classes designed to facilitate HTTP and HTTPS requests through proxy servers while leveraging connection keep-alive mechanisms. Currently at version 1.2.0, it maintains an active development status with periodic releases introducing features and bug fixes, such as strict TypeScript support and improved proxy handling. A key differentiator is its ability to serve as a drop-in replacement for Node.js's native `http` and `https` agents, offering robust proxy configuration options, including basic authentication via URL or custom headers, and the ability to pass specific options for the proxy CONNECT request. The library explicitly demonstrates compatibility with popular userland HTTP clients like `got`, `needle`, `node-fetch`, and `simple-get`, and ships with TypeScript type definitions, making it suitable for modern Node.js applications (Node.js >=14 is required since v1.0.0).

total hits 16
actors 7 distinct systems
last hit 2d ago human
MetaBot
4
GPTBot
2
PerplexityBot
2
Script
1
Search engines
1
Humans
2

top countries 🇺🇸 United States · 🇫🇮 Finland · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇸🇬 Singapore