socks-proxy-agent
npmv10.1.0A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS
Safe to adopt
Yes — socks-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. 4 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. 4 releases in the last 2 years.
- BWeight: grade B, Good.
Pulls in 6 transitive packages, about 724 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- 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 socks-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 socks-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 socks-proxy-agent README.
import https from 'https';
import { SocksProxyAgent } from 'socks-proxy-agent';
const agent = new SocksProxyAgent(
'socks://your-name%40gmail.com:abcdef12345124@br41.nordvpn.com'
);
https.get('https://ipinfo.io', { agent }, (res) => {
console.log(res.headers);
res.pipe(process.stdout);
});socks-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 |
|---|---|---|---|---|
| socks-proxy-agentthis page | 0 | 3 | MIT | 3 months ago |
| pac-proxy-agent | 0 | 1 | MIT | 18 hours ago |
| proxy-agent | 0 | 1 | MIT | 18 hours ago |
| socks | 51.6M | 2 | MIT | 19 hours ago |
| https-proxy-agent | 225.1M | 10 | MIT | 17 hours ago |
| agent-base | 0 | 6 | MIT | 18 hours ago |
Dependencies
Declared by socks-proxy-agent v10.1.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (3)
Dev (12)
Used by
Popular packages that depend on socks-proxy-agent.
Relationship graph
Dependencies (left) and dependents (right) of socks-proxy-agent.
Frequently installed together
An HTTP(s) proxy `http.Agent` implementation for HTTPS
An HTTP(s) proxy `http.Agent` implementation for HTTP
Turn a function into an `http.Agent` instance
TypeScript definitions for node
TypeScript definitions for debug
Lightweight debugging utility for Node.js and the browser
Generates an asynchronous resolver function from a PAC file
An implementation of window.fetch in Node.js using Minipass streams
Offers getProxyForUrl to get the proxy URL for a URL, respecting the *_PROXY (e.g. HTTP_PROXY) and NO_PROXY environment variables.
TypeScript definitions for ws
A library for parsing IPv4 and IPv6 IP addresses in node and the browser.
A PAC file proxy `http.Agent` implementation for HTTP
Release history
4 releases in the last two years, typically about 73 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 10.1.0latest | 3 months ago | 18 KB | MIT |
| 10.0.0 | 5 months ago | 17 KB | MIT |
| 9.0.0 | 6 months ago | 17 KB | MIT |
| 8.0.5 | 1 year ago | 25 KB | MIT |
| 8.0.4 | 2 years ago | 24 KB | MIT |
| 8.0.3 | 2 years ago | 24 KB | MIT |
| 8.0.2 | 3 years ago | 24 KB | MIT |
| 8.0.1 | 3 years ago | 23 KB | MIT |
| 8.0.0 | 3 years ago | 23 KB | MIT |
| 7.0.0 | 4 years ago | 22 KB | MIT |
| 6.2.1 | 4 years ago | 22 KB | MIT |
| 6.2.0 | 4 years ago | 27 KB | MIT |
| 6.2.0-beta.1 | 4 years ago | 26 KB | MIT |
| 6.2.0-beta.0 | 4 years ago | 26 KB | MIT |
| 6.1.1 | 4 years ago | 19 KB | MIT |
Overview
socks-proxy-agent is an npm package that a SOCKS proxy `http.Agent` implementation for HTTP and HTTPS. It has 3 known dependents in the graph. The latest version is 10.1.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a SOCKS proxy `http.Agent` implementation for HTTP and HTTPS 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 socks-proxy-agent?
Yes — socks-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. 4 releases in the last 2 years.
How do I install socks-proxy-agent?
Run `npm install socks-proxy-agent` to add socks-proxy-agent to your npm project.
How many dependencies does socks-proxy-agent have?
socks-proxy-agent declares 15 direct dependencies and pulls in 6 packages in total once its runtime tree is resolved totalling about 724 KB on disk.
What license is socks-proxy-agent released under?
socks-proxy-agent is distributed under the MIT license.
How popular is socks-proxy-agent?
npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on socks-proxy-agent.
Is socks-proxy-agent still maintained?
The most recent release of socks-proxy-agent (v10.1.0) was published 3 months ago.
Does socks-proxy-agent run install scripts?
No. socks-proxy-agent does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.