# Blockchain libraries

Read and write blockchains such as Ethereum and Solana. 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.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [viem](https://elestia.ai/opensource/web3/viem/index.md) | 8.9 | 3.2 | 8.9 | 8.6 | 6.8 | 8.2 | 8.1 | Any TypeScript project on Ethereum or another EVM chain: backends, bots, scripts and frontends, with Wagmi on top for React. |
| 2 | [Wagmi](https://elestia.ai/opensource/web3/wagmi/index.md) | 8.2 | 2.9 | 8.5 | 8.3 | 5.7 | 8.0 | 7.7 | Teams building a React (or Vue) frontend that connects to user wallets and reads and writes EVM contracts. |
| 3 | [Solana Kit](https://elestia.ai/opensource/web3/solana-kit/index.md) | 8.0 | 3.1 | 7.9 | 8.0 | 5.7 | 7.3 | 7.8 | TypeScript teams that build Solana apps, back ends or SDKs and want the official, tree-shakable client that new Solana tooling targets. |
| 4 | [Ox](https://elestia.ai/opensource/web3/ox/index.md) | 7.1 | 2.7 | 7.4 | 8.0 | 3.7 | 6.5 | 7.5 | Library authors and tooling builders who need fast, tree-shakable EVM primitives without a client layer. |
| 5 | [bitcoinjs-lib](https://elestia.ai/opensource/web3/bitcoinjs/index.md) | 6.9 | 2.9 | 7.0 | 6.3 | 4.9 | 6.1 | 5.9 | Teams that build Bitcoin wallets or services in JavaScript and want the most widely used, best-documented Bitcoin transaction library. |
| 6 | [Hardhat](https://elestia.ai/opensource/web3/hardhat/index.md) | 6.7 | 3.1 | 7.1 | 8.1 | 5.4 | 7.3 | 7.4 | Full-stack Ethereum teams who want contract compilation, Solidity and TypeScript tests, and deployments in one Node.js toolchain. |
| 7 | [ethers.js](https://elestia.ai/opensource/web3/ethers/index.md) | 6.6 | 3.2 | 7.3 | 5.5 | 6.8 | 7.0 | 5.9 | Teams that keep an existing ethers codebase, or that write Node scripts and backends that want a stable, batteries-included Ethereum API. |
| 8 | [Solana web3.js](https://elestia.ai/opensource/web3/solana-web3/index.md) | 6.3 | 3.1 | 6.8 | 6.6 | 5.9 | 5.9 | 6.1 | Teams that keep or migrate an existing v1 Solana codebase, or that depend on libraries built around the v1 class API. |
| 9 | [thirdweb](https://elestia.ai/opensource/web3/thirdweb/index.md) | 5.6 | 2.9 | 6.8 | 5.7 | 3.0 | 4.4 | 5.8 | Teams that want thirdweb's hosted wallets, RPC and payments from one vendor and accept paying for it and depending on it. |
| 10 | [web3.js](https://elestia.ai/opensource/web3/web3js/index.md) | 1.7 | 4.0 | 5.2 | 0.6 | 4.6 | 2.8 | 4.0 | Only teams that keep an existing web3.js codebase running while they plan a move to viem or ethers.js. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| viem | 40M | ×4.5 | 3.6k | 1.2k | Nov 2026 | 0 |
| Wagmi | 6.5M | ×4.6 | 6.8k | 309 | Nov 2026 | 0 |
| Solana Kit | 14M | ×10 | 702 | 874 | Oct 2026 | 0 |
| Ox | 62M | ×6.2 | 230 | 432 | Nov 2026 | 0 |
| bitcoinjs-lib | 4.3M | ×2.3 | 6k | 22 | Oct 2026 | 1 |
| Hardhat | 2.2M | +87% | 8.5k | 3.3k | Nov 2026 | 0 |
| ethers.js | 20M | ×2.2 | 8.7k | 41 | Jun 2026 | 0 |
| Solana web3.js | 14M | ×3.2 | 2.8k | 153 | Nov 2026 | 2 |
| thirdweb | 218k | −47% | 643 | 236 | Oct 2026 | 0 |
| web3.js | 3.3M | +30% | 20k | 0 | Dec 2024 | 0 |

All categories: https://elestia.ai/opensource/index.md
