Solana Web3.js
Official JavaScript SDK for interacting with the Solana blockchain.
Crypto and web3 npm MIT
Used in agent projects
2,099
16.5% of 12,697 public repos built with AI coding agents
Rank in crypto and web3
#1 of 89
by use in those projects
Downloads
2.6M
npm, last 7 days, @solana/web3.js
GitHub stars
2,767
last push Oct 9, 2026
How Solana Web3.js is used
Solana Web3.js is a dependency in 2,099 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (16.5%), #1 of 89 in crypto and web3. The most used alternative there is viem. Projects that use it most often also use Solana SPL Token (43.5%), Solana Wallet Adapter (25.8%), TypeScript (68.1%).
Often used with Solana Web3.js
| Solana SPL Token | 43.5% of Solana Web3.js projects · 6.0× more than average |
|---|---|
| Solana Wallet Adapter | 25.8% of Solana Web3.js projects · 6.0× more than average |
| TypeScript | 68.1% of Solana Web3.js projects |
| Anchor | 20.2% of Solana Web3.js projects · 5.8× more than average |
| Metaplex | 13.6% of Solana Web3.js projects · 5.9× more than average |
| dotenv | 27.7% of Solana Web3.js projects · 1.8× more than average |
| ts-node | 18.2% of Solana Web3.js projects · 2.7× more than average |
| Axios | 21.6% of Solana Web3.js projects · 2.2× more than average |
By coding agent
| Claude Code | 2.7% of projects set up for it |
|---|---|
| GitHub Copilot | 0.8% of projects set up for it |
| Cursor | 1.0% of projects set up for it |
Share of public repos configured for each agent that list Solana Web3.js as a dependency.
Install
| Package | npm install @solana/web3.js |
|---|---|
| Main stacks | TypeScript / JavaScript (1,291), Next.js (513), Rust (237), Python (33) |
| Example projects | ant-design/ant-design-web3, ARBProtocol/solana-jupiter-bot, outsmartchad/onchain-dex-cli, ChainBuff/solana-web3js, NeurProjects/neur-app |
Alternatives to Solana Web3.js
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| viem npm TypeScript interface for Ethereum with type-safe interactions. |
1,566 (12.3%) | 6.5M | 3,577 | 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 | — |