image

Fullstack SaaS Boilerplate

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

Fullstack-SaaS-Boilerplate-Demo

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
Phosphor Icons Beautifully simple & consistent icons GitHub Repo stars
npm Workspace Workspaces for managing multiple packages in a single repository 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
Zustand Bear necessities for state management in React GitHub Repo stars

Features

Installation

psql -U user // replace user by your postgres user
CREATE DATABASE fsb;
// Install the dependencies
npm i

// Setup the database
npm run push

// Seed the database
npm run seed

// Run the app (it will run the client and the server automatically)
npm run dev

Building for production

npm run build
npm run start

Printscreens

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

npm run test

Other recommendations

Who is using TER?

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