create-flare-demo
v1.0.9
Published
Scaffold a Next.js Web3 boilerplate with Flare network integration
Downloads
74
Maintainers
Readme
create-flare-demo
Scaffold a ready-to-wire Next.js + Wagmi starter tailored for Flare network dApps.
Quick Start
npx create-flare-demo my-projectThe CLI guides you through:
- Project name – must start with a lowercase letter and only contain lowercase letters, numbers,
-, or_(use_instead of spaces). - Contract address –
0x..., optional. - ABI input – paste either the ABI array or the full
_metadata.json. The script auto-extractsoutput.abi.
Both values are written straight into lib/contract.ts, so hooks/components can call your contract immediately.
Stack
- Next.js 15 (App Router) + TypeScript
- Tailwind CSS v4
- Wagmi 2 + RainbowKit + Viem
- Pre-configured Flare Testnet Coston2 chain + sample contract UI
After Scaffolding
cd my-project
npm install
npm run dev- Create
.env.localand set:NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your_project_id - Update any remaining contract logic or copy/paste a fresh metadata file to
lib/contract.tsif redeploying. - Need an AI-ready prompt? Run:
A timestamped markdown file appears innpm run promptprompt/containing the contract, hook, and sample component.
License
MIT
