# web3.js: 1.7 out of 10

Do not start with it. 10th of 10 in [Blockchain libraries](https://elestia.ai/opensource/web3/index.md).

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.

## Scores

- **Overall: 1.7** (likely 1.1 to 2.6)
  - Claude Opus 5.5 (1.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): 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 many: 4.0** (likely 2.9 to 5.1)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (3.0): 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 lot: 5.2** (likely 4.1 to 6.3)
  - Claude Opus 5.5 (4.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): 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 time: 0.6** (likely 0.1 to 1.5)
  - Claude Opus 5.5 (0.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): 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.
- **Used widely: 4.6** (likely 3.5 to 5.8)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (5.2): 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.
- **Vouched for: 2.8** (likely 1.8 to 4.2)
  - Claude Opus 5.5 (2.5): 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): 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.
- **Safe: 4.0** (likely 2.7 to 5.5)
  - Claude Opus 5.5 (4.0): 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.
  - GPT-6.2 Sol (4.0): 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

- Downloads, 4 weeks: 3.3M
- In a year: +30%
- GitHub stars: 20k
- Commits, 12 months: 0
- Last npm release: Dec 2024
- Advisories, 24 months: 0
- Licence: LGPL-3.0
- GitHub: https://github.com/web3/web3.js
- npm: https://www.npmjs.com/package/web3

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
