ANVIL WORKBENCH

Parse, emit, and export generated Solana code

Load a demo, paste source, upload a file or folder, or point at a public GitHub repo — then pick your target framework and compile.

Input source
Demo program
Target framework
Generated output
Click "Parse + Emit" to generate Pinocchio code
Demo · Paste · File · Folder · GitHub repo
Verify byte-equal
Run an instruction sequence against both the original Anchor program and the Anvil-emitted Pinocchio program in a real Solana VM. Anvil compares every account’s data, lamports, and owner byte-by-byte. If anything diverges — wrong PDA, wrong instruction discriminator, off-by-one Borsh layout — you see it here, with a click-through to the source line.
WHAT'S SUPPORTED
Demo programs (counter, vault, escrow, staking, perp)
Paste raw Anchor source
Upload a local .rs file
Upload a local folder -- pick entry
GitHub public repo URL, tree URL, or blob URL + optional ref/subpath
Deterministic review with suggested fixes before any AI call
Single-click AI refine with local cache (0-1 fresh model calls)
Download single combined .rs file
Download whole generated codebase as .tar
Browse multi-file output in file tree