Next.js applications for Yearn staking, governance, recovery, team finance, collective operations, treasury reporting, and protocol analytics.
| Route | Product |
|---|---|
/styfi |
stYFI and stYFIx |
/veyfi |
veYFI and liquid-locker YFI |
/yeth |
yETH recovery |
/teams |
Team Finances |
/ybc |
Yearn Builder's Collective |
/dao |
DAO Governance |
/treasury |
Treasury reporting |
/pulse |
Protocol analytics |
The app documentation index links to each app’s behavior, data contracts, and release procedures.
Use the Node.js version in .nvmrc (26.13.1) and npm 11.14.0.
nvm use
npm ci
npm run devOpen http://localhost:3000/<route>. Set NEXT_PUBLIC_USE_MOCKS=true for the
deterministic mock clients and shared debug controls.
Run these checks for every meaningful change:
npm run typecheck
npm run lint
npm run testRoute and UI-flow changes also require:
npm run test:e2e
npm run test:e2e:fullSee docs/shared/testing.md for the full test policy.
- Next.js App Router, React, TypeScript, and Tailwind CSS
- viem, wagmi, and shared wallet controls
- Domain clients under
lib/clients/<domain> - Prepared writes executed through the shared
useTxpipeline - Deterministic mock clients before feed-backed and onchain integration
- Cloudflare/OpenNext deployment with path-first, feature-gated rollout
Read AGENTS.md before changing the repository. The canonical
worktree, review, and integration workflow is
docs/shared/codex-usage-guide.md.
The main runtime variables are documented in
docs/shared/runtime-modes.md and
docs/shared/mock-toggles.md. Do not add a
production route or host without its feature gate, environment validation, and
rollback notes.
- Production Worker:
wrangler.jsonc - Preproduction Worker:
wrangler.preprod.jsonc - Worker runtime check:
docs/shared/cloudflare-worker-runtime.md - Worker size policy:
docs/shared/cloudflare-worker-size.md - Release checklist:
docs/shared/release-checklist-template.md
The documentation index is docs/README.md.