Web-based generator for secure, production-ready Anchor programs from audited building blocks.
Inspired by OpenZeppelin Wizard, 2022 Wizard lets Solana developers assemble programs by selecting pre-audited modules, configuring options through a visual interface, and exporting a complete Anchor project ready for deployment.
Writing secure Solana programs from scratch is error-prone and time-consuming. Common patterns—ownership, access control, account validation—are reimplemented (and mis-implemented) in every project. 2022 Wizard solves this by:
- Providing audited building blocks with secure defaults
- Enabling visual composition so developers see exactly what they're shipping
- Exporting production-ready Anchor projects with tests and configuration included
The code generated by 2022 Wizard is assembled from audited building blocks and follows security best practices. However:
- You are responsible for reviewing all generated code before deployment.
- Audited blocks reduce risk but do not eliminate it—your specific configuration and any custom logic must still be tested.
- Always run a full test suite and consider an independent audit for mainnet deployments.
- Basic Mint Creation — name, symbol, decimals, initial supply
- Metadata Extension — store token info on-chain (Token-2022 metadata extension)
- Transfer Fee — charge fees on transfers (configurable basis points)
- Close Mint — allow mint authority to close mint and reclaim rent
- Non-Transferable — soulbound tokens for badges, achievements, credentials
- Configure token via UI controls
- Live code preview with diff view
- Export complete Anchor project (.zip)
- Anchor project structure (programs/, tests/, Anchor.toml, package.json)
- Generated IDL
- Local validator scripts
- Deployment checklist
Anchor-only
| Dependency | Version |
|---|---|
| Anchor | 0.30+ |
| Solana CLI | 1.18+ |
| Rust | 1.75+ |
| Node | 20+ |
Native program export is planned for a future milestone.
# Install dependencies
pnpm install
# Run dev server
pnpm devOpen http://localhost:3000 to view the wizard.
├── app/ # Next.js app router
├── components/ # UI components (wizard steps, code preview)
├── lib/
│ ├── modules/ # Building block definitions
│ ├── codegen/ # Anchor code generation
│ └── export/ # Project packaging
├── snippets/ # Audited code snippets
└── tests/ # Unit and integration tests
- MVP — Core wizard flow with 2-3 module types, Anchor export
- Beta — Expanded module library, GitHub export, shareable configs
- Audited Catalog — Formal audits for all building blocks, versioned releases
- Native Export — Optional native (non-Anchor) program generation
Contributions are welcome. Please open an issue to discuss significant changes before submitting a PR.
For security vulnerabilities, please email [security contact TBD] instead of opening a public issue.
TBD