Skip to content

Latest commit

 

History

History
125 lines (108 loc) · 9.67 KB

choosing-a-starter.md

File metadata and controls

125 lines (108 loc) · 9.67 KB
title Choosing a Starter
id choosing-a-starter
order 5
description Use the decision flowchart and starter catalog to select the right TanStack CMS starter app for any build request.
keywords
tanstack cms
starters
starter catalog
decision flowchart
choosing a starter

TanStack CMS organizes its starter set into 12 application classes and 2 delivery modes, backed by a machine-readable catalog at starters/catalog.json. Rather than scanning a flat list of examples, agents and developers walk the decision flowchart below — ordered from hardest to retrofit to easiest to change — to land on a single starter deterministically.

See Starter Scope & Banner Apps for the scope rule, banner apps (PRM and Data), and the naming rule.

Selection Flowchart

Rules of the walk:

  • First Yes wins as the base starter. Later Yeses are recorded as patterns to compose in, never silently dropped.
  • Modes (#1 and #2) are not leaves unless the deliverable is only a backend or only the canned admin; otherwise they apply at the end as an overlay on top of the class pick.
  • You never land on a banner app. Class #10 lands on Contact Cards (contact-cards), never PRM (prm). Class #12 lands on Runtime Tables (runtime-tables), never Data (data).
  • Before starting, check the pick's requires and status. An entry whose status is not exists is reported as a build task, never silently swapped for a different starter.
flowchart TD
    Q1{"Q1: An app or site already exists, and this must live inside it?"}
    Q1 -->|Yes| R3["#3 existing-app: Existing app adds CMS later"]
    Q1 -->|No| Q2{"Q2: One instance runs many separate sites or tenants?"}
    Q2 -->|Yes| R9["#9 multi-tenant-fleet: Multi-tenant fleet"]
    Q2 -->|No| Q3{"Q3: Is the deliverable only a backend (API/MCP, no site)?"}
    Q3 -->|Yes| R1["#1 headless-api: Headless / API-only (MODE)"]
    Q3 -->|No| Q4{"Q4: Will all the work happen inside the canned admin?"}
    Q4 -->|Yes| R2["#2 admin-only: Admin-only CMS (MODE)"]
    Q4 -->|No| Q5{"Q5: Must non-developers or AI define the schema at runtime?"}
    Q5 -->|Yes| R12["#12 runtime-tables: Generated app (banner: Data)"]
    Q5 -->|No| Q6{"Q6: Does it sell things (products, variants, cart, checkout)?"}
    Q6 -->|Yes| R8["#8 ecommerce-storefront: E-commerce / storefront"]
    Q6 -->|No| Q7{"Q7: Is the custom UI itself the product?"}
    Q7 -->|Yes| Q8{"Q8: For a whole team from day one (field RBAC, approvals, audit, no public site)?"}
    Q8 -->|Yes| R11["#11 team-ops: Team internal / ops app"]
    Q8 -->|No| R10["#10 contact-cards: Bespoke domain app (banner: PRM)"]
    Q7 -->|No| Q9{"Q9: A publication business (multi-author workflow, paid members, email issues)?"}
    Q9 -->|Yes| R6["#6 editorial-publication: Editorial publication"]
    Q9 -->|No| Q10{"Q10: Do members carry per-person progress state?"}
    Q10 -->|Yes| R14["#14 membership-course: Membership / course / community"]
    Q10 -->|No| Q11{"Q11: Do strangers submit listings with faceted/geo search as homepage?"}
    Q11 -->|Yes| R13["#13 directory-listings: Directory / listings"]
    Q11 -->|No| Q12{"Q12: Versioned documentation or help centre, search-first?"}
    Q12 -->|Yes| R7["#7 documentation-kb: Documentation / KB"]
    Q12 -->|No| Q13{"Q13: Mainly one person's writing and work, published statically?"}
    Q13 -->|Yes| R5["#5 personal-blog: Personal blog & portfolio"]
    Q13 -->|No| R4["#4 themed-smb-site: Themed marketing / SMB site"]
Loading

The Cascade in Text (Q1–Q13)

Stage A — Constraints that dominate

  • Q1 · Existing app? Does an app or site already exist, and this has to live inside it — reusing its database, login, and routing?
    • Yes → #3 existing-app (Existing app adds CMS later). The content type (docs, blog, marketing, commerce) becomes a secondary layer composed on top of this starter.
    • No → Continue to Q2.
  • Q2 · Fleet? Will a single instance run many separate sites or tenants — an agency fleet, franchises, client sites — with separate users, domains, and query-layer isolation?
    • Yes → #9 multi-tenant-fleet (Multi-site / multi-tenant / agency fleet).
    • No → Continue to Q3.
  • Q3 · Only a backend? Is the deliverable only a backend — structured data served over REST, typed client, and MCP with no site of its own?
    • Yes → #1 headless-api (Headless / API-only mode). If any human-facing site or UI is part of the ask, answer No and apply headless-api as an overlay at Stage D.
    • No → Continue to Q4.
  • Q4 · Only the canned admin? Will all the work happen inside the canned admin (/content, /review, /agent) with no public frontend and no custom screens?
    • Yes → #2 admin-only (Admin-only CMS mode).
    • No → Continue to Q5.

Stage B — The shape of the application

  • Q5 · Runtime schema? Must non-developers or an AI define and mutate the schema itself at runtime, in plain language, with no code deploy?
    • Yes → #12 runtime-tables (Generated app — starter: Runtime Tables). Never clone the Data banner app (app/base) as a starter.
    • No → Continue to Q6.
  • Q6 · Money moves? Does it sell products and variants with a persisted cart, orders, customer accounts, and checkout?
    • Yes → #8 ecommerce-storefront (E-commerce / storefront & catalog).
    • No → Continue to Q7.
  • Q7 · Custom UI is the product? Is the custom interface itself the product — domain-specific screens (cards, timelines, graphs, ops boards) rather than published pages?
    • Yes → Continue to Q8.
    • No → Skip to Stage C (Q9).
  • Q8 · Whole team? (Only when Q7 is Yes.) Is it for a whole team from day one — field-level permissions, approval chains, an audit trail, and zero public surface?
    • Yes → #11 team-ops (Team internal / ops app).
    • No → #10 contact-cards (Bespoke domain app — starter: Contact Cards). Never clone the PRM banner app (app/prm) as a starter.

Stage C — Publishing shapes (when Q7 is No)

  • Q9 · Publication business? Is it a multi-author publication with an editorial workflow (draft → review → schedule), paid member accounts separate from staff, and email newsletter issues?
    • Yes → #6 editorial-publication (Editorial publication).
    • No → Continue to Q10.
  • Q10 · Per-member progress? Do members carry per-person progress state — enrolment, lesson completion, drip unlocks, quizzes, or certificates?
    • Yes → #14 membership-course (Gated membership, course & community).
    • No → Continue to Q11.
  • Q11 · Stranger submissions? Do strangers submit listings requiring moderation or claiming, with faceted and location search as the primary homepage UI?
    • Yes → #13 directory-listings (Directory / listings / marketplace).
    • No → Continue to Q12.
  • Q12 · Versioned docs? Is the content documentation or a help centre versioned alongside product releases, navigated by hierarchy, and read search-first?
    • Yes → #7 documentation-kb (Documentation / knowledge base / help centre).
    • No → Continue to Q13.
  • Q13 · One person's writing? Is it mainly one person's writing and project portfolio, published statically?
    • Yes → #5 personal-blog (Personal blog & portfolio).
    • No → #4 themed-smb-site (Themed marketing / SMB site — default leaf).

Stage D — Mode overlays and the no-guessing fallback

  • Overlay #1 headless-api: Apply on top of any class pick when external apps or agents also consume the data purely over REST, typed client, or MCP.
  • Overlay #2 admin-only: Apply to the portions of a class pick that are pure data management run from /content and /review.

Six-Step Selection Procedure

  1. Extract the four signals from the request before reading the catalog: audience (developer, smb-non-dev, or both), primary job in the requester's own words, transactional shape (money, members, customers, tenants), and whether a host app already exists.
  2. Match useWhen in starters/catalog.json to build the candidate set. If an existing app is named, existing-app (#3) is always a candidate.
  3. Apply doNotUseWhen to disambiguate nearest-neighbour traps:
    • Members + email + paywall beats blog (editorial-publication #6 over personal-blog #5).
    • A team with field-level RBAC and approvals beats personal bespoke (team-ops #11 over contact-cards #10).
    • Binary article paywall (#6) vs. per-lesson progress state machine (membership-course #14).
    • Many tenant sites on one deployment pulls in multi-tenant-fleet (#9).
    • Adding to a running app beats greenfield (existing-app #3 over the content class).
  4. Check requires and status. If the winning entry's status is not exists, report that the right starter is <id> (status: <status>) and that it is a build task, not an existing starter to clone. Never silently substitute a different starter.
  5. Start from the single survivor and record the rationale (signals, flowchart path, composed patterns, mode overlays, and relevant scopeOut exclusions).
  6. No-guessing fallback: If zero candidates or more than one candidate survive exclusions, surface the surviving candidates and the single discriminating question that separates them. Once answered, write the new signal back into the losing entry's doNotUseWhen (or the winner's useWhen) in starters/catalog.json.