A deckster workspace is a plain folder with decks/ in it, and maybe brands/. This page says how the CLI finds that folder, what each folder holds, what deckster writes on its own, and what to commit.
A workspace with two decks
- talks/
- decks/
- launch-review/
- deck.config.ts
- slides/
- title.mdx
- results.mdx
- next-steps.mdx
- assets/
- public/
- lib/
- apps/
- .feedback/
- results.json
- dist/
- board-update/
- deck.config.ts
- slides/
- launch-review/
- brands/
- nocturne/
- brand.ts
- …
- fieldnote/
- brand.ts
- layouts.ts
- layouts/
- …
- nocturne/
- .deck/
- shots/
- exports/
- diff/
- baseline/
- agent/
- shell/
- env.d.ts
- node_modules/
- package.json
- tsconfig.json
- decks/
Only decks/<deck>/deck.config.ts and the slide files are required. Everything else appears when you add it or run the command that writes it.
How the CLI finds the workspace
Every deck command works in one workspace folder, chosen in this order:
DECK_ROOT, when it is set and not empty. Use it to rundeckfrom outside the folder.- The nearest folder at or above the current one that contains
decks/. You can rundeck lint launch-reviewfrom insidedecks/launch-review/slides/. - The current folder, when no folder above has
decks/. That is howdeck newstarts a workspace in an empty folder.
The CLI never picks your home folder or / on its own; it stops and asks you to make a project folder or set DECK_ROOT. When the workspace is not the current folder, it says which one it uses on standard error:
$ cd decks/launch-review && deck new slide launch-review risks
Using the workspace /Users/you/talks
decks/launch-review/slides/risks.mdx
decks/launch-review/deck.config.tsA deck folder
Each folder in decks/ is one deck, named in kebab-case; commands take that name (deck dev launch-review).
| Path | What it holds |
|---|---|
deck.config.ts |
The title, brand, talk length and slide order. Every field is in the deck config reference. |
slides/ |
One .mdx or .tsx file per slide, named by its id. Only ids listed in deck.config.ts are slides; other files there are helpers. |
assets/ |
Pictures, video and other files a slide imports by relative path, such as ../assets/mark.svg. |
public/ |
Files served as they are, next to the built deck. |
apps/<name>/ |
A mini app, made with deck new app, shown on a slide with <AppFrame> and built to dist/apps/<name>/. |
lib/, data/ or any other folder |
Ordinary folders of code or data that slides import by relative path. deckster gives these names no meaning of their own. |
.feedback/ |
Review comments: one <slide-id>.json file per slide, plus the PNG screenshots comments carry, written by the dev server’s comment mode and by deck comments add. See Comments. |
dist/ |
The static site deck build writes. |
A deck folder needs no package.json. Decks copied from the deckster repository bring one along with a tsconfig.json; delete both, or every slide fails to build.
How deck dev picks a deck
deck dev launch-review opens that folder. Leave the name out and deck dev uses DECK if it is set and nonempty. With neither a name nor DECK, it opens the only deck in the workspace or offers a choice when there are several.
Choose a deck in your browser
New in v0.7.0. In a workspace with several decks, use deck dev hello to open the starter deck directly. Browser chooser changelog.
Run deck dev with no deck argument and with DECK unset or empty. One deck opens directly, and an empty workspace tells you to create one with deck new <name>. With several decks, including workspaces that have hello, open the Deck chooser URL the terminal prints.
Pick a card by its deck title, folder name or a preview of its first visible slide. If a preview cannot render, you can still select the card by name. The chooser opens one deck at a time. Use Back to decks in the lower-right corner to pick another. If an agent is working in the deck, confirm before closing it or switching away. Refresh the chooser to see decks added or removed while it is running. If an older tab reports that the selected deck has changed, reload the chooser before trying again; it leaves the current deck open.
--port sets the chooser’s port, and the selected deck uses a separate port. With --host, another device can open the chooser URL using the computer’s network IP in place of 127.0.0.1, then click Open deck for the current deck. Select or switch decks on the computer running deck dev.
A brand folder
brands/<name>/ holds one brand: a brand.ts file and the files it names, such as logos, background SVGs and font files, and, for a brand with slide layouts of its own, a layouts.ts file and their art (see brand layouts, new in 0.6.0). It is a folder of plain files and needs no package.json. A deck uses it when its deck.config.ts says brand: '<name>', or for one command with --brand <name>. The default brand comes with the CLI, so a workspace without brands/default/ still renders. A brand that names a Fontsource package the CLI does not carry (it ships Inter, JetBrains Mono and Bricolage Grotesque) finds it in the workspace’s node_modules/, so you npm install it in the workspace; Fonts and assets covers that.
What deckster writes to .deck/
Generated files go to .deck/ at the workspace root, one folder per deck inside each:
| Folder | Written by | Holds |
|---|---|---|
.deck/shots/<deck>/ |
deck shot |
PNGs named 02-results.png, or 02-results.step1.png with --steps |
.deck/exports/<deck>/ |
deck export |
<deck>.pdf, <deck>.pptx and the fonts/ the PPTX embeds |
.deck/baseline/<deck>/ |
deck diff --save-baseline |
The pictures later diffs compare against |
.deck/diff/<deck>/ |
deck diff |
The report, index.html, and its pictures |
.deck/agent/<deck>/ |
deck dev --mcp or --agent |
server.json with the port and the per-run bearer token (mode 0600) while the server runs, and the working copies of agent turns; see How a turn runs |
.deck/chooser/previews/ |
Deck chooser | Cached previews of the decks’ opening slides |
.deck/shell/ |
deck present |
The window positions (windows.json) and browser profile of the presenter app, and on macOS a branded copy of the Electron app (app/) |
.deck/env.d.ts |
deck types |
Type declarations for your editor |
With --brand <name>, the shot, export, diff and baseline folders are named <deck>@<name>.
node_modules, package.json and tsconfig.json
node_modules/appears the first time you rundeck devordeck lint: it holds Vite’s cache innode_modules/.vite/. It also holds any package you install in the workspace.package.jsonappears when younpm installsomething in the workspace, usually the font packages a copied brand needs (deck brand check <name>names them).tsconfig.jsonand.deck/env.d.tsare written bydeck types, so that your editor andtscresolve@deckster/*imports. Settings you already have intsconfig.jsonare kept. The paths point into your installed CLI, so rundeck typesagain after upgrading@deckster/cli.
What to commit
Commit decks/, including each deck’s .feedback/, and brands/. Keep .deck/ out of git: it holds generated files and, while a dev server with --mcp runs, its bearer token. Leave out node_modules/, each deck’s dist/ and a site/ folder from deck build --out site too. deck new writes no .gitignore, so add one yourself:
.deck/
node_modules/
decks/*/dist/
site/tsconfig.json names folders on your machine; commit it only if everyone who clones the repository installs the CLI the same way.
The deckster repository itself is laid out differently, with every deck as a workspace package; Work from a clone covers it.