BMTSSR MonorepoFastify + React Router

Bootstrapped for the real app

Ship one Fastify server.
Keep Vite HMR.

This starter keeps the backend in control of the runtime while React Router renders on the server. Better Auth lives in the same process, so session-aware SSR is already in place for protected routes.

HTTP shape

/api/auth/* for auth, /api/health for API, SSR for UI.

Dev loop

Vite handles client HMR, while Fastify restarts automatically when backend or auth code changes.

Current viewer

Anonymous session