</>PackageGraphPackageGraph

socks

npmv2.8.10TypeScript

Fully featured SOCKS proxy client supporting SOCKSv4, SOCKSv4a, and SOCKSv5. Includes Bind and Associate functionality.

Safe to adopt

Yes — socks scores well across adoption, maintenance, weight, supply chain, and licensing. 51.6M downloads per week and 2 known dependents. Last published 7 days ago. 7 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    51.6M downloads per week and 2 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 7 days ago. 7 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Pulls in 2 transitive packages, about 637 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 socks to a project.

2
Direct dependencies

Runtime packages this one declares itself.

2
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

637 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

Every license you inherit by installing socks, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >= 10.0.0, npm >= 3.0.0
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the socks README.

typescriptFull README ↗
// TypeScript
import { SocksClient, SocksClientOptions, SocksClientChainOptions } from 'socks';

// ES6 JavaScript
import { SocksClient } from 'socks';

// Legacy JavaScript
const SocksClient = require('socks').SocksClient;

socks vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
socksthis page51.6M2MIT7 days ago
socks-proxy-agent03MIT1 day ago
proxy-agent01MIT1 day ago
pac-proxy-agent01MIT1 day ago
https-proxy-agent225.1M10MIT1 day ago
proxy-addr72.2M1MIT1 day ago

Dependencies

Declared by socks v2.8.10. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (9)

@eslint/js ^10.0.1@types/mocha ^10.0.6@types/node ^26.4.1eslint ^10.9.1mocha ^12.0.0prettier ^3.2.5ts-node ^10.9.1typescript ^5.3.3typescript-eslint ^8.69.0

Used by

Popular packages that depend on socks.

Relationship graph

Dependencies (left) and dependents (right) of socks.

Frequently installed together

Release history

7 releases in the last two years, typically about 32 days apart.

Recent versions of socks
VersionPublishedSizeLicense
2.8.10latest7 days ago152 KBMIT
2.8.94 months ago153 KBMIT
2.8.84 months ago153 KBMIT
2.8.71 year ago153 KBMIT
2.8.61 year ago153 KBMIT
2.8.51 year ago153 KBMIT
2.8.41 year ago153 KBMIT
2.8.32 years ago153 KBMIT
2.8.22 years ago152 KBMIT
2.8.12 years ago152 KBMIT
2.7.42 years ago152 KBMIT
2.7.32 years ago152 KBMIT
2.7.22 years ago152 KBMIT
2.8.02 years ago152 KBMIT
2.7.13 years ago148 KBMIT

Overview

socks is an npm package that fully featured SOCKS proxy client supporting SOCKSv4, SOCKSv4a, and SOCKSv5. Includes Bind and Associate functionality. It is extremely widely used, with about 51.6M downloads per week and 2 known dependents in the graph. The latest version is 2.8.10, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need fully featured SOCKS proxy client supporting SOCKSv4, SOCKSv4a, and SOCKSv5. Includes Bind and Associate functionality and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (51.6M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use socks?

Yes — socks scores well across adoption, maintenance, weight, supply chain, and licensing. 51.6M downloads per week and 2 known dependents. Last published 7 days ago. 7 releases in the last 2 years.

How do I install socks?

Run `npm install socks` to add socks to your npm project.

How many dependencies does socks have?

socks declares 11 direct dependencies and pulls in 2 packages in total once its runtime tree is resolved totalling about 637 KB on disk.

What license is socks released under?

socks is distributed under the MIT license.

How popular is socks?

socks has approximately 51,585,351 downloads per week and 2 known dependent packages.

Is socks still maintained?

The most recent release of socks (v2.8.10) was published 7 days ago.

Does socks run install scripts?

No. socks does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.