Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Solana Web3.js

Official JavaScript SDK for interacting with the Solana blockchain.

Crypto and web3NPM

GitHubWebsite

1. License

License from npm.

github.com/solana-foundation/solana-web3.js

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Solana Web3.js does

The v3 line keeps the class-based API that v1 users know but rebuilds its internals on Solana Kit, and the repo ships an agent skill for moving code from v1 to v3.

Solana Web3.js popularity

68 / 100
Gid Score, #491 overall
3.7M
downloads a week, npm
2,781
GitHub stars
25
agent projects use it
Solana Web3.js: downloads per weeknpm, @solana/web3.js 3,699,315
Solana Web3.js: GitHub starssolana-foundation/solana-web3.js 2,781

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Solana Web3.js is used

  • Solana Web3.js is a dependency in 25 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.5% of the 4,867 JavaScript/TypeScript ones), #3 of 155 in crypto and web3.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 2,380; those are left out of every share on this page.
  • The most used alternative in our scan is ethers.js (30 projects).
  • Projects that use it most often also use dotenv (60.0%), Solana SPL Token (44.0%), Zod (60.0%).

By coding agent

15 projects, 0.5%
14 projects, 0.5%
11 projects, 0.5%

Often used with

In 60.0% of its projects
In 44.0% of its projects
In 60.0% of its projects
In 28.0% of its projects
In 32.0% of its projects
In 32.0% of its projects
In 24.0% of its projects
In 24.0% of its projects

Solana Web3.js in practice

Strengths

v3 keeps the v1 class-based API

Upgrading to v3 does not mean learning a new programming model. The docs say v3 keeps the class-based API and swaps the internals for Solana Kit.

Ships an agent skill for the v1 → v3 upgrade

The repo includes a skill that coding agents can use to migrate an app, alongside a human-facing guide. You install it with <code>npx skills add</code>, either from a local checkout or straight from the GitHub path.

One package, three runtime builds

v3 publishes separate builds for Node.js, browsers and React Native. For pages with no bundler there are minified and unminified IIFE bundles on unpkg.

Task-based docs outside the API reference

The docs send readers to the Solana Cookbook for guides organised by task, and to the API documentation for individual functions.

Watch out for

v1 is in maintenance mode

Code written against v1 is on a branch that receives critical fixes only. New development happens on v3+.

Latest GitHub release is still a v1 tag

The releases page lists v1.99.0 as the latest release. Install the v3 range explicitly (<code>@solana/web3.js@3</code>) if that is the line you want.

BigInt required, no legacy browsers

Browser support covers modern evergreen browsers with BigInt. Older browsers are only reachable if your app transpiles and polyfills the package itself.

Install v3

npm install @solana/web3.js@3
pnpm add @solana/web3.js@3
bun add @solana/web3.js@3
yarn add @solana/web3.js@3

More about Solana Web3.js

Packages around it
  • @solana/spl-token: SPL token client
  • @solana/wallet-adapter-react: Wallet adapter for React
  • @coral-xyz: Anchor client packages
  • @metaplex-foundation: Metaplex SDKs
  • dotenv: Env file loader
  • ts-node: Run TypeScript in Node
More in Crypto and web3

Alternatives

Solana Web3.js This page

MITGid 683.7M/wk

ethers.js

Complete Ethereum library for building dapps, wallets and blockchain tools.

MITGid 695.1M/wk

Solana Kit

Solana JavaScript SDK for building web3 applications on the Solana blockchain.

MITGid 553.7M/wk

Compare Solana Web3.js with another tool

Get started

Install it.

npm install @solana/web3.js

Rules for your agent

Paste into AGENTS.md or CLAUDE.md
## Solana Web3.js
- Target v3 for new code: install `@solana/web3.js@3`. v1 (`maintenance/v1.x`) receives critical fixes only.
- To upgrade a v1 app, use the official skill: `npx skills add https://github.com/solana-foundation/solana-web3.js/tree/main/skills/web3js-v1-to-v3-migration`.
- Require Node 20.18.0 or newer, and runtimes with BigInt support (Hermes on React Native).
- When loading the IIFE bundle from unpkg in production, pin an exact version instead of the `@3` range.
- Do not promise support for older browsers unless the app transpiles and polyfills the package itself.
- Integration tests need a local validator: run `pnpm --filter @solana/web3.js run test:live-with-test-validator:setup` first.
- Check the Solana Cookbook for task recipes and the API Documentation for individual functions.