Used in agent projects
1,566
12.3% of 12,697 public repos built with AI coding agents
Rank in crypto and web3
#2 of 89
by use in those projects
Downloads
6.5M
npm, last 7 days, viem
GitHub stars
3,577
last push Oct 10, 2026
How viem is used
viem is a dependency in 1,566 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (12.3%), #2 of 89 in crypto and web3. The most used alternative there is Solana Web3.js. Projects that use it most often also use wagmi (40.7%), TanStack Query (33.2%), TypeScript (74.0%). It is more common in projects set up for Claude Code (4.2%) than for GitHub Copilot (0.7%).
Often used with viem
| wagmi | 40.7% of viem projects · 8.0× more than average |
|---|---|
| TanStack Query | 33.2% of viem projects · 3.5× more than average |
| TypeScript | 74.0% of viem projects |
| ethers.js | 23.8% of viem projects · 5.3× more than average |
| RainbowKit | 17.2% of viem projects · 7.9× more than average |
| React | 49.3% of viem projects |
| Next.js | 33.8% of viem projects · 1.5× more than average |
| ESLint | 40.9% of viem projects |
By coding agent
| Claude Code | 4.2% of projects set up for it |
|---|---|
| Cursor | 2.1% of projects set up for it |
| GitHub Copilot | 0.7% of projects set up for it |
| OpenAI Codex | 1.6% of projects set up for it |
| Gemini CLI | 1.1% of projects set up for it |
Share of public repos configured for each agent that list viem as a dependency.
Install
| Package | npm install viem |
|---|---|
| Main stacks | TypeScript / JavaScript (1,026), Next.js (502), React Native / Expo (15), Python (13) |
| Example projects | sunflower-land/sunflower-land, ant-design/ant-design-web3, family/connectkit, veithly/BountyBoard, mcpdotdirect/evm-mcp-server |
Alternatives to viem
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Solana Web3.js npm Official JavaScript SDK for interacting with the Solana blockchain. |
2,099 (16.5%) | 2.6M | 2,767 | MIT |
| Solana SPL Token npm JavaScript API for interacting with Solana's SPL Token program. |
924 (7.3%) | 1.2M | 223 | Apache-2.0 |
| wagmi npm React hooks library for Ethereum interactions and wallet connections. |
650 (5.1%) | 1M | 6,759 | MIT |
| ethers.js npm Complete Ethereum library for building dapps, wallets and blockchain tools. |
574 (4.5%) | 3.6M | 8,710 | MIT |
| Solana Wallet Adapter npm React hooks and UI for connecting Solana wallets to dapps with state management. |
547 (4.3%) | 1M | 2,030 | Apache-2.0 |
| Anchor npm Framework for developing Solana smart contracts with TypeScript and Rust. |
438 (3.4%) | 851K | 5,142 | (MIT OR Apache-2.0) |
| solders pypi Python bindings for Solana Rust tools enabling efficient blockchain interaction. |
423 (3.3%) | 388K | 449 | — |
| solana-py pypi Python SDK for interacting with Solana blockchain and building on-chain programs. |
342 (2.7%) | 247K | 1,445 | — |