Skip to content

Reference

The canonical surface for Station Studio's template grammar, sampling strategies, REST API, and CLI commands.

  • Template grammar — the JSON schema for a station: station, cadence, rng, sources, cursor, layout, optional rules. Required + optional fields with their constraints.
  • Strategies — all 8 sampling strategies (pick, weighted, mix, window, sequential, jingle, archive_ref, prev_ref) with required fields, semantics, and a "when to use" line for each.
  • API — auto-rendered Swagger UI from the FastAPI app's app.openapi() schema. Always in lockstep with the running code; CI regenerates the JSON before every docs build.
  • CLI — auto-rendered from station-studio --help. Group help + every subcommand (serve / import / seed / generate / export / backup) in one page; regenerated on every docs build.

Looking for the engine internals?

See Architecture: the design of the three apps, then cursor advance, trace recording and the editor sidecar grammar in depth.