Anchor
Framework for developing Solana smart contracts with TypeScript and Rust.
Crypto and web3 npm (MIT OR Apache-2.0)
Used in agent projects
438
3.4% of 12,697 public repos built with AI coding agents
Rank in crypto and web3
#7 of 89
by use in those projects
Downloads
851K
npm, last 7 days, @coral-xyz/anchor
GitHub stars
5,142
last push Oct 9, 2026
How Anchor is used
Anchor is a dependency in 438 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (3.4%), #7 of 89 in crypto and web3. The most used alternative there is Solana Web3.js. Projects that use it most often also use Solana Web3.js (96.6%), Solana SPL Token (64.6%), TypeScript (89.5%).
Often used with Anchor
| Solana Web3.js | 96.6% of Anchor projects · 5.8× more than average |
|---|---|
| Solana SPL Token | 64.6% of Anchor projects · 8.9× more than average |
| TypeScript | 89.5% of Anchor projects · 1.6× more than average |
| Chai | 33.3% of Anchor projects · 13.9× more than average |
| Mocha | 32.9% of Anchor projects · 14.9× more than average |
| ts-mocha | 30.1% of Anchor projects · 20.0× more than average |
| Solana Wallet Adapter | 29.9% of Anchor projects · 6.9× more than average |
| Prettier | 44.5% of Anchor projects · 2.5× more than average |
By coding agent
| Claude Code | 0.6% of projects set up for it |
|---|---|
| GitHub Copilot | 0.3% of projects set up for it |
| Cursor | 0.3% of projects set up for it |
Share of public repos configured for each agent that list Anchor as a dependency.
Install
| Package | npm install @coral-xyz/anchor |
|---|---|
| Packages counted | @coral-xyz/anchor, @coral-xyz/borsh, @coral-xyz/anchor-cli, @coral-xyz/spl-token, @coral-xyz/xnft-cli, @coral-xyz/anchor-30, @coral-xyz/anchor31 |
| Main stacks | TypeScript / JavaScript (170), Rust (152), Next.js (108), Python (4) |
| Example projects | ARBProtocol/solana-jupiter-bot, outsmartchad/onchain-dex-cli, nirholas/three.ws, kklas/anchor-client-gen, m8s-lab/pump-fun-smart-contract |
Alternatives to Anchor
| 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 |
| 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 |
| 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 | — |