Back to rankings

alan345/AI-Fullstack-SaaS-Boilerplate

TypeScriptalan345.github.io/AI-Fullstack-SaaS-Boilerplate/

Fullstack SaaS Boilerplate built with tRPC, Fastify and React

reacttailwindtrpcfastifytypesciptdrizzle-ormbetter-authpostgresserver-sent-eventschataiopenai
Star Growth
Stars
1.4k
Forks
219
Weekly Growth
Issues
0
5001k
Mar 2018Dec 2020Oct 2023Jul 2026
Artifactsnpmnpm install ai-fullstack-saas-boilerplate
README
image

Fullstack SaaS Boilerplate with AI

Built with Fastify, tRPC, and React.

Project

GitHub stars GitHub forks GitHub license GitHub issues GitHub issues

Demo

Demo Fullstack-SaaS-Boilerplate

Hosted by render.com for free

As it is a free tier, this Demo will spin down with inactivity, which can delay requests by 50 seconds or more. Be patient!

Preview

fsb-chat.webm

Main Stack

Technology Description Stars
Drizzle A TypeScript-first ORM for Node.js GitHub Repo stars
Fastify Fast, unopinionated, minimalist web framework for Node.js GitHub Repo stars
Postgres The world's most advanced open source database GitHub Repo stars
React 19 A JavaScript library for building user interfaces GitHub Repo stars
Tailwind v4 A utility-first CSS framework for rapid UI development GitHub Repo stars
tRPC End-to-end typesafe APIs made easy GitHub Repo stars

Other dependencies

Technology Description Stars
Better Auth Authentication library for Node.js GitHub Repo stars
OpenAI API for GPT models, embeddings, and more GitHub Repo stars
Phosphor Icons Beautifully simple & consistent icons GitHub Repo stars
pnpm Workspaces Fast, disk space efficient package manager for monorepos GitHub Repo stars
Playwright Test your web apps headlessly with a single API GitHub Repo stars
React Router v7 Declarative routing for React GitHub Repo stars
TypeScript TypeScript is a typed superset of JavaScript GitHub Repo stars
Vite Next generation frontend tooling. It's fast! GitHub Repo stars
Zod TypeScript-first schema validation with static type inference GitHub Repo stars

Star History

Star History Chart

Features

Installation

  • Install pnpm if you haven't already: npm install -g pnpm
  • Rename the example.env files to .env with your own credentials: server, client
  • Make sure Postgres is running and create a new database called fsb
psql -U user // replace user by your postgres user
CREATE DATABASE fsb;
  • Run in the terminal in the root directory:
# Install the dependencies
pnpm install

# Setup the database
pnpm run push

# Seed the database
pnpm run seed

# Run the app (it will run the client and the server automatically)
pnpm run dev

Building for production

pnpm run build
pnpm run start

Printscreens

Impersonate User

Login - Signup

image image image image image image image

Motivation

Focusing on developer experience: simple, efficient, and fast. This modern stack uses top-tier libraries to build a full-stack web application. Unlike the T3 app (https://create.t3.gg), we opted not to use Next.js, allowing the frontend to remain as static files, easily stored in cloud object storage like AWS S3. Consequently, this stack is designed for building web apps rather than traditional websites, as it is not SEO-friendly.

End-to-end typesafe with tRPC

trpc-video-ter Video from https://trpc.io

E2E Testing

The tests should be executed while the application is running.

Running the tests in the Terminal

pnpm run test

Who is using FSB?

  • Nachonacho.com - The world's largest marketplace for Software & Services

Create a PR if you want to add your project here.

How can you help?

This project is free and open source. If you found it useful, consider giving it a star ⭐ or sponsoring me 💖 — it really helps! I'm always open to feedback, so feel free to share suggestions to improve the stack. You’re also welcome to contribute by opening a pull request 🚀.

GitHub issues

image
Related repositories
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

TypeScriptnpmBSD 3-Clause "New" or "Revised" Licenselearn-to-codenonprofits
contribute.freecodecamp.org
452.4k45.6k
react/react

The library for web and native user interfaces.

JavaScriptnpmMIT Licensejavascriptreact
react.dev
246.7k51.3k
facebook/react

The library for web and native user interfaces.

JavaScriptnpmMIT Licensejavascriptreact
react.dev
233k47.8k
vercel/next.js

The React Framework

JavaScriptnpmMIT Licensereactserver-rendering
nextjs.org
141.1k31.5k
react/react-native

A framework for building native applications using React

C++MIT Licenseandroidapp-framework
reactnative.dev
126.2k25.2k
facebook/react-native

A framework for building native applications using React

C++MIT Licenseandroidapp-framework
reactnative.dev
120.9k24.5k
shadcn-ui/ui

A set of beautifully-designed, accessible components and a code distribution platform. Works with your favorite frameworks. Open Source. Open Code.

TypeScriptnpmMIT Licensecomponentsnextjs
ui.shadcn.com
119.5k9.5k
justjavac/free-programming-books-zh_CN

:books: 免费的计算机编程类中文书籍,欢迎投稿

GNU General Public License v3.0pythonjavascript
weibo.com/justjavac
117.7k28.2k
nextlevelbuilder/ui-ux-pro-max-skill

An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms

PythonPyPIMIT Licenseai-skillsantigravity
uupm.cc
108.6k11.6k
react/create-react-app

Set up a modern web app by running one command.

JavaScriptnpmMIT Licensereactzero-configuration
create-react-app.dev
103.3k26.9k
facebook/create-react-app

Set up a modern web app by running one command.

JavaScriptnpmMIT Licensereactzero-configuration
create-react-app.dev
103.1k27k
ant-design/ant-design

An enterprise-class UI design language and React UI library

TypeScriptnpmMIT Licensereactui-kit
ant.design
98.8k54.7k