Repolode
kriasoft

kriasoft/react-starter-kit

A full-stack SaaS starter monorepo with React 19, tRPC, Drizzle ORM, Better Auth, Stripe, and Cloudflare Workers.

Stars
23,696
Forks
4,198
Open issues
11
Last commit
2 days ago

What is it?

React Starter Kit is a monorepo template for building SaaS web applications with React 19 and a type-safe stack that runs from the database to the UI. It splits the project into a marketing site, a React single-page app, and a Hono plus tRPC API, with each app deploying as its own Cloudflare Worker connected through service bindings.

The template includes authentication through Better Auth, covering email OTP, passkeys, Google OAuth, and organizations, along with optional Stripe subscriptions. Data is handled by Drizzle ORM against Neon PostgreSQL, with migrations and seed scripts. The frontend uses TanStack Router, TanStack Query, Jotai, Tailwind CSS v4, and shadcn/ui components.

The toolchain is built on Bun, Vite, Vitest, Oxlint, and Oxfmt. Infrastructure such as Hyperdrive connection pools and R2 storage is provisioned with Terraform.

Key features

  • 01Type-safe API layer using tRPC with Drizzle ORM schemas shared from database to UI.
  • 02Three independently deployed Cloudflare Workers for web, app, and API.
  • 03Better Auth with email OTP, passkeys, Google OAuth, and organizations.
  • 04Optional Stripe subscription billing with starter and pro plans.
  • 05Drizzle migrations, seed data, and a database studio command.
  • 06Bun, Vite, and Vitest toolchain with Terraform for infrastructure.

Use cases

  • Starting a new SaaS product that needs sign-in, teams, and subscriptions from day one.
  • Building a React app deployed to the edge on Cloudflare Workers with a Postgres backend.
  • Learning how a full-stack TypeScript monorepo wires tRPC, Drizzle, and Better Auth together.

Quick start

  1. 1

    Create your project from the template and clone it

  2. 2

    Install dependencies

    bun install
  3. 3

    Configure environment by copying the defaults file

    cp .env .env.local
  4. 4

    Start all apps in development mode

    bun dev

Things to know

  • Requires Bun v1.4+ as the runtime and package manager, replacing Node.js and npm.
  • Deployment targets Cloudflare Workers and needs a Cloudflare account.
  • Full functionality needs a Neon PostgreSQL database and a Resend API key for email sign-in.

Topics

FAQ

What is react-starter-kit?
A full-stack SaaS starter monorepo with React 19, tRPC, Drizzle ORM, Better Auth, Stripe, and Cloudflare Workers. React Starter Kit is a monorepo template for building SaaS web applications with React 19 and a type-safe stack that runs from the database to the UI. It splits the project into a marketing site, a React single-page app, and a Hono plus tRPC API, with each app deploying as its own Cloudflare Worker connected through service bindings.
Is react-starter-kit free to use? What license does it have?
react-starter-kit is open source under the MIT license. Check the license terms before using it in commercial products.
Is react-starter-kit still maintained?
Actively maintained. The last commit to react-starter-kit was on Oct 19, 2026.
What can I use react-starter-kit for?
Starting a new SaaS product that needs sign-in, teams, and subscriptions from day one. Building a React app deployed to the edge on Cloudflare Workers with a Postgres backend. Learning how a full-stack TypeScript monorepo wires tRPC, Drizzle, and Better Auth together.
How do I install react-starter-kit?
Create your project from the template and clone it Install dependencies: bun install Configure environment by copying the defaults file: cp .env .env.local Start all apps in development mode: bun dev
Where can I get react-starter-kit?
The source code and installation instructions are on GitHub: https://github.com/kriasoft/react-starter-kit

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects