Requires the optional web extra
(fastapi/uvicorn) to be installed in the
Python environment deck_serve() calls into – provision it
with uv sync --extra web (or, against a plain Python
install, the release wheel with the [web] extra – see
vignette("python-engine")). deck_serve()
reports a missing extra immediately, with the exact command to fix it,
rather than failing partway into starting the server.
deck_serve() starts a local FastAPI server backed by the
same Python engine
deck_build()/deck_validate() already call, and
opens a React/Konva web editor against one project at a time – the same
mental model as shiny::runApp(), not a hosted, multi-user
app. Reach for it when you want to see a slide’s layout while nudging
boxes around, or when a teammate would rather drag an element than
compute a new x/y by hand; reach for
deck_get_config()/deck_set_config()/
deck_add_slide() and friends (or hand-editing the YAML)
when you already know the exact value you want to write, since those are
scriptable and diff cleanly in version control the way a GUI session
never will.
Starting the editor
server <- deck_serve(project = "my-deck")This launches the server in the background, waits for it to accept
connections, and opens its URL in the RStudio/Positron Viewer pane (or
your default browser outside an IDE). deck_serve() returns
a deckifyr_server object; keep it around so you can stop
the server later:
deck_stop_server(server)Unlike shiny::runApp(), deck_serve()
doesn’t hang your R session – it’s easy to lose track of the
server object (a restarted session, an overwritten
variable). If that happens, stop it by port instead, no object
required:
deck_stop_server(port = 8000)This looks up whatever’s actually listening on that port and confirms it looks like a deckifyr server before touching it – it will refuse, with a clear error, rather than kill an unrelated process that happens to occupy the same port.
Restarting on a port that’s still held by an old deckifyr server (the
same situation deck_stop_server(port = ) fixes) is common
enough that deck_serve() has its own shortcut –
force = TRUE kills the existing server first,
automatically, then launches as normal:
server <- deck_serve(project = "my-deck", force = TRUE)Same safety guarantee as deck_stop_server(port = ): it
only ever kills a process that looks like a deckifyr server, never just
whatever’s occupying the port.
deck_serve() accepts host/port
(default 127.0.0.1:8000), presentation
(default "presentation.yaml", relative to
project), open_browser (set FALSE
to skip opening a window), timeout (how long to wait for
the server to become reachable), and force (above). See
?deck_serve for the full argument list.
The header always shows which project directory the running server is
bound to – useful since
deck_serve()/deckifyr serve only ever serve
one project per process, and it’s easy to lose track of which one after
switching terminals or deck_stop_server()-ing a few:

The editor open against examples/demo-deck – furniture
hidden (the default)
If deck_serve()/deckifyr serve is started
outside a real project (no presentation.yaml at the
resolved path), the editor shows one plain message instead of a
broken/empty canvas:

Started outside a real project – no tabs or editor chrome, just what to do next
What the editor does today
Once open, the editor shows the current presentation’s resolved slide plan and lets you:
Select a slide and see its elements laid out on a canvas sized to
design.yaml’s own slide dimensions.Drag, resize, and rotate
text,markdown, andimageelements.Click a selected
text/markdownelement again to edit its text inline.-
Add a slide from the slide list’s own “+ Add slide” button – pick a named layout, or “Freeform (no layout)” for an empty starting point (
layout: null), then give it an id:
Adding a slide – pick a layout or leave it freeform
Each row’s own corner carries two small icon buttons: a duplicate button (⧉, copies that slide’s layout/elements/notes into a new
<id>-copyslide right after it, no confirmation needed) and a remove button (×, a two-step inline confirm, not a browser dialog, with a reminder that Discard still undoes it right up until you Save). -
Toggle the slide list itself between Slides and Layouts – Layouts mode swaps the entire list to
layouts.yaml’s own layouts; selecting one shows and lets you drag/resize/rotate its zones directly on the same canvas used for ordinary slide content. Unlike editing an individual slide, this toggle is a persistent, deck-wide mode: it stays put as you select different layouts (or the furniture pseudo-slide, still reachable above the list either way), rather than resetting per slide.
Layouts mode, editing the “plot-with-note” layout’s own zones
The banner is a real warning, not decoration: a layout is shared, so repositioning a zone here moves it for every slide using it. “+ Add layout” (in place of “+ Add slide” while in this mode) creates a new, empty layout ready for zones; a layout’s own remove button is a two-step confirm too, previewing which slides use it – except the required
blanklayout, whose remove control is disabled outright (every project needs one to reassign slides to, spec’s own fallback). Removing a layout that’s still in use reassigns those slides toblank, but is rejected instead – with a specific, actionable message, and nothing written – if that reassignment would actually leave a slide unbuildable (e.g. an override that relies entirely on the removed layout’s own zone for itstype). Set the deck’s own status (
metadata.status– “demo”, “draft”, “final”, …) and toggle the deck-wide status/watermark placement (presentation.yaml’sstatus_indicator) on or off, from a “Deck-wide” bar above the slide list – without opening the config editor. Both are real, persisted edits: they write topresentation.yamland change what the built deck looks like. A third, optional “Watermark override” field only matters when the mark itself should say something different from the deck status.-
Hide document furniture (background/watermark/branding/page number) from the canvas entirely with the toolbar’s “Show furniture” checkbox – unchecked by default. Unlike the toggle above, this is purely a local view setting; it never touches any file, and it exists specifically because a full-slide, on-top
watermarkplacement otherwise sits right in the way of selecting and dragging the real content underneath it. Check it back on when you want to see where furniture actually lands:
Same slide, “Show furniture” checked
-
Add and remove elements from the right-hand Elements sidebar – one collapsed row per element on the selected slide (or layout); clicking a row (or the same element on the canvas) expands it into the same numeric box/rotation/z-index form dragging already updates. “+ Add element” opens a small form below the list: an id, an element type, and whichever fields that type actually needs – a text area for
text/markdown, a path field forimage/table, a shape-kind dropdown forshape, nothing extra forgroup, and forreportifyr/quartoa dropdown of real candidate files already found in the project (reportifyr artifacts with a matching metadata sidecar;.qmdfragments), not a hand-typed path to get exactly right. Picking a reportifyr artifact from that dropdown always creates an element type that actually builds: a.csv/.parquetartifact becomes a real, native, editabletableelement, while anything else – including a.rdsfile, this project’s convention for an Rflextableobject with formatting (merged headers, highlighted rows) a native table can’t represent – becomes areportifyrpicture element instead, rendered to a transparent PNG at build time:
Adding a new text element from the Elements sidebar
A new element gets a sensible centered default box, refined afterward by dragging/resizing like any other element; each row’s own Remove button deletes it, no confirm step.
shape/table/reportifyr/quartoelements can be added, removed, and dragged/resized/rotated on the canvas exactly liketext/markdown/image– they still render as labeled placeholder boxes rather than a live preview of their actual content, but the position/size you set there is real, same as everything else.groupis the one exception – see “Currently unsupported features” below. Select the synthetic “⚙ Furniture” entry above the numbered slide list to edit
design.yaml’sfurnitureblock itself – background/status-watermark/branding/page-number – on its own canvas, with the same drag/resize/rotate interactions as ordinary slide content. The same Elements sidebar drives this: each furniture kind is its own row with Add/Remove buttons for materializing or clearing its style. Background has no draggable geometry of its own (it always fills the slide, so its row has a status hint instead of Add/Remove); the status placement can only be added once a placement is chosen in the “Deck-wide” bar above, and its “Hide” toggle only appears for the full-page watermark (the one placement large enough to bury everything else while you’re positioning it).-
Edit
design.yaml/layouts.yaml/presentation.yamlfrom the Config tab, either as a schema-driven form (the default view) or as syntax-highlighted, live-validated raw JSON – toggle between the two at any time. Either way, nothing is written back to disk until it passes the same server-side schema validationdeck_set_config()uses. The form lists the document’s sections down the left (one pane at a time; the badge counts a section’s entries), shows each field’s YAML key with a short description from the schema, and picks a control to match: switches for on/off values, segmented buttons for short choices, a number plus a unit for lengths (the arrow keys step it), and for colors a swatch – backed by the browser’s native color picker – fused to a text field that also offers the document’s own color tokens while it has focus. An entry that can take more than one shape, such as acolors:entry that is either a literal color or derived from another, shows a switch between them. Edits stay local, flagged “Unapplied changes”, until Apply (or Revert) – and, as everywhere in this editor, nothing reaches disk until the header’s Save.
The Config tab’s form on design.yaml’s colors section
-
On the Build tab, see and edit where the built
.pptxwill go (presentation.yaml’sbuild.output) right there, instead of only through the Config tab – either type a project-relative path directly, or click Browse… to navigate the project’s real directory tree (one level at a time; a large, unrelated directory like a populatedrenv/libraryis never walked as a whole) and type a filename in whichever folder you land in. A “Render slide previews (PNG + PDF) with this build” checkbox controlsbuild.previews: on, an ordinary Build also renders a PNG per slide and keeps the PDF LibreOffice produces along the way, right alongside the.pptx. Trigger a full build and watch it run as a background job, or trigger a Preview – one, several (e.g. 1,3), or every slide. Both the previews checkbox and Preview need LibreOffice; whether it’s actually installed is checked up front, disabling whichever of the two you’d otherwise click and showing an install link right there – LibreOffice’s own download page, https://www.libreoffice.org/download/download/ – rather than only surfacing as a failed-job error after you try. If LibreOffice goes missing in some other way it isn’t caught up front (a mid-session environment change, or a directdeckifyr build/deck_build()call withbuild.previews: trueoutside the web editor entirely), the two differ on purpose: an ordinary Build still succeeds – previews are skipped with a build warning instead of losing the.pptxyou actually asked for – while an explicit Preview still fails outright, since rendering previews is the entire point of that request. Both Build and Preview show an animated progress bar while queued/running (the backend doesn’t report a real percentage, so this is honest about that rather than faking one). A finished Build or Preview shows a thumbnail per rendered slide – click one to expand it (only one expands at a time; click again, or click a different thumbnail, to collapse it) – plus a “Show PDF preview” disclosure, collapsed by default so a large PDF is never even fetched unless you actually ask for it:
A finished build with previews enabled: expandable per-slide thumbnails plus a collapsed PDF disclosure
While a Build or Preview is running, a Cancel button stops it – the whole process tree, including any LibreOffice it started, not just the top process – and the job reports
cancelled. Every job is also bounded by a server-side timeout (deckifyr serve --job-timeout, 600 seconds by default,0for no limit); a job that overruns it is killed the same way and fails with anE_TIMEOUTerror instead of leaving the editor waiting forever. LibreOffice runs with its own private profile for each preview, so previews no longer collide with a LibreOffice you have open or with each other.Download the resulting
.pptx, its manifest, and any rendered previews once a build finishes.
Currently unsupported features
Some things aren’t supported by the editor yet – worth knowing before you reach for it instead of editing YAML directly. Each one links to its tracking issue if it has one; if it doesn’t, use the “open an issue” link to request it.
- No multi-select or clipboard. One element at a time; no copy/paste, no group-move (open an issue if you’d like this prioritized).
-
groupelements can be added and removed, but not dragged/resized on the canvas. A group’s actual position in the built deck comes entirely from its own children’s boxes, not a box of its own – so unlike the other placeholder types below, this isn’t just a missing canvas interaction, it’s that the group’s ownboxfield doesn’t do anything yet. Reposition a group by editing its individual child elements’ geometry instead (tracking issue #55). -
shape/table/reportifyr/quarto/imageelements are draggable/resizable/rotatable, but you won’t see their actual content. They render as labeled placeholder boxes, not a live preview – the API that backs the canvas returns an image element’s source path rather than its pixels, and the other four render their real appearance only through the actual compositor, not this canvas (open an issue if you’d like this prioritized). - No image cropping or snapping guides. Positioning is freehand; there’s no ruler/grid snap or alignment assist yet (open an issue if you’d like this prioritized).
-
The furniture pseudo-slide only edits geometry
(box/rotation), never the underlying text. A status/watermark
or page-number element’s displayed word isn’t a literal
design.yamlfield – it’s computed (frommetadata.status/watermark, or a{page}/{total}format string) – so double-clicking it there doesn’t open a text editor the way branding’s own literaltextfield does. Set the deck status from the “Deck-wide” bar instead, or the page-number format from the Config tab (open an issue if you’d like this prioritized). -
The schema-driven config form falls back to raw JSON for a
few field shapes. Most fields – strings, numbers, booleans,
enums, nested objects, open dictionaries like
colors/text_styles, arrays – get a typed input. A field whose schema allows more than one non-null shape (e.g. acolors:entry, which may be a literal hex string or a derived-color object) can’t be disambiguated generically, so it’s a small inline JSON field there instead of a fully-typed one (it still gets a color swatch when its current value happens to be a literal hex string, same as an ordinary color field). The Raw view (a toggle away) always covers the whole document either way. Comments and formatting in the on-disk YAML still aren’t preserved through a save, in either view – the same limitationdeck_set_config()/deck_*_slide()already have (open an issue if you’d like this prioritized).
None of this is hidden behind the scenes – if you hit one of these
edges, dropping back to
deck_get_config()/deck_set_config()/
deck_*_slide() or hand-editing the YAML files works exactly
as before; the editor and the CLI/R functions operate on the same files
and validate against the same schema.
