AI Fullstack SaaS Boilerplate
Fullstack SaaS boilerplate with Fastify, tRPC, and React including AI chat, authentication, and type-safe APIs.
- Source repo
- alan345/AI-Fullstack-SaaS-Boilerplate
- Stars
- ★ 1.4k
- Last updated
- 2d ago v2.0.7
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- Primary language
- TypeScript
- FA score
- 38/100 · Major gaps
At a glance
- How it runs
- Works with
- Platform-specific
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Developers who want to bootstrap a SaaS product with authentication and AI features quickly.
- Not a fit if
- Teams that need SEO-friendly marketing or content sites
- Teams wanting to avoid Fastify/tRPC stack lock-in
- Website
- alan345.github.io ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-12-01latest release v2.0.7 (2025-04-11)
- Source review
- 38/100 · Major gaps 2 safety controls not found
What does this agent do, and when should you use it?
This is an open-source SaaS boilerplate built with Fastify, tRPC, and React, offering end-to-end type safety. It uses Drizzle ORM for PostgreSQL, Better Auth for authentication, and supports AI chat via Server-Sent Events (SSE). The project is designed for developers who want a modern fullstack foundation without the overhead of Next.js, allowing the frontend to be deployed as static files. It includes features like health checks, debounced search, and a chat interface with OpenAI integration. The repository is MIT-licensed and actively maintained.
The project uses pnpm workspaces to manage a client and server. The server (Fastify) exposes tRPC endpoints, including a health check at http://localhost:2022/health.trpc, and uses Drizzle ORM to interact with PostgreSQL. It implements a chat API that streams responses from OpenAI using Server-Sent Events. The client (React 19 with Tailwind v4) includes pages for login/signup, a dashboard, and a chat interface, all authenticated via Better Auth. The codebase includes E2E tests using Playwright and uses Zod for schema validation.
- Developers who want to bootstrap a SaaS product with authentication and AI features quickly.
- Teams needing type-safe APIs between React and Node.js without a monolithic framework.
- Hobbyists building a chat application with streaming responses using SSE.
- Engineers who prefer a non-Next.js stack to keep frontend deployment simple and static.
- Learners wanting to see how tRPC, Fastify, and Drizzle ORM integrate in a real project.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npm install -g pnpm
- Config files
.env
How do you install or deploy this agent?
Install pnpm globally (npm install -g pnpm) and PostgreSQL. Rename example.env files (root and client) to .env and fill in your credentials. Create a database named fsb with psql -U user and running CREATE DATABASE fsb;. From the root, run pnpm install, then pnpm run push to set up the schema, and pnpm run seed to populate seed data.
How do you use this agent?
After installation, run pnpm run dev to start both client and server. The server health check is at http://localhost:2022/health.trpc. For production, run pnpm run build followed by pnpm run start. To run E2E tests while the app is running, use pnpm run test.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- confirmation before acting — Turn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
- rollback or recovery path — Back up first, or work on a git branch or snapshot, so its changes can be undone.
What are this agent's strengths and limitations?
- End-to-end type safety with tRPC eliminates many API contract errors.
- Frontend is static-friendly, making deployment to CDNs or S3 trivial.
- SSE-based chat simplifies streaming AI responses compared to WebSocket.
- Pre-integrated stack (Drizzle, Better Auth, Tailwind v4) saves setup time.
- Not SEO-friendly, so unsuitable for content-heavy or marketing sites.
- Tied to specific frameworks (Fastify, tRPC) — migrating to other stacks is costly.
- Free-tier demo can be slow due to spin-down, affecting user experience.
- AI integration is OpenAI-specific; switching providers requires custom work.
How does this agent compare with similar options?
Compared to T3 App (create.t3.gg), this boilerplate deliberately avoids Next.js to keep the frontend as static files, prioritizing web app development over SEO-optimized websites.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| AI Fullstack SaaS Boilerplate This agent | 38 · Major gaps | CLIFree + model costs | ★ 1.4k | 2d ago | TypeScript | — |
| Atmosphere Real-Time JVM Agent Engine | 69 · Some gaps | CLIFree + model costs | ★ 3.8k | 9d ago | Java | OpenAI API · Claude API |
| SGR Agent Core | 50 · Major gaps | Self-hosted serviceFree + model costs | ★ 1.1k | 2mo ago | Python | OpenAI API |
| Sandbox Agent | 46 · Major gaps | Self-hosted serviceFree + model costs | ★ 1.7k | 2d ago | TypeScript | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
This is a SaaS full stack template. The code shows Fastify, tRPC routing, and an authentication handler entry point, but does not show authorization policy, sensitive data handling, or confirmation flows, so evidence for least privilege, data flow transparency, and sensitive data handling is limited. The server accepts CORS requests from all origins, which reduces the least privilege score. The README mentions OpenAI and an external API, but the packet does not show their call paths, dependency security review, or rollback mechanisms. Attribution is supported by the MIT license and contribution guidance, while maintenance responsibility remains unclear.
The README gives install, build, start, and test commands that correspond to package.json scripts, and the router entry point aligns with server registration, supporting ordinary internal consistency. Information about external service, database, and dependency availability is limited. The server logs startup errors and exits, but user-facing failure handling is not shown, so availability and failure-message scores remain low.
The README clearly targets developers building web applications with Fastify, tRPC, and React, and lists scenarios including an external games API, chat, and health checks. It also notes that the architecture is not SEO-friendly for traditional websites. The packet shows no Agent capability or trigger conditions, so capability boundaries are only partly clear and trigger precision has no supporting evidence. Setup instructions cover pnpm, Postgres, and environment variables, supporting common development environments.
The README organizes material by features, stack, installation, production build, and tests, and provides commands and interface examples. The license file provides the complete MIT terms. Project naming differs slightly among the README badges and description and package.json. No changelog is included, and maintenance responsibility is only implied by contribution and sponsorship guidance.
As a full stack SaaS starter, it provides authentication, database and frontend/backend scaffolding, health checks, and an end-to-end test entry point, giving it some direct utility. The packet shows no Agent-specific output or added value over an ordinary template, and database and credential setup impose some costs, so utility and cost-benefit scores are limited.
Some README claims about features and the stack correspond to package scripts, the server entry point, router registration, and test examples. The packet does not include implementation files corroborating the external API, chat capability, or most interface features; test examples show intended checks but provide no execution evidence. Descriptions and code facts are not always explicitly separated, so traceability, cross-source corroboration, and fact/inference separation are only partial.
- Not found in source: confirmation before actingTurn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
- Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
- The repository presents a full stack SaaS template, not an evidenced Agent product or framework; this review is limited to the supplied template material.
- The server is configured to accept CORS requests from all origins; review this setting and the authentication and authorization configuration before deployment.
- The supplied implementation files do not adequately corroborate the README references to OpenAI, external APIs, and chat.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
FAQ
Does this require any paid services?
What authentication is included?
How does the AI chat work?
Can I deploy this to production?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.