Docs

Overview

A task-oriented guide to running, configuring, and extending the app.

Overview

This is a Turborepo monorepo for a multi-site SaaS: several branded Next.js sites that share one platform, plus an admin portal for all of them. It uses Bun workspaces, Better Auth, PostgreSQL, Drizzle, and shared domain packages.

Start with Getting started, then configure authentication and the database. When you are ready to change the code, use Project structure.

What is included

  • Two Next.js 16 tenant sites in sites/ (each with its own brand, domain, tenant, and MCP server) built from one shared route tree.
  • An admin portal in apps/backend for platform administrators.
  • Shared packages for auth, billing, analytics, database, durable execution, AI, MCP, and object storage.
  • Better Auth with organizations, two-factor auth, passkeys, and an OAuth server for MCP clients.
  • Optional Stripe, PostHog, Inngest, and agent integrations.

On this page