Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Ethereum dapp starter monorepo: Foundry contracts, React/Vite frontend, wagmi + RainbowKit, and Subgraph indexing.
ETH Basic Typescript Starter is a monorepo boilerplate for building Ethereum dapps that pairs a Foundry smart contract setup with a React/TypeScript frontend, using Turborepo to tie them together. The template's core function is to give you a working Counter smart contract on a local anvil instance plus a dapp that can interact with it, while also providing a Subgraph for indexing events.
ETH Basic Typescript Starter is a boilerplate that combines a Foundry-based smart contract project with a Vite-powered React/TypeScript dapp and a subgraph for indexing. It takes a local anvil blockchain and a minimal Counter contract as its starting point, and produces a full development workflow: a running local node, a deployed contract, generated wagmi hooks, and a web UI that can interact with the contract. The project uses Turborepo to manage the monorepo, with separate packages for the contracts, web app, wagmi configuration, and shared constants.
apps/contracts, apps/web, packages/wagmi-config, and packages/shared-config for clear separation of contracts, frontend, and shared configuration.yarn run dev to concurrently launch your anvil instance and the React dev server.yarn run deploy:local to deploy the Counter contract to your local chain and regenerate your wagmi custom hooks.The README shows a three-step workflow. First, install dependencies with yarn. Second, start the development process with yarn run dev, which concurrently launches your anvil instance and the React app dev server. Third, deploy with yarn run deploy:local, which runs the deploy script on your local chain and regenerates custom hooks into your wagmi config.
yarn run dev do?It launches your anvil instance and starts your React app dev server concurrently, so you can develop contracts and frontend together.
Run yarn run deploy:local. This executes your deploy script on the local chain and regenerates the custom wagmi hooks straight into the wagmi config.
Yes, it includes a Subgraph to index your smart contracts. The repo also provides graphql-codegen generated hooks to query the Subgraph from your apps.
packages folder?The packages folder contains wagmi-config, which holds wagmi and RainbowKit config and generated code from the wagmi-cli, and shared-config, which hosts app constants.
