Docs

Search documentation

Jump to a documentation page.

PricingMarketingApp

Search documentation

Jump to a documentation page.

YourNextSaaS

Documentation

Monorepo layout, auth, billing, and ops—written for the same stack you ship (TanStack Start, Drizzle, Better Auth).

Guide
Apps, packages, hosts, and env vars—how the workspace fits together day to day.
Architecture
Better Auth, org-scoped sessions, admin guards, audit and webhooks.
Data layer
Drizzle schema, migrations, and seed scripts for local demos.
Operations
Marketing SEO, i18n and RTL, and a full environment reference.

This site is the canonical developer documentation for the monorepo. Author Markdown under apps/docs/src/content/docs/ and preview with pnpm dev:docs at http://localhost:3002. Deploy apps/docs to docs.yourdomain.com (a separate TanStack Start app). Point marketing at this URL with VITE_DOCS_ORIGIN (see Environment variables).

Quick links

TopicPage
Hosts & envMonorepo & domains
Repo conventionsProject rules
Big pictureSystem overview
Better Auth & sessionsAuth & sessions
Postgres / DrizzleSchema, Seeding
StripeStripe & billing
SEO & localesSEO, i18n & RTL
.envEnvironment variables