// the find
alan345/AI-Fullstack-SaaS-Boilerplate
Fullstack SaaS Boilerplate built with tRPC, Fastify and React
A full-stack TypeScript SaaS starter with Fastify, tRPC, React 19, Drizzle ORM, and Better Auth. It skips Next.js deliberately, outputting a static client bundle that can be served from S3 or a CDN. Aimed at developers who want a typed, batteries-included starting point without the Next.js overhead.
End-to-end type safety with tRPC plus Zod schemas in a shared package — you get autocomplete across the client/server boundary without writing API contracts twice. Better Auth is a solid choice over rolling your own or depending on a third-party SaaS; session management and impersonation are already wired up. SSE-based chat is a reasonable default — no WebSocket server to manage, works fine for low-to-medium concurrency. Monorepo layout with pnpm workspaces and shared `packages/drizzle` and `packages/zod` is clean and easy to extend.
No payment integration at all — for a 'SaaS boilerplate' this is a significant gap; billing is usually the hardest part to wire in later. The demo runs on a free Render tier that cold-starts after inactivity, so the live demo is often unusable, which is a poor first impression. Only one E2E smoke test visible in the test suite — there's Playwright set up but almost nothing actually tested, so you're shipping with infrastructure confidence, not functional confidence. The AI integration is thin: streaming via OpenAI's SDK with no prompt management, no rate limiting, no cost tracking, and no model abstraction — you'll need to build all of that yourself if the AI piece is central to your product.