A minimal TanStack Router app (Vite + React 19) with Wacht authentication wired in.
src/main.tsx—DeploymentProviderwrappingRouterProvidersrc/routes/account.tsx— protected route usingauthenticateRequest()inbeforeLoad.env.example— Wacht keys
pnpm install
wacht env pull # writes .env with a fresh deployment key
pnpm devWithout the Wacht CLI: cp .env.example .env and paste the publishable + API keys from https://console.wacht.dev.
Then open http://localhost:3000 and follow the hosted Wacht sign-in flow.
This starter is what wacht init --starter tanstack clones. After it lands, run:
wacht initinside the new project to add .wacht/, AGENTS.md, and the bootstrap guide for editor agents.