Architecture¶
Notes for contributors. Design is the whole picture: the three apps, how they connect, and the rules they keep. Each page after it covers one load-bearing part of Station Studio in more depth, with a link to the sections of the design log where it was worked out.
If you're trying to land your first PR, read these in order — they unblock most "why is it like this?" questions.
-
Design — the three apps, how they connect, and the rules they keep.
-
Engine pipeline — how
generate()turns a template + week into a trace. -
Trace versioning — the
Playlist+PlaylistVersionmodel + thetrace_iddenormalised pointer. -
Just-this-week changes — one song of a week changed for that week only, kept when it's generated again.
-
Sidecar + DB-as-truth — the visual editor's JSON column + its grammar drift detector.
-
Live preview — the job-id transport that runs preview generation off-thread without writing to the DB.
-
Test pyramid — pytest + vitest + Playwright + axe-core, and when to add what.
-
Migration policy — Alembic migrations, the CI parity gate, idempotency convention, downgrade requirements.
Not finding what you need?
The design log is the project's running record up to November 2026, about 16,000 lines: every slice's design, its decisions and the alternatives turned down, and every review. Section numbers in code comments ("DESIGN.md §16.2.6") point into it.