http-proxy-agent
npmv9.1.0An HTTP(s) proxy `http.Agent` implementation for HTTP
Safe to adopt
Yes — http-proxy-agent scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 93 days ago. 3 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 93 days ago. 3 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 4 transitive packages, about 90 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding http-proxy-agent to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing http-proxy-agent, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >= 20
- Module format
- ESM only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the http-proxy-agent README.
import * as http from 'http';
import { HttpProxyAgent } from 'http-proxy-agent';
const agent = new HttpProxyAgent('http://168.63.76.32:3128');
http.get('http://nodejs.org/api/', { agent }, (res) => {
console.log('"response" event!', res.headers);
res.pipe(process.stdout);
});http-proxy-agent vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| http-proxy-agentthis page | 0 | 5 | MIT | 3 months ago |
| https-proxy-agent | 225.1M | 10 | MIT | 17 hours ago |
| socks-proxy-agent | 0 | 3 | MIT | 18 hours ago |
| proxy-agent | 0 | 1 | MIT | 18 hours ago |
| pac-proxy-agent | 0 | 1 | MIT | 18 hours ago |
| agent-base | 0 | 6 | MIT | 18 hours ago |
Dependencies
Declared by http-proxy-agent v9.1.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (6)
Used by
Popular packages that depend on http-proxy-agent.
Microsofts' EdgeDriver for Node.js
Mozilla's Geckodriver for Node.js
Maps proxy protocols to `http.Agent` implementations
A PAC file proxy `http.Agent` implementation for HTTP
the http/https agent used by the npm cli
Relationship graph
Dependencies (left) and dependents (right) of http-proxy-agent.
Frequently installed together
An HTTP(s) proxy `http.Agent` implementation for HTTPS
TypeScript definitions for node
Turn a function into an `http.Agent` instance
A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS
An AST-based pattern checker for JavaScript.
Next generation testing framework powered by Vite
Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow
TypeScript execution environment and REPL for node.js, with source map support
Next-gen browser and mobile automation test framework for Node.js
V8 coverage provider for Vitest
A helper utility for logging of WebdriverIO packages
Lightweight debugging utility for Node.js and the browser
Release history
3 releases in the last two years, typically about 63 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 9.1.0latest | 3 months ago | 17 KB | MIT |
| 9.0.0 | 5 months ago | 15 KB | MIT |
| 8.0.0 | 6 months ago | 16 KB | MIT |
| 7.0.2 | 2 years ago | 23 KB | MIT |
| 7.0.1 | 2 years ago | 23 KB | MIT |
| 7.0.0 | 3 years ago | 24 KB | MIT |
| 6.1.1 | 3 years ago | 24 KB | MIT |
| 6.1.0 | 3 years ago | 23 KB | MIT |
| 6.0.1 | 3 years ago | 20 KB | MIT |
| 6.0.0 | 3 years ago | 20 KB | MIT |
| 5.0.0 | 5 years ago | 17 KB | MIT |
| 4.0.1 | 6 years ago | 17 KB | MIT |
| 4.0.0 | 6 years ago | 15 KB | MIT |
| 3.0.0 | 6 years ago | 7.0 KB | MIT |
| 2.1.0 | 8 years ago | 20 KB | MIT |
Overview
http-proxy-agent is an npm package that an HTTP(s) proxy `http.Agent` implementation for HTTP. It has 5 known dependents in the graph. The latest version is 9.1.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need an HTTP(s) proxy `http.Agent` implementation for HTTP and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use http-proxy-agent?
Yes — http-proxy-agent scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 93 days ago. 3 releases in the last 2 years.
How do I install http-proxy-agent?
Run `npm install http-proxy-agent` to add http-proxy-agent to your npm project.
How many dependencies does http-proxy-agent have?
http-proxy-agent declares 9 direct dependencies and pulls in 4 packages in total once its runtime tree is resolved totalling about 90 KB on disk.
What license is http-proxy-agent released under?
http-proxy-agent is distributed under the MIT license.
How popular is http-proxy-agent?
npm does not publish download counts. Within PackageGraph's crawl, 5 known packages depend on http-proxy-agent.
Is http-proxy-agent still maintained?
The most recent release of http-proxy-agent (v9.1.0) was published 3 months ago.
Does http-proxy-agent run install scripts?
No. http-proxy-agent does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.