Skip to contents

CI codecov

A declarative, code-first presentation compiler for Quarto content and reportifyr artifacts: .pptx decks generated from version-controlled YAML, not a hand-clicked PowerPoint template. A sibling project to quartifyr in the same fyr ecosystem, inheriting its reproducible, YAML-driven philosophy while targeting slides instead of documents.

deckifyr validates and compiles presentation.yaml into a real .pptx end to end – schema validation, unit parsing, deep-merge precedence, layout expansion, and PPTX composition all work for text/markdown/ image/shape/group/table/reportifyr/quarto elements (see examples/demo-deck/ for a working example; a quarto element needs the external quarto binary on PATH, every other type needs nothing beyond this repo’s own Python dependencies). Beyond build, deckifyr preview renders per-slide PNGs (via LibreOffice + PyMuPDF), deckifyr inspect reports a presentation’s resolved plan or a built .pptx’s real shape structure, deckifyr get/set/slide edit config and slide content in place, and deckifyr serve launches a local FastAPI + React/Konva web editor for dragging, resizing, and rotating slide content and triggering builds. See deckifyr-specification.md at the repo root for the full design and phased delivery plan, and CLAUDE.md for exactly what’s real today and the non-obvious things learned building it.

Why

Hand-built PowerPoint templates don’t scale across projects or orgs any better than hand-built Word templates do: every new deck means someone re-clicking through slide masters, and drift between decks is a matter of when, not if. deckifyr’s answer, in the same spirit as quartifyr: generate the deck from code and YAML – design tokens, logical layouts, and slide content all as separate, validated schemas – so a new org’s look is a YAML diff and a new deck is data, not manual PowerPoint surgery.

Architecture: one engine, two facades

flowchart TD
    R["R package (this repo's R/)"] --> P["Pyro-managed Python environment"]
    P --> C["deckifyr Python core (inst/python/deckifyr/)"]
    CLI["Python CLI (deckifyr command)"] --> C
    WEB["Optional web application (deckifyr serve / deck_serve())"] --> C
    C --> Q["Quarto adapter"]
    C --> RF["Reportifyr resolver"]
    C --> PPTX["PowerPoint compositor (text/markdown/image/shape/group/table/reportifyr/quarto)"]
    PPTX --> OUT["PPTX + manifest"]
    PPTX --> PREVIEW["Preview renderer (LibreOffice + PyMuPDF)"]
    PREVIEW --> PNG["Per-slide PNGs"]

A missing external binary (LibreOffice for deckifyr preview, Quarto for a quarto element) fails with a clear, structured error either way; from R, it also prints install guidance – and, on macOS with Homebrew already on PATH, offers to install it for you.

The Python source under inst/python/deckifyr/ is canonical: it’s bundled unmodified inside the R package and is also the source directory for the standalone Python wheel. Schema validation, merging, resolution, and PPTX composition all live there; the R package is a thin orchestration facade over it via pyro, never a second implementation of the same logic.

Components

Path What it is Language
R/ Thin facade (deck_validate(), deck_build(), deck_preview(), deck_inspect(), deck_get_config()/deck_set_config(), deck_*_slide(), …) delegating to the bundled Python CLI via pyro R
inst/python/deckifyr/ The canonical engine: schemas, unit/merge logic, plan/compose passes, resolvers, renderers, and CLI. Bundled into the R package and built as the standalone wheel from the same source Python
inst/examples/minimal-deck/ A minimal valid design.yaml/layouts.yaml/presentation.yaml trio, used as deckifyr init’s template and as the test fixture for both languages YAML
examples/demo-deck/ A richer, repo-only demo (see its README.md) – a six-slide deck using real reportifyr-produced artifacts (a figure, a native table, and a rendered flextable) and two real quarto fragments YAML
tests/ tests/python/ (pytest, unit-level plus an end-to-end build of examples/demo-deck/) and tests/testthat/ (R, including end-to-end tests of the real R→pyro→Python bridge) Python, R

Install the Python CLI from a release

Each GitHub release attaches a versioned wheel and sdist (pure Python, with the built web editor bundled) and a SHA256SUMS file covering them and the R tarball:

uv add "deckifyr[web,preview] @ https://github.com/jprybylski/deckifyr/releases/download/v0.3.4/deckifyr-0.3.4-py3-none-any.whl"

See the Python-engine article for hash verification and the optional extras.

Quick start

# Python CLI, directly
uv run deckifyr init my-deck
uv run deckifyr validate my-deck/presentation.yaml
uv run deckifyr build my-deck/presentation.yaml     # writes my-deck/build/my-deck.pptx
uv run deckifyr preview my-deck/presentation.yaml   # + a PNG per slide (needs LibreOffice)
uv run deckifyr inspect my-deck/presentation.yaml   # resolved slide plan, as JSON
uv run deckifyr set my-deck/design.yaml colors.primary "#123456"
uv run deckifyr slide list my-deck/presentation.yaml
uv run deckifyr skills .claude/skills               # export coding-agent skills for authoring the YAML above
# R, via pyro
initialize_deck_project("my-deck")
deck_validate("my-deck/presentation.yaml")
deck_build("my-deck/presentation.yaml")    # writes my-deck/build/my-deck.pptx
deck_preview("my-deck/presentation.yaml")  # + a PNG per slide (needs LibreOffice)
deck_set_config("my-deck/design.yaml", "colors.primary", "#123456")
deck_export_skills(".claude/skills")       # export coding-agent skills for authoring the YAML above

For a richer working example than init’s minimal scaffold, see examples/demo-deck/ (uv run deckifyr build examples/demo-deck/presentation.yaml).

See CONTRIBUTING.md for development setup and running the test suites.

Design docs

deckifyr-specification.md at the repo root is the authoritative design document: ecosystem position, schema reference, compilation model, Reportifyr/Quarto integration plans, PowerPoint composition strategy, security model, and the phased delivery plan (Phase 0 feasibility spike through Phase 4 advanced features). Anything this README summarizes, that document covers in full.