Install
Requires Node.js 26 or later:
npm install --global @deckster/cli
(pnpm add --global @deckster/cli works too.)
Quick start
mkdir talks && cd talks
deckster new launch-review --title "Launch review" --duration 20m
deckster new slide launch-review results --layout stats
deckster dev launch-review # hot-reload dev server (q or Ctrl+C to stop)
Check, screenshot, and export:
deckster lint launch-review # checks schema, overflow, contrast, budgets, notes
deckster shot launch-review results # 1920x1080 PNG -> .deck/shots/launch-review/02-results.png
deckster export launch-review # PDF + editable PPTX -> .deck/exports/launch-review/
deckster types # optional: generate tsconfig.json for editor IntelliSense
A deck is just a plain folder (decks/<name>/) with deck.config.ts and slides/*.mdx (or .tsx) — no package.json or node_modules needed inside your talks folder.
Highlights
- MDX & TSX slides: Write declarative slides with
<Step at={n}> reveals and <Notes> speaker notes, or drop into TSX for interactive React demos.
- Typed layouts & brands: 52 built-in layouts and data-driven
brand.ts themes (--brand <name>). Slides stay free of raw colors and pixel positioning.
- Visual linting (
deckster lint): Renders every step of every slide in headless Chromium to catch overflow, truncated text, contrast failures (including over photos), off-brand values, diagram problems (overlaps, density, a card the brand does not have), and pacing issues.
- PDF & editable PPTX export: Vector PDFs with bookmarks and embedded fonts, plus hybrid/native PowerPoint decks with masters, editable text, native charts/diagrams, notes, and step animations.
- Visual diffing (
deckster diff): Pixel-by-pixel slide comparison against a git ref or saved baseline, with an HTML report and PR summary.
- Built for AI agents: Every command supports
--json, exposes typed catalogs (layouts, charts, diagrams, components, icons), and supports --mcp and --agent claude|codex in deckster dev.
Commands
Run deckster --help for all commands, or deckster <command> --help for full flags.
| Command |
Description |
deckster dev [deck] |
Serve a deck with hot reload (--mcp, --agent claude\|codex, --host) |
deckster present [deck] |
Open in Electron with presenter notes, timer, and display selection |
deckster build [deck] |
Build static site output to decks/<deck>/dist (--all, --out <dir>) |
deckster preview [deck] |
Serve a built deck locally |
deckster new <deck> |
Scaffold a new deck (deckster new slide ..., deckster new app ...) |
deckster lint <deck> |
Validate schema, layout budgets, contrast, and overflow in Chromium |
deckster shot <deck> [slide] |
Capture 1920x1080 PNGs, hidden slides too (--steps, --scale <n>) |
deckster diff <deck> |
Compare rendered slides against a git ref or --save-baseline |
deckster export <deck> |
Export --pdf, --pptx, and/or --png (--include-hidden, --dry-run) |
deckster brand [name] |
Inspect resolved brand tokens and diagram cards, or deckster brand check |
deckster brand add <source> |
Copy a brand folder from a git repository into brands/<name> |
deckster layouts \| icons \| charts \| ... |
Print typed catalogs (diagrams, components) for humans and agents |
deckster comments <deck> |
List, add, resolve, reopen, and prune browser review comments |
deckster types |
Write tsconfig.json and .deck/env.d.ts for editor type checking |
deckster mcp [deck] |
Print Claude Code / Codex MCP config for a running deckster dev --mcp |
deckster agent doctor |
Verify local claude / codex CLI availability and auth |
Shared conventions
-
--brand <name> overrides the deck's configured brand for dev, present, shot, lint, diff, and export.
-
--json outputs structured JSON ({ ok: false, error: { type, message } } on failure).
-
Workspace discovery: deckster uses the nearest parent directory containing decks/ (or DECK_ROOT), and refuses to use $HOME or /.
-
Hidden slides: a slide with hidden: true in its frontmatter stays in the deck, and a talk skips it. deckster shot and deckster lint cover it (deckster shot --json marks each file with hidden; deckster lint checks it like any slide, but time-budget, few-builds and layout-repetition count the slides the talk shows). deckster export leaves hidden slides out of the PDF, PNGs, and PPTX and says how many; --include-hidden puts them in (as native hidden slides in the PPTX), and a hidden slide named in --slides, or inside a range there, is exported (the summary then reports none left out): as an ordinary page in the PDF and a PNG, and still marked hidden in the PPTX. Slide numbers in --slides, file names, and the URL count every slide.
-
Brand layouts: a brand may bring layouts of its own in brands/<name>/layouts.ts. deckster layouts lists them with the kit's, shows each one's source (brand:<name>) and fallback (the kit layout a deck on another brand renders it with) and, with --json, its label (the layout's name in the source template). With --summary the brand's layouts come first under their own heading. --brand <name> lists another brand's. deckster new slide <deck> <id> --layout <name> takes a brand layout, and deckster brand check <name> reports a layout's problems against layouts.ts. When a slide names a layout only another brand defines, the build renders the fallback and deckster lint reports brand-layout-fallback (a warning) for the slide.
With the brand import and layout changes,
a live agent session uses its active brand override when its new_slide tool scaffolds a slide.
A Git brand install also checks each SVG before replacing the installed brand. If an install
succeeds with an artwork warning, render a specimen slide and compare the imported artwork with its source. If an SVG prevents installation, fix the source artwork and retry.
-
Exit codes: 0 on success, 1 on command/lint/diff failure, 129 on SIGHUP.
Optional dependencies
new, dev, and build work out of the box. Other commands use optional tools installed on demand:
| Feature |
Requirement |
lint, shot, diff, export |
Playwright Chromium (commands print the exact install command if missing) |
present |
Electron binary (or pass --browser to open Chrome / default browser) |
export --verify |
Docker (LibreOffice + Open XML SDK), or quicklook/keynote on macOS |
dev --agent claude\|codex |
Signed-in claude or codex CLI (deckster agent doctor checks both) |
| Looping video from GIFs |
ffmpeg on PATH (otherwise GIFs stay images) |
Documentation & Links
License
MIT © Sandrino Di Mattia