#55th of 7 in SaaS boilerplates
AI-Fullstack-SaaS-Boilerplate
Fastify, tRPC and React SaaS base with Better Auth and SSE chat
- Stars
- 1.4k
- License
- MIT
- Last commit
- Oct 2026
- Last release
- Apr 2025
- Language
- TypeScript
Overview
A pnpm monorepo: a Fastify server with tRPC routers on port 2022, Drizzle over Postgres, Better Auth with user impersonation, and a Vite React 19 client with React Router that ships as static files. The AI feature is an OpenAI chat streamed over server-sent events, an external-API example and a debounced search hook round it out, and Playwright tests run against the live app. For teams who want type-safe APIs without Next.js.
Who it is for: Teams who want type-safe APIs without Next.js
Strengths
- End-to-end types through tRPC; the client is static files you can host on S3
- Better Auth with admin impersonation already wired
- Playwright e2e tests and a seed script included
- Hosted demo on Render
Weaknesses
- No billing, no usage metering; AI is a single SSE chat
- OpenAI only
- Static SPA; README notes it is not SEO-friendly
- Demo on a free Render tier spins down; expect 50 second cold starts
What it needs
- TypeScript, openai
- Needs postgres, openai-api-key
- env example file
Also in SaaS boilerplates
See all 7| Rank | Project | Score |
|---|---|---|
| 1 | ant-design-proReact admin dashboard template built on Ant Design 6 and Umi Max | 69 out of 100 |
| 2 | velobase-harnessNext.js AI SaaS base with credits, usage billing, workers and anti-abuse | 56 out of 100 |
| 3 | hackathon-starterNode.js and Express boilerplate with auth, API examples and AI samples | 52 out of 100 |
| #4 | open-saasWasp SaaS template with auth, three payment providers, OpenAI demo app | 47 out of 100 |
| #6 | next-ai-starterNext.js 14, tRPC and Prisma starter with LLM SDKs and agent checklists | 28 out of 100 |