Skip to Content
ConceptsOverview

Concepts

AI Starter is organized around a few core ideas. Read these before changing code.

Diátaxis map

SectionPurpose
Getting startedTutorials — run the stack
Concepts (here)Explanations — why things are shaped this way
GenerationDomain + pipeline
BillingCredits & payments
SecurityProduction hardening
OperationsStack & workflow

Core principles

  1. Contracts over implementations — ports in libs/ports, adapters in libs/data-access-supabase / libs/adapters-mock.
  2. Backend is authority — RLS + Edge service role; Angular guards are UX only.
  3. Provider ignorance in UI — logical model ids; fal/Stripe/YooKassa live at the edge or in config.
  4. Progressive productization — mock path works without API keys; real providers behind env flags.

See Philosophy & layers and Architecture.

Last updated on