Onchain starter for Shape with a minimal monorepo:
apps/web(Next.js + wagmi)packages/contract(Hardhat)
Live site: builder-kit.vercel.app
Set these project env vars in Vercel after import:
NEXT_PUBLIC_ALCHEMY_KEYNEXT_PUBLIC_CHAIN_ID(11011or360)NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID(optional)
- Node
v20.18.0(cat .nvmrc) - Bun
1.3.6+ NEXT_PUBLIC_ALCHEMY_KEYDEPLOYER_PRIVATE_KEY(funded on Shape Sepolia)
bun create shape-app my-app --yes
cd my-appOther package managers:
npm create shape-app@latest my-app -- --yespnpm dlx create-shape-app my-app --yesyarn create shape-app my-app --yes
cp apps/web/.env-example apps/web/.env
cp packages/contract/.env-example packages/contract/.envRequired values:
apps/web/.envNEXT_PUBLIC_ALCHEMY_KEYNEXT_PUBLIC_CHAIN_ID=11011NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID(optional)
packages/contract/.envDEPLOYER_PRIVATE_KEYSHAPE_SEPOLIA_RPC_URL(default is fine)
bun contracts:compile
bun contracts:testbun contracts:deploy:shape-sepoliabun devOpen http://localhost:3000, then /debug/contracts.
- Connect wallet.
- Switch to Shape Sepolia (
11011). - Enter a new message on
/debug/contracts. - Click
Set Messageand confirm. - Wait for
Confirmed.
bun devrun web app (apps/web)bun buildbuild web appbun startstart built web appbun testrun web + contract testsbun lintlint web appbun type-checktype-check web appbun checkrun lint + type-check + testsbun contracts:compilecompile + regenerate contract artifactsbun contracts:testrun contract testsbun contracts:deploy:shape-sepoliadeploy HelloShape to Shape Sepoliabun contracts:artifactregenerate deployment artifacts consumed by webbun wagmi:generateregenerate wagmi typed ABI/hooks
This repo includes ethskills by Austin Griffith in .claude/skills/ethskills/. These are Ethereum development reference files that correct common AI blind spots (gas costs, L2 pricing, current standards, verified addresses). AI coding tools working on this codebase will automatically have access to up-to-date Ethereum knowledge.
- Security policy:
SECURITY.md - Code of conduct:
CODE_OF_CONDUCT.md