The Solana family shares Anchor program scaffolding and generated client contracts. Pick the preset that matches your surface area.
Preset comparison
| Preset | You get |
|---|---|
solana-program | Anchor program + IDL/client contract |
solana-web | Next.js dApp + program + generated client |
solana-mobile | Expo Router + program + mobile wallet boundary |
solana-product | Web + mobile + program + shared Solana config |
All Solana presets are Requires validation unless the matrix shows more evidence on /families.
Scaffold examples
terminal
# Program only
bun run dev:cli -- my-program --yes --preset=solana-program --dir=../projects
# Web dApp
bun run dev:cli -- my-dapp --yes --preset=solana-web --dir=../projects
# Mobile
bun run dev:cli -- my-mobile --yes --preset=solana-mobile --dir=../projects
# Full product
bun run dev:cli -- my-product --yes --preset=solana-product --dir=../projectsTopology
Loading diagram…
See Solana architecture.
Verify
Follow generated AGENTS.md:
anchor build/anchor testwhere the program workspace exists- Client generation scripts after IDL changes
- Web/mobile env for cluster RPC and wallet adapter
Common failures
| Symptom | Fix |
|---|---|
| Anchor version mismatch | Use toolchain versions from generated README |
| Client out of sync | Regenerate client after anchor build |
| Wallet not connecting | Check devnet/mainnet RPC and adapter config |