README.md

April 19, 2026 ยท View on GitHub

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

TechnologyDescriptionStars
DrizzleA TypeScript-first ORM for Node.jsGitHub Repo stars
FastifyFast, unopinionated, minimalist web framework for Node.jsGitHub Repo stars
PostgresThe world's most advanced open source databaseGitHub Repo stars
React 19A JavaScript library for building user interfacesGitHub Repo stars
Tailwind v4A utility-first CSS framework for rapid UI developmentGitHub Repo stars
tRPCEnd-to-end typesafe APIs made easyGitHub Repo stars

Other dependencies

TechnologyDescriptionStars
Better AuthAuthentication library for Node.jsGitHub Repo stars
OpenAIAPI for GPT models, embeddings, and moreGitHub Repo stars
Phosphor IconsBeautifully simple & consistent iconsGitHub Repo stars
pnpm WorkspacesFast, disk space efficient package manager for monoreposGitHub Repo stars
PlaywrightTest your web apps headlessly with a single APIGitHub Repo stars
React Router v7Declarative routing for ReactGitHub Repo stars
TypeScriptTypeScript is a typed superset of JavaScriptGitHub Repo stars
ViteNext generation frontend tooling. It's fast!GitHub Repo stars
ZodTypeScript-first schema validation with static type inferenceGitHub 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