Elestia Open Source Ratings
8.9

viem

A strong pick. 1st of 10 blockchain libraries.

I rate viem a 9 out of 10: it is the default choice today for reading and writing Ethereum and other EVM chains from TypeScript. viem is a typed, tree-shakable client library from the wevm team, who also make Wagmi and Ox. A large v3 rewrite is now on the `next` npm tag. It breaks much of the v2 API but ships a way to run v2 and v3 side by side.

Best for: Any TypeScript project on Ethereum or another EVM chain: backends, bots, scripts and frontends, with Wagmi on top for React.

WebsiteGitHubnpm

Scores

Overall8.9

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

Claude Opus 5.5: 9.0, likely 8.0 to 9.5

viem is the best and fastest-growing TypeScript library for EVM chains. It is very actively maintained and funded, and Hardhat and Wagmi have adopted it. It beats ethers.js for new work on types, bundle size and momentum. The coming v3 breaking rewrite and its EVM-only scope are the main limits; for Solana, use Solana Kit instead.

GPT-6.2 Sol: 8.8, likely 7.7 to 9.7

Viem is my first choice for a new TypeScript EVM project because it combines precise contract types, useful transaction tooling, and active maintenance. Ethers.js has a larger established installed base, while Wagmi uses viem underneath its frontend APIs. Teams that wrap the client heavily may pay an ongoing type maintenance cost, and Solana projects are better served by Solana Kit.

Needed by many3.2

How many developers need a tool for this job?

Claude Opus 5.5: 3.0, likely 2.0 to 4.0

Blockchain work is a clear niche among JavaScript developers. viem only covers Ethereum and EVM chains, not Solana or Bitcoin. Within that niche it fits almost every use: frontend, backend, scripts and tests.

GPT-6.2 Sol: 3.3, likely 2.2 to 4.4

Reading and writing blockchains is a niche job among JavaScript and TypeScript developers. Within that niche, viem covers Ethereum and compatible networks across browsers and server runtimes. The Solidity survey shows demand within Ethereum development, while the share of all JavaScript developers who need it is less certain.

Helps a lot8.9

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

Claude Opus 5.5: 9.0, likely 8.0 to 9.5

ABI-driven type inference, `simulateContract`, a clean split between read and write clients, small bundles and native bigint make it the strongest EVM client library. Independent write-ups name its weak points: more verbose code, less convenient ENS handling and nested errors. Good documentation and very wide use mean AI coding agents write viem code well, though v2 and v3 syntax may get mixed up during the transition.

GPT-6.2 Sol: 8.8, likely 7.7 to 9.7

Version 2.58.4 combines ABI inference, separate public and wallet clients, batched reads, and simulation that can decode custom contract errors. Worked examples and a machine-readable documentation index give coding agents a reference for common tasks, though agent accuracy is unmeasured. A user reported friction writing generic wrappers. Independent tests on earlier versions found fast ABI coding in one workload and a larger read-only contract bundle than ethers.js in another.

Holds up over time8.6

Will it still be a good choice in two years?

Claude Opus 5.5: 8.5, likely 7.5 to 9.5

Activity is very high: 1,225 commits and 118 releases in the last year, 1 open issue against 804 closed, and the last push was today. Paradigm and Tempo sponsor the work, and the ecosystem is moving toward viem: Hardhat 3 and Wagmi build on it. The large v3 rewrite will impose migration costs, and the core releases depend on a small team, which keeps this below the top.

GPT-6.2 Sol: 8.6, likely 7.3 to 9.5

Viem logged 1,225 commits and 118 releases in a year, and its latest patch updated support for an OP Stack upgrade. Wevm says sponsorship funds its two-person core team and significant outside contributions. Patch-level type changes can make upgrades take extra work. Issue counts show substantial maintenance activity, while typical response times and the number of people with release authority remain unclear.

Used widely6.8

How many use it, and is that growing?

Claude Opus 5.5: 8.0, likely 7.0 to 8.5

viem had 40M downloads in the last 4 weeks, up 4.5x from 8.9M a year ago. That is above the 4.1 median and about twice ethers' current 19.5M. Part of that count comes from Wagmi, wallet SDKs and Hardhat installing it, so direct choices are fewer. The low ecosyste.ms count (2,412 repos against ethers' 93k) reflects older counting rather than current choices. Even so, viem is clearly gaining share among new EVM projects.

  • npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 40.0M vs 8.9M, ratio 4.5 against a 4.1 median
  • peers ethers.js downloads: ethers at 19.5M, ratio 2.2
  • dependents: 2,412 repos and 623 packages, far below ethers' 93k repos
  • peers Wagmi downloads: Wagmi's 6.5M downloads install viem as a dependency

GPT-6.2 Sol: 5.6, likely 4.2 to 6.9

Four-week installs rose from 8.9 million to 40.0 million, a 4.50-fold increase that modestly exceeds the 4.10-fold catalog baseline and outpaces ethers.js. CI and downstream tools such as Wagmi inflate installs as a measure of direct choice. Ecosyste.ms found 2,412 dependent repositories and 623 packages, well below ethers.js in repository count. The Solidity survey shows substantial adoption, while incomplete repository coverage and sparse social activity leave its direct reach uncertain.

  • npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: viem grew 4.50-fold, the median was 4.10-fold, and ethers.js grew 2.20-fold
  • dependents, peers: 2,412 indexed viem repositories versus 93,211 for ethers.js
  • github stars, bluesky posts, hackerNews stories: 3,633 stars, two qualifying Bluesky posts, and zero matched Hacker News stories
  • wagmi.sh: Wagmi performs blockchain operations through viem
  • soliditylang.org/survey-2025: 39% of SDK respondents use viem and 70% use ethers.js
Vouched for8.2

Who stands behind it being good?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

Nomic Foundation chose viem as the default for Hardhat 3, Wagmi is built on it, Paradigm backs it, and MetaMask and many independent comparisons discuss it. Developer write-ups say they would not start a new project on ethers v5. No developer survey ranks it, and many comparison pages are vendor SEO, so the range stays open.

GPT-6.2 Sol: 8.3, likely 7.2 to 9.3

Uniswap lists viem as a direct dependency of its production web app, and Hardhat 3 offers a first-party viem toolbox. Coinbase documents viem for its EVM wallet workflows. The Solidity survey confirms substantial use among respondents, while satisfaction, retention, and performance on the latest patch have less direct evidence.

Safe8.1

How safe is it to depend on?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

OSV has no advisories for viem, it has 8 dependencies, and it is MIT on npm. Its crypto comes from the audited noble and scure libraries. There is no Scorecard result, and the GitHub licence field is empty. For a library that signs transactions, any compromise of its many automated releases would be severe, so the score stays below the top.

  • advisories total: 0 advisories
  • npm dependencies: 8 direct dependencies
  • npm license: MIT
  • scorecard: No OpenSSF Scorecard data
  • viem dependency tree: Relies on @noble/curves, @noble/hashes and @scure, which are audited

GPT-6.2 Sol: 8.2, likely 7.0 to 9.2

Viem uses the permissive MIT license, has eight direct dependencies, and has zero tracked advisories in the bundle. The stable release workflow runs verification and uses npm trusted publishing, and the security policy covers 2.x. The workflow leaves required release-environment review pending. The missing OpenSSF Scorecard and unclear number of people with release authority limit confidence in the remaining controls.

Good

  • Its types are inferred from the ABI, so wrong function names, argument types or read/write misuse fail at compile time.
  • Bundles are small and tree-shake well, and it uses native bigint instead of BigNumber wrappers.
  • It is very actively maintained: 1,225 commits and 118 releases last year, with only 1 open issue.
  • Hardhat 3's recommended toolbox and Wagmi both build on it, so it is the shared base of much of the EVM toolchain.

Bad

  • It only covers EVM chains, so Solana or Bitcoin need another library.
  • Code is more verbose than ethers, and some conveniences such as built-in ENS helpers and contract objects are thinner.
  • The coming v3 renames and regroups most of the API (clients, actions, utilities, errors), so upgrading will take real work.
  • Errors are typed but deeply nested, and v2 minor releases have sometimes included breaking changes to chain-specific features.

The numbers

npm downloads, 4 weeks
40M ×4.5 in a year
GitHub stars
3.6k
Commits, 12 months
1.2k
npm version
2.58.4 Nov 2026
Versions, 12 months
118
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
None
Licence
MIT

Read on 21 November 2026 from GitHub (wevm/viem), npm (viem), 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