# alan345/AI-Fullstack-SaaS-Boilerplate

Fullstack SaaS Boilerplate built with tRPC, Fastify and React

Repository: https://github.com/alan345/AI-Fullstack-SaaS-Boilerplate
Canonical: https://ross.abutalabs.com/products/ai-fullstack-saas-boilerplate
Homepage: https://alan345.github.io/AI-Fullstack-SaaS-Boilerplate/
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, tailwind, trpc, fastify, typescipt, drizzle-orm, better-auth, postgres, server-sent-events, chat, ai, openai, agentic-ai, saas
Last push: 2026-08-12T10:11:15+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 40, longevity 100
- inputs: {"age_days": 3109, "days_push": 21, "days_rel": 509, "gap_med": 16.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1408, forks 218 (observed 2026-08-28T04:04:38.523228+00:00)

## What it is
A fullstack SaaS boilerplate built with tRPC, Fastify, React 19, Drizzle ORM, and Better Auth, with integrated AI chat via OpenAI and Server-Sent Events. It provides a production-ready starting point with authentication, database setup, testing, and a monorepo structure using pnpm workspaces.

## Use cases
- start a fullstack SaaS app with typesafe APIs
- build a SaaS product with authentication and Postgres already wired up
- add an AI chat feature to a React app using OpenAI and SSE
- bootstrap a TypeScript monorepo with Fastify and tRPC
- learn how to structure a fullstack app with Drizzle ORM and Better Auth
- quickly prototype a SaaS with a modern React and Tailwind stack

## When to choose
- you want a batteries-included TypeScript fullstack starter with auth, ORM, and AI chat
- you prefer tRPC end-to-end typesafety over REST or GraphQL
- you want a Fastify backend with React 19 and Tailwind v4 frontend
- you need SSE-based streaming chat without a WebSocket server

## When to avoid
- you need a framework with a large ecosystem or long-term enterprise support rather than a starter template
- you use a database other than Postgres or a stack outside Node.js/TypeScript
- you want a minimal scaffold you will heavily restructure anyway
- you need mobile or native desktop targets

## Facets
- artifact type: learning-resource
- maturity: active
- function: web-framework, api-framework, auth, orm, chatbot, llm-inference, state-management, form-handling, developer-tools
- domain: web-development, artificial-intelligence, large-language-models, developer-tools, backend, frontend
- platform: cross-platform
- tags: trpc, fastify, drizzle-orm, better-auth, tailwindcss, openai, server-sent-events, saas-starter, monorepo, pnpm-workspaces, vite, zod, playwright, react-router, boilerplate, saas, nodejs, typescript, react, postgres, web-server

## Member repositories
- alan345/AI-Fullstack-SaaS-Boilerplate (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:38.523228+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:33:13.102723+00:00, confidence not recorded.
  - readme: https://github.com/alan345/AI-Fullstack-SaaS-Boilerplate (fetched 2026-08-28T04:04:38.523228+00:00, sha ba97f657adb7)
  - homepage: https://alan345.github.io/AI-Fullstack-SaaS-Boilerplate/ (fetched 2026-08-29T11:52:12.423075+00:00, sha 2efbe94b32df)
- Data as of 2026-08-30T08:39:29.467469+00:00.
