{
 "kind": "tool",
 "slug": "web3-tool-npm",
 "path": "tools/web3-tool-npm/",
 "name": "web3.js",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Crypto and web3",
   "tools/web3/"
  ]
 ],
 "lead": "Ethereum JavaScript library for interacting with blockchain networks and smart contracts.",
 "chips": [
  {
   "label": "Crypto and web3",
   "path": "tools/web3/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install web3"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/ChainSafe/web3.js"
  },
  {
   "label": "Website",
   "href": "https://github.com/ChainSafe/web3.js#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "LGPL-3.0",
   "status": "cond",
   "sub": "Share changes to the library",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/ChainSafe/web3.js"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "No longer maintained",
   "status": "no",
   "sub": "Repository archived",
   "note": "Latest GitHub release Dec 3, 2024. ",
   "src": "https://github.com/ChainSafe/web3.js"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "3 projects",
   "status": "info",
   "sub": "#26 of 155 in its category",
   "note": "Dependency in 3 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "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 web3.js does",
   "parts": [
    {
     "t": "prose",
     "text": "Ethereum JavaScript library for interacting with blockchain networks and smart contracts."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "web3.js popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "60",
       "of": "/ 100",
       "l": "Gid Score, #1051 overall"
      },
      {
       "n": "777K",
       "l": "downloads a week, npm"
      },
      {
       "n": "19.9K",
       "l": "GitHub stars"
      },
      {
       "n": "3",
       "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 web3.js is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "web3.js is a dependency in 3 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 116 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is viem (47 projects).",
      "Projects that use it most often also use ethers.js (61.2%), Axios (50.0%), viem (48.3%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 61.2% of its projects",
       "v": "ethers.js",
       "path": "tools/ethers/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "Axios",
       "path": "tools/axios/"
      },
      {
       "l": "In 48.3% of its projects",
       "v": "viem",
       "path": "tools/viem/"
      },
      {
       "l": "In 45.7% of its projects",
       "v": "Solana Web3.js",
       "path": "tools/solana-web3-js/"
      },
      {
       "l": "In 31.0% of its projects",
       "v": "wagmi",
       "path": "tools/wagmi/"
      },
      {
       "l": "In 37.1% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      },
      {
       "l": "In 52.6% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 20.7% of its projects",
       "v": "Lodash",
       "path": "tools/lodash/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about web3.js",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Crypto and web3",
       "path": "tools/web3/",
       "items": [
        {
         "text": "Solana Web3.js",
         "path": "tools/solana-web3-js/"
        },
        {
         "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": "web3.js",
       "me": true,
       "facts": [
        "LGPL-3.0",
        "Gid 60",
        "777K/wk"
       ]
      },
      {
       "name": "viem",
       "why": "TypeScript interface for Ethereum with type-safe interactions.",
       "path": "tools/viem/",
       "facts": [
        "MIT",
        "Gid 73",
        "10.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"
       ]
      }
     ],
     "more": "Compare 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 web3"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for web3.js yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm web3"
  ],
  [
   "Category",
   "Crypto and web3"
  ],
  [
   "License",
   "LGPL-3.0"
  ],
  [
   "Gid Score",
   "59.8"
  ],
  [
   "Rank in category",
   "#26 of 155"
  ],
  [
   "GitHub",
   "ChainSafe/web3.js"
  ],
  [
   "Last change",
   "Mar 5, 2025"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/chainsafe.png"
}