Hearthtable campaign presets
A preset is a way to set one game system up in one flavour — a dungeon crawl, city intrigue, a one-shot night, a solo journey. A GM picks one right after choosing the system, or from Start from a preset on the campaign page between sessions. It is there so nobody has to work out every screen and switch on day one.
A preset is configuration only. It makes no content: no scenes, maps, handouts, journal pages, roll tables, moods, cues, sheets or files. Those are the GM's to fill with their own ideas; a preset only decides how the room is laid out and which tools start on.
Presets are data, never code: ramphearth.preset/v1, checked by validatePreset
(packages/server/src/lib/tabletop/presets/format.ts). Bundled presets live in lib/tabletop/presets/data/, keyed by the
installed system packs' own ids (fifth-edition, generic-d20, generic-narrative, …); only presets whose pack is
installed are offered (catalogue.ts).
What a preset sets
- The GM's screen — which console panel opens first, the tab order, and the starter set for the iPad companion (a GM's companion opens on it until they save their own; Reset goes back to it).
- The players' screen — map full-screen, sheet first, or story first (handouts and journal); the tab order; what a phone opens on.
- The audience view — what the Broadcast picture shows (map with the party's cameras, a camera grid or a story card, dice and initiative or not). A solo preset has none. A preset never touches consent: nobody is put on air; each person still says yes for themselves.
- Table tools — whether new scenes the GM adds show a grid and start under fog, the ruler's diagonal rule, and whether initiative is on (off hides the initiative panel and keeps it off every screen and the audience).
- The system's options — e.g. how ability scores are made or how initiative is rolled, from the pack's own list.
- House rules to consider — starter rules added switched off, for the GM to tick or delete.
Rules
- Only a campaign's GM applies a preset, between sessions (never while live), and only for the campaign's own system (or none, when the preset chooses it). Applying another preset later is fine.
- A preset never makes content: the checker refuses a preset holding
scenes,maps,handouts,pages,rollTables,moods,cues,sounds,sheets,npcs,pinsortokens, and a house rule withenabled: true. - A preset never seats anyone, never invites anyone and never turns on broadcast consent. The checker refuses an
audience block holding
consent,onAir,gmCams,peopleorshown. - Changes go through the features' own services (system choice, the table's
measure.set, house rules, broadcast layout), so their access rules apply. - Undo within 7 days, for the latest preset applied, puts the configuration from before back: screens, table tools, diagonal rule, system and options, broadcast layout, and removes the house-rule suggestions it added. Everything the GM made stays. Undo waits while a session is live.
- Audits:
tabletop.preset_applied/tabletop.preset_undone(ids and option keys only).
Routes
| Method | Path | Who |
|---|---|---|
| GET | /org/:orgId/tabletop/presets[?system=] |
members (not Guests) |
| GET | /org/:orgId/tabletop/presets/:presetId |
members |
| GET | /org/:orgId/tabletop/campaigns/:id/presets |
the campaign's GMs: empty, live, the one applied |
| POST | /org/:orgId/tabletop/campaigns/:id/preset { presetId } |
the campaign's GMs |
| POST | /org/:orgId/tabletop/campaigns/:id/preset/:applicationId/undo |
the campaign's GMs |
| GET | /org/:orgId/tabletop/campaigns/:id/screens |
the campaign's people (players get the player half and the table tools) |
Session tokens only; no /v1, MCP or apps.
Adding a preset
- Add an entry to a data file (or a new one listed in
catalogue.ts), with a stableidof<packId>.<flavour>. - Two or three per system, each with a different layout — the checker test asserts the count.
- Configuration only. Name things by mechanics, never a trademark, and write every word yourself.
- Run
pnpm --dir packages/server test src/lib/tabletop/presetsand the visibility gate (routes/tabletop.visibility.test.ts, "campaign presets"), which applies and undoes every offered preset and checks it made nothing.