{
 "kind": "tool",
 "slug": "solana-web3-js",
 "path": "tools/solana-web3-js/",
 "name": "Solana Web3.js",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Crypto and web3",
   "tools/web3/"
  ]
 ],
 "lead": "Official JavaScript SDK for interacting with the Solana blockchain.",
 "chips": [
  {
   "label": "Crypto and web3",
   "path": "tools/web3/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @solana/web3.js"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/solana-foundation/solana-web3.js"
  },
  {
   "label": "Website",
   "href": "https://solana.com/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/solana-foundation/solana-web3.js"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Nov 10, 2026. ",
   "src": "https://github.com/solana-foundation/solana-web3.js"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "25 projects",
   "status": "info",
   "sub": "#3 of 155 in its category",
   "note": "Dependency in 25 public GitHub projects set up for AI coding agents that we scanned (0.4%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Solana Web3.js does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Solana Web3.js popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "68",
       "of": "/ 100",
       "l": "Gid Score, #491 overall"
      },
      {
       "n": "3.7M",
       "l": "downloads a week, npm"
      },
      {
       "n": "2,781",
       "l": "GitHub stars"
      },
      {
       "n": "25",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Solana Web3.js is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "15 projects, 0.5%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "14 projects, 0.5%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "11 projects, 0.5%",
       "v": "Cursor",
       "path": "agents/cursor/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 60.0% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      },
      {
       "l": "In 44.0% of its projects",
       "v": "Solana SPL Token",
       "path": "tools/solana-spl-token/"
      },
      {
       "l": "In 60.0% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 28.0% of its projects",
       "v": "uuid",
       "path": "tools/uuid/"
      },
      {
       "l": "In 32.0% of its projects",
       "v": "Testing Library",
       "path": "tools/testing-library/"
      },
      {
       "l": "In 32.0% of its projects",
       "v": "Supabase JS",
       "path": "tools/supabase-supabase-js/"
      },
      {
       "l": "In 24.0% of its projects",
       "v": "Solana Wallet Adapter",
       "path": "tools/solana-wallet-adapter-react/"
      },
      {
       "l": "In 24.0% of its projects",
       "v": "TweetNaCl.js",
       "path": "tools/tweetnacl/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Solana Web3.js in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "v3 keeps the v1 class-based API",
       "v": "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."
      },
      {
       "l": "Ships an agent skill for the v1 → v3 upgrade",
       "v": "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."
      },
      {
       "l": "One package, three runtime builds",
       "v": "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."
      },
      {
       "l": "Task-based docs outside the API reference",
       "v": "The docs send readers to the Solana Cookbook for guides organised by task, and to the API documentation for individual functions."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "v1 is in maintenance mode",
       "v": "Code written against v1 is on a branch that receives critical fixes only. New development happens on v3+."
      },
      {
       "l": "Latest GitHub release is still a v1 tag",
       "v": "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."
      },
      {
       "l": "BigInt required, no legacy browsers",
       "v": "Browser support covers modern evergreen browsers with BigInt. Older browsers are only reachable if your app transpiles and polyfills the package itself."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Install v3"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Shell",
       "code": "npm install @solana/web3.js@3\npnpm add @solana/web3.js@3\nbun add @solana/web3.js@3\nyarn add @solana/web3.js@3"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Solana Web3.js",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Packages around it",
       "items": [
        "@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"
       ]
      },
      {
       "title": "More in Crypto and web3",
       "path": "tools/web3/",
       "items": [
        {
         "text": "viem",
         "path": "tools/viem/"
        },
        {
         "text": "wagmi",
         "path": "tools/wagmi/"
        },
        {
         "text": "TweetNaCl.js",
         "path": "tools/tweetnacl/"
        },
        {
         "text": "Hardhat",
         "path": "tools/hardhat/"
        },
        {
         "text": "OpenZeppelin Contracts",
         "path": "tools/openzeppelin/"
        },
        {
         "text": "Solana SPL Token",
         "path": "tools/solana-spl-token/"
        },
        {
         "text": "Hardhat Toolbox",
         "path": "tools/nomicfoundation-hardhat-toolbox/"
        },
        {
         "text": "Metaplex",
         "path": "tools/metaplex-foundation/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Solana Web3.js",
       "me": true,
       "facts": [
        "MIT",
        "Gid 68",
        "3.7M/wk"
       ]
      },
      {
       "name": "ethers.js",
       "why": "Complete Ethereum library for building dapps, wallets and blockchain tools.",
       "path": "tools/ethers/",
       "facts": [
        "MIT",
        "Gid 69",
        "5.1M/wk"
       ]
      },
      {
       "name": "Solana Kit",
       "why": "Solana JavaScript SDK for building web3 applications on the Solana blockchain.",
       "path": "tools/solana-kit/",
       "facts": [
        "MIT",
        "Gid 55",
        "3.7M/wk"
       ]
      }
     ],
     "more": "Compare Solana Web3.js with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @solana/web3.js"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Solana Web3.js\n- Target v3 for new code: install `@solana/web3.js@3`. v1 (`maintenance/v1.x`) receives critical fixes only.\n- 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`.\n- Require Node 20.18.0 or newer, and runtimes with BigInt support (Hermes on React Native).\n- When loading the IIFE bundle from unpkg in production, pin an exact version instead of the `@3` range.\n- Do not promise support for older browsers unless the app transpiles and polyfills the package itself.\n- Integration tests need a local validator: run `pnpm --filter @solana/web3.js run test:live-with-test-validator:setup` first.\n- Check the Solana Cookbook for task recipes and the API Documentation for individual functions.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @solana/web3.js"
  ],
  [
   "Category",
   "Crypto and web3"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v1.99.0, September 8, 2026"
  ],
  [
   "On GitHub since",
   "August 2018"
  ],
  [
   "Gid Score",
   "67.9"
  ],
  [
   "Rank in category",
   "#3 of 155"
  ],
  [
   "GitHub",
   "solana-foundation/solana-web3.js"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/solana-foundation.png"
}