A modern starter template for building Ethereum dApps with SvelteKit 5, Foundry, and DaisyUI.
Inspired by scaffold-eth-2 but built with the Svelte ecosystem.
foundry/ (read & write)# Install Foundry (using mise - recommended)
mise install
# Set up foundry/lib/forge-std submodule
git submodule update --init --recursive
# Install dependencies for both foundry and web
pnpm install
# Start local Foundry node (in terminal 1)
pnpm chain
# Deploy contracts + generate `web/src/lib/contracts/deployedContracts.ts` (in terminal 2)
pnpm deploy:anvil
# Start the web dev server (in terminal 3)
pnpm dev
# Open http://localhost:5173
Your app is now running with:
http://localhost:8545foundry/broadcast/)web/src/lib/contracts/deployedContracts.tsThe typical development cycle:
pnpm chain # Start local Anvil node
pnpm deploy:anvil # Deploy contracts & generate types
pnpm dev # Start the frontend dev server
Run tests and checks (as executed in CI):
pnpm test:contracts # Run Foundry tests
pnpm test:web # Run frontend tests (unit + E2E)
pnpm check # Type-check all code
pnpm lint # Lint frontend code
See package.json for the full list of available commands including deployment to testnets, coverage reports, and more.
This is a starter template - fork it, customize it, make it yours!
Suggestions and PRs welcome.
MIT