deckdown
v1.2.1
Published
Markdown presentation engine for AI agents with deterministic PDF, PNG, and PPTX output
Maintainers
Readme
DeckDown
Markdown presentation engine for AI agents with local PDF, PNG, and PPTX output.
DeckDown is a local-first Markdown-to-presentation compiler for repo-native slide workflows. Write decks in Markdown, compose shared sections with imports, theme them with YAML, and render the same source to review-ready assets or handoff-ready PowerPoint files.
DeckDown is not an AI presentation generator. It is the render engine agents and humans can drive reliably.
Install
npm install -g deckdown@latestOne-off use without a global install:
npx deckdown@latest --helpPublished package:
- npm:
https://www.npmjs.com/package/deckdown
Showcase
Showcase source:
Rendered with:
deckdown samples/readme-showcase.md -o docs/assets/showcase --format pngDocumentation
| Guide | Use it for |
| --- | --- |
| Docs Overview | start here and navigate the rest of the docs |
| Getting Started | install DeckDown and render your first deck |
| CLI Reference | learn the command shape, output behavior, and flags |
| Authoring Guide | use frontmatter, imports, images, and layout attributes |
| AI Agent Workflows | fit DeckDown into agent-driven content pipelines |
| AI Instructions | scaffold and reuse canonical AGENTS.md guidance |
Quick Start
Scaffold a workspace:
deckdown init .
deckdown init . --template paper-letterOpen the localhost Studio:
deckdown studio .Starter deck.md:
---
title: Product Review
theme:
colors:
background: '#ffffff'
text: '#111827'
heading: '#0f172a'
accent: '#2563eb'
codeBg: '#f8fafc'
---
# Product Review
DeckDown compiles Markdown slides to real presentation files.
---
# Shared Source, Multiple Outputs
- PDF for review
- PNG for previews and visual QA
- PPTX for downstream handoffRender it:
deckdown deck.md -o deck.pdf
deckdown deck.md -o slides --format png
deckdown deck.md -o deck.pptx --format pptxWhy DeckDown
- Repo-native authoring: keep decks in git, review changes as text, and split shared material into reusable Markdown or YAML files.
- Deterministic rendering: the same source deck can produce PDF, PNG, and PPTX locally without a browser editing step.
- AI-agent friendly: agents can generate the Markdown, reuse the repo
AGENTS.mdcontract, run one CLI command, and hand off real presentation files. - Small authoring surface: frontmatter, imports, and layout attributes cover the common cases without turning Markdown into a hidden slide editor.
- Diagram and math blocks: Mermaid fences and LaTeX
$$ ... $$blocks render into preview, PDF, PNG, and PPTX. - Local Studio for HITL: syntax highlighting, completions, inline diagnostics, collapsible file trees, slide symbols, a local docs browser, and template bootstrap all run on localhost.
Output Formats
| Format | Output | Notes | | --- | --- | --- | | PDF | single file or stdout | best for review, export, and archival | | PNG | directory of slide images | requires Ghostscript and works well for docs, previews, and QA | | PPTX | single file | best for PowerPoint handoff |
Requirements
| Task | Requirement |
| --- | --- |
| Run DeckDown | Node.js >= 18 |
| Generate PNG | Ghostscript (gs) on PATH |
| Run npm run release-check | gs, pdftoppm, and LibreOffice soffice |
Current limits:
- images are expected to be local files
--watchis not implemented
Example Decks
samples/readme-showcase.mdfor the homepage gallery decksamples/sample-deck.mdfor a compact end-to-end examplesamples/phil-opp-os/presentation.mdfor a larger imported deck
Release Verification
Before publishing, run:
npm run release-checkThe release gate verifies test suites, sample renders, packed CLI behavior, and npm packaging.
Development
npm install
npm test
npm pack --pack-destination dist