#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
Also in SaaS boilerplates
RankProjectScore
1ant-design-proReact admin dashboard template built on Ant Design 6 and Umi Max Live demo ↗ (opens in a new tab)38.8k stars, MIT69 out of 100
2velobase-harnessNext.js AI SaaS base with credits, usage billing, workers and anti-abuse609 stars, MIT56 out of 100
3hackathon-starterNode.js and Express boilerplate with auth, API examples and AI samples Live demo ↗ (opens in a new tab)35.3k stars, MIT52 out of 100
#4open-saasWasp SaaS template with auth, three payment providers, OpenAI demo app Live demo ↗ (opens in a new tab)16.1k stars, MIT47 out of 100
#6next-ai-starterNext.js 14, tRPC and Prisma starter with LLM SDKs and agent checklists511 stars, MIT28 out of 100