Skip to Content

Introduction

Understand what ships in the foundation, how the workspaces connect, and where to build first.

This is a TypeScript SaaS foundation you own outright. Instead of disconnected snippets, you get a working monorepo architecture with shared Zod contracts, Better Auth sessions, multi-tenant organizations, billing adapters, transactional email, object storage, and deployment verification.

Start here

Choose your product surface

The primary web foundation pairs apps/web (React 19, React Router, TanStack Query, Vite+, CSS Modules, Zag.js) with apps/server (Bun, Hono RPC, PostgreSQL 18, Better Auth 1.7). Deploy the API to Railway, AWS, or GCP and the static SPA to Cloudflare Workers Static Assets or the matching cloud CDN. Start in Local setup and Architecture.

How the parts connect

01 / Clients & surfacesTyped Hono RPC + shared packages/ui
apps/web
Web SPAReact 19, Vite+, TanStack Query, Zag.js
apps/start
TanStack StartFull-stack Cloudflare Workers + D1 edition
apps/mobile
Expo MobileiOS & Android, Unistyles, Push, IAP
apps/site
Marketing SiteZero-JS Astro static site + llms.txt
02 / Core API & tenancyStandalone Bun binary · routes → service → repository
Bun + Hono APIapps/server · /health liveness & /ready DB probe
Better Auth 1.7Org Tenancy RBACZod v4 SchemasAtomic Rate Limits
03 / Data & provider boundaryZero-key local defaults; atomic prod validation
PostgreSQL 18 / D1Migrations, parameterized SQL & Kysely
Billing & IAPPolar, Stripe, Dodo + RevenueCat & Superwall
React Email + Resend10 preloaded templates + zero-key log fallback
Object StorageR2, S3, GCS staged uploads & private files

What you get

  • Application shells: React 19 SPA (apps/web), static Astro marketing site (apps/site), shared packages/ui primitives, plus optional TanStack Start (apps/start) and Expo (apps/mobile) editions.
  • Typed API & data: Bun + Hono RPC (apps/server), PostgreSQL 18, SQL migrations with rollbacks, and shared Zod v4 contracts in packages/contracts.
  • Identity & tenancy: Better Auth 1.7 (password, verification, reset, magic links, sessions, optional Google OAuth, native Expo sessions) and multi-tenant organizations (owner, admin, member, invitations, ownership transfer, and the /files library).
  • Billing & native IAP: Normalized web billing adapters for Polar, Stripe, and Dodo Payments plus optional RevenueCat mobile in-app purchases and Superwall paywalls.
  • Operations & quality: 10 React Email templates with Resend and local log fallback, R2/S3/GCS staged uploads with content validation, notifications, optional Sentry tunnel, Slack alerts, state-machine maps, and bun run check, bun run test, and bun run knip verification gates.

See Product surfaces for every shipped browser route and Notifications & marketing for communication paths.

A product foundation, not a complete business

The generated repository gives you the authenticated application, organizations, marketing site shell, and operational boundaries. You supply the product domain, final marketing copy, legal policies, pricing, analytics choice, and any background-work model. See Product scope.

Designed for a clean first run

Password authentication, verification, password reset, magic-link sign-in, organizations, and invitations work locally with Postgres alone and zero third-party API keys. Provider-backed capabilities enable cleanly once configured completely.

How to use these docs

Read Local setup first, then Tech stack, Project structure, and Product surfaces. Use State machines, Architecture, and First feature when extending the app. The architecture and verification rules in AGENTS.md apply whether you code with an agent or by hand.

Common questions

On this page