Skip to content

Latest commit

 

History

History

existing-app

Folders and files

README.md

Existing App Adds CMS — Existing app adds CMS later (class #3)

Catalog id: existing-app · Status: exists · Audience: developer Banner app for this class: none

Use this when (from catalog: useWhen)

  • an app or site already exists and the CMS must live inside it, reusing its database, login, and routing
  • adding a blog, help centre, or marketing pages to a running TanStack Start SaaS app without replacing its shell
  • porting an existing production site such as tanstack.com to TanStack CMS in place

Do not use this when (from catalog: doNotUseWhen)

  • starting a brand-new greenfield project with no existing database, auth session, or route tree — pick the content or app class directly (#4–#14)
  • running many separate tenant sites from one deployment — that is #9, multi-tenant-fleet

What this starter proves

  • Seams: S2, S5, S7
  • Matrix stress cells: Schema & Data, API/MCP, UI Primitives, Auth & Actors, Governance, Bespoke / Generated

Architecture snapshot

  • Auth & actors: staff (reusing host session)
  • Rendering: bespoke app shell + embedded CMS routes
  • Tenancy: single
  • Transports used: REST, typed client, MCP
  • Agent contracts used: /ask, /agent

Scope

In (from catalog: scopeIn)

  • small existing Start app gaining a blog and help section on its own DB and session
  • schema extension coexisting with host migrations
  • admin mounted inside the host routing without taking over the app shell
  • URL and redirect preservation checklist (S7)

Deliberately out (from catalog: scopeOut)

  • standaloneCMS auth replacing the host login
  • parallel CMS database requiring sync
  • full tanstack.com production scale inside the starter

Requires (from catalog: requires)

  • existing TanStack Start host app
  • host database
  • host auth/session source

Run it

pnpm install
pnpm --filter starter-existing-app dev

Acceptance tests

Acceptance instance for seams: S2, S5, S7.

pnpm --filter starter-existing-app test:starter

If you are building the full product

Start from this starter and compose any additional mode overlays (headless-api or admin-only) specified in starters/catalog.json. For full product patterns, see the reference banner apps in app/prm (#10) and app/base (#12).