Elestia Open Source Ratings
1.7

web3.js

Do not start with it. 10th of 10 blockchain libraries.

web3.js is the original JavaScript library for the Ethereum JSON-RPC API. Its maintainer, ChainSafe, ended it in early 2025: the repository is archived and the last release is 4.16.0 from December 2024. Do not start new work with it. Use viem, or ethers.js, which ChainSafe itself recommends.

Best for: Only teams that keep an existing web3.js codebase running while they plan a move to viem or ethers.js.

WebsiteGitHubnpm

Scores

Overall1.7

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 1.5, likely 1.0 to 2.5

The project is archived and was sunset by its maintainer, who points users to viem and ethers.js. Both are active and do the same job better. It still runs and is used widely in old code, which keeps the score above zero. Do not start a new project with it.

GPT-6.2 Sol: 1.9, likely 1.1 to 2.6

The stable release still handles routine EVM work, so existing integrations can use it while they migrate. For a new project, viem and ethers.js cover the same core work and continue to ship updates. The formal sunset and falling relative adoption make the recommendation clear, with some room for projects that require the legacy API.

Needed by many4.0

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

Talking to blockchains is a clear but sizeable niche among JS/TS developers. web3.js covers only Ethereum and EVM chains, not Solana or Bitcoin. That makes it a little narrower than its category.

  • github description: Covers the Ethereum JSON-RPC API only
  • Category scope: Blockchain work is a niche within JS development

GPT-6.2 Sol: 3.0, likely 1.8 to 4.1

Reading and writing blockchains is a niche within JavaScript and TypeScript development. web3.js serves that niche on Ethereum and other EVM chains, with APIs for browsers and Node.js. The Solidity survey shows demand within that ecosystem, but gives little basis for estimating the share of all JavaScript and TypeScript developers.

Helps a lot5.2

How well does it do the job for those who need it?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

Version 4.x is a working TypeScript rewrite with types and plugins, and it still does basic reads, writes and contract calls. viem is clearly better: it has stronger inferred contract types, a smaller tree-shakable bundle and current chain features. web3.js is frozen at a December 2024 build, so it will fall further behind as Ethereum changes.

GPT-6.2 Sol: 6.4, likely 5.2 to 7.5

Version 4.16.0 covers routine EVM reads, writes, signing, and events, with documented APIs and contract type inference. One independent multicall ABI benchmark put it behind viem and ahead of ethers.js on encoding and decoding. The v1-to-v4 import and BigInt changes can trip up users and coding agents following older examples. The benchmark covers one workload, and coding-agent accuracy remains unmeasured.

Holds up over time0.6

Will it still be a good choice in two years?

Claude Opus 5.5: 0.5, likely 0.0 to 1.5

ChainSafe sunset web3.js in early 2025 and archived the repository on 5 March 2025. There have been no commits or releases in the last year. npm access went to the Ethereum Foundation, but no successor team or widely adopted fork has appeared. The ecosystem has moved to viem and ethers.js.

GPT-6.2 Sol: 0.7, likely 0.2 to 1.5

ChainSafe ended maintenance in March 2025, and the repository is read-only. There were zero commits and releases in the past year, while viem and ethers.js both continued to publish. Existing EVM calls may keep working for years, but the archive and published migration plan leave little uncertainty about upstream maintenance.

  • blog.chainsafe.io/web3-js-sunset: ChainSafe announced the sunset and migration paths
  • github.com/web3/web3.js: Repository has been read-only since March 2025
  • github commitsLastYear and releasesLastYear: Zero commits and zero releases over the past year
  • peers viem and ethers.js latestPublishedAt: Both Ethereum peers published in 2026
Used widely4.6

How many use it, and is that growing?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

It still gets about 3.3M downloads every 4 weeks and has about 85k dependent repos, almost all from old codebases. Its download ratio of 1.30 is far below the 4.1 median, so it is losing ground quickly. viem now gets about 12 times as many downloads. Few new projects choose it.

  • npm downloadsLast4Weeks: 3.34M vs 2.57M a year ago, ratio 1.30 vs median 4.1
  • dependents: 84,683 repos, second only to ethers.js, mostly legacy
  • peers viem downloadsLast4Weeks: viem at 40M and growing 4.5x

GPT-6.2 Sol: 5.2, likely 3.9 to 6.5

ecosyste.ms found 84,683 dependent repositories and 6,521 dependent packages, and the nearly 20,000 stars reflect a substantial installed base. Four-week installs rose from 2.57 million to 3.34 million, but the 1.30× ratio lagged the 4.1× catalog median and both Ethereum peers. The Solidity survey recorded nine mentions, and the bundle found zero Bluesky posts linking to the repository. The mix of existing projects, automated installs, and indirect dependencies leaves the rate of fresh adoption uncertain.

  • dependents repos and packages: Repository count is close to ethers.js in the collector's coverage
  • github stars: 19,896 accumulated stars
  • npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: Year-over-year download ratio is 1.30× against a 4.1× median
  • peers viem and ethers.js downloadsLast4Weeks and downloadsSame4WeeksYearAgo: Viem grew 4.50× and ethers.js grew 2.20×
  • bluesky posts: Zero posts linking to the repository in the collection window
  • soliditylang.org/survey-2025: Nine web3.js mentions in the SDK question
Vouched for2.8

Who stands behind it being good?

Claude Opus 5.5: 2.5, likely 1.5 to 4.0

Its own maintainer now tells users to move to other libraries. Current independent comparisons call it legacy and recommend viem or ethers.js. Its past wide use counts for little now. It has no Bluesky attention, and the Hacker News matches are about a different project, Solana's web3.js.

GPT-6.2 Sol: 3.1, likely 2.0 to 4.4

Consensys Truffle historically depended on web3, and an independent ABI benchmark gives v4.16.0 some evidence of competitive performance. Truffle is also archived, Mask Network replaced its web3 contract layer with viem in 2026, and Ethereum.org directs new projects to viem or ethers.js. Recent production endorsements are sparse, and the benchmark covers a single workload.

Safe4.0

How safe is it to depend on?

Claude Opus 5.5: 4.0, likely 2.5 to 5.5

The record is clean: one low-severity advisory, from 2019. But nobody will fix future vulnerabilities in the code or in its 17 dependencies. No Scorecard data is available. The LGPL-3.0 licence is copyleft, which some companies restrict. It does not ban commercial use. A key-handling library with no maintainer is a real open risk.

  • advisories: 1 total, LOW, 2019; none in 24 months
  • npm dependencies: 17 dependencies
  • npm license: LGPL-3.0
  • scorecard: null, no Scorecard data
  • dwellir.com/blog/web3js-guide: Dependency CVEs will not get library fixes

GPT-6.2 Sol: 4.0, likely 2.8 to 5.5

The sole recorded advisory is low severity, and its listed affected range ends at 1.5.2. The archived package has 17 direct dependencies and LGPL-3.0 distribution obligations. The release guide describes manual npm publishing, and the lack of a Scorecard or verified current publisher count widens the range. The supply-chain incident in the supplied headlines affected the separate @solana/web3.js package.

Good

  • Version 4.x is written in TypeScript and ships its own types and a plugin system.
  • It is very widely used in old codebases, so many tutorials and Stack Overflow answers exist.
  • Official migration guides to ethers.js and viem are published on docs.web3js.org.
  • No advisories in the last 24 months, and only one low-severity advisory ever.

Bad

  • The repository was archived in March 2025 and has had no commits or releases since.
  • New Ethereum features, Node.js breakages and dependency CVEs will not get fixes.
  • Its bundle is heavier and its API less type-safe than viem's.
  • It uses the LGPL-3.0 licence, which is less permissive than the MIT licences of its peers.

The numbers

npm downloads, 4 weeks
3.3M +30% in a year
GitHub stars
20k
Commits, 12 months
0
npm version
4.16.0 Dec 2024
Versions, 12 months
0
Advisories, 24 months
0 of 1 ever
OpenSSF Scorecard
None
Licence
LGPL-3.0

Read on 21 November 2026 from GitHub (web3/web3.js), npm (web3), OSV and the OpenSSF Scorecard.

Blockchain libraries

  1. 8.9viem
  2. 8.2Wagmi
  3. 8.0Solana Kit
  4. 7.1Ox
  5. 6.9bitcoinjs-lib
  6. 6.7Hardhat
  7. 6.6ethers.js
  8. 6.3Solana web3.js
  9. 5.6thirdweb
  10. 1.7web3.js
Compare all 10 on six scores