๐Create FHEVM Example CLI
The fastest way to bootstrap privacy-preserving dApps on FHEVM
๐ One Command. Full Privacy. Zero Config.
Scaffold production-ready FHEVM projects in seconds. Pre-configured Hardhat, encrypted types, and comprehensive tests included.
โก Quick Start
Get started in under 30 seconds with our interactive wizard:
npx create-fhevm-exampleyarn create fhevm-examplepnpm create fhevm-examplebunx create-fhevm-example
๐ฏ What You Get
โก Zero Configuration
Pre-configured hardhat.config.ts, FHE keys, network settings, and environment variables. Just run and build.
๐ 33+ Ready Examples
From "Hello World" counters to advanced blind auctions and confidential tokens. Each with full test coverage.
๐ Plug & Play
Create new projects OR inject FHE capabilities into your existing Hardhat projects with --add mode.
๐ฎ Three Powerful Modes
Choose the workflow that fits your needs:
1๏ธโฃ Single Example Mode
2๏ธโฃ Category Bundle Mode
Available Categories:
๐ Basic
11
Fundamentals: counters, encryption, decryption
๐ก Concepts
8
Access control, handles, input proofs, edge cases, anti-patterns
๐ฎ Gaming
4
Poker, lottery, rock-paper-scissors, blackjack
๐๏ธ OpenZeppelin
5
ERC7984, wrappers, swaps, vesting
๐ฏ Advanced
6
Blind auction, escrow, voting, KYC, payroll, order book
3๏ธโฃ Smart Injection Mode (--add)
--add)Requirement: Run this inside an existing Hardhat project directory.
Already have a project? Upgrade it to FHE in one command:
What happens:
โ Detects your Hardhat configuration
โ Adds
@fhevm/solidityand@fhevm/hardhat-pluginโ Updates
hardhat.config.tswith FHE importsโ Injects a sample contract and test of your choice

โจ๏ธ CLI Options
--example <name>
Create a single example project
--category <name>
Create a category project
--add
Add FHEVM to existing Hardhat project
--target <dir>
Target directory for --add mode
--output <dir>
Output directory
--help
Show help message
๐๏ธ Project Structure
Every scaffolded project follows this clean, minimal structure:
๐ฌ Next Steps
After scaffolding, get your project running:
โ Frequently Asked Questions
๐ Learn More
๐ FHEVM Documentation
Deep dive into Fully Homomorphic Encryption on the blockchain. docs.zama.org/protocol/
๐ป GitHub Repository
Star us, report issues, or contribute! github.com/NecipAkgz/fhevm-example-factory
Last updated