This folder contains focused fixtures that isolate OPF schema behavior. They are intentionally smaller and more mechanical than the scenario decks in examples/gallery/.
Use these examples when testing validators, renderers, catalog resolution, region semantics, asset source handling, design overrides, metadata forms, and individual content payloads.
Start with full-feature-tour.opf.json: a single self-contained deck (every image is an embedded data URI) that exercises every major schema surface — intent metadata, organizations and speakers, a custom narrative record, design with slide-level overrides, assets, inline catalog records, all ten content payload kinds, blocks, regions, hidden slides, and extensions.
The relative image paths these fixtures name (./assets/logo.svg, ./assets/cover.png) exist in assets/: original abstract artwork, MIT licensed with this repository, written by scripts/generate-technical-example-assets.mjs, so opf convert of every fixture finds its images. The fixtures' ./media/demo.mp4 and ./data/pipeline.csv references stay authoring examples: no conversion reads a video or a data file.
layout-sampler.opf.json has one slide for each of the 38 default layouts and 14 dynamic compositions (one of them puts its title beside its list with design.titlePosition: "start"), on one fictional pilot story. Use it to review a layout change: node scripts/render-layout-sampler.mjs <dir> renders it against this checkout's gallery (ignoring the records it embeds), one PNG per slide, and node scripts/layout-sampler-sheet.mjs <dir> <sheet.png> tiles the PNGs into a labeled contact sheet.
-
Root slide payloads and explicit content
typevalues. -
blockscomposition. -
Blocks in the cells of the slide grid (
region) and span combinations. -
Rich text runs in text, bullet, and list payloads.
-
Asset shorthand and object forms.
-
Inline and asset-backed chart data.
-
Chart emphasis:
chart.highlight(chart-highlight.opf.json). -
Chart series colors: the deck palette,
chart.colorsby position (a color-scheme slot or a hex color, on a column chart and on a pie) andhighlightwinning over it (chart-colors.opf.json). -
Styled tables:
boldon a cell style (a bold cell keeps its numberformat), a rich cell in a numeric column, and apaddingobject (table-cell-types.opf.json). -
Color variants:
design.variant, per slide,appearanceon a picture background, and the neutrals that follow (color-variants.opf.json, from core 0.23.0). -
Diagrams: Mermaid
diagrampayloads (a full-slide flowchart, a sequence diagram beside text, a mind map, a timeline-family diagram, a pie diagram, a diagram withalt, and a diagram on a dark variant) drawn in the deck's fonts and colors (diagrams.opf.json). -
Icons from the gallery's icon sets, the pyramid, matrix, cycle, chevrons, process and vertical-process layouts (live SmartArt in PowerPoint) and shapes joined by connectors (
icons-and-arrangements.opf.json, from core 0.33.0). The shape fixtures areshapes,shape-effectsandshape-overlays. -
DOT diagrams: Graphviz DOT
diagrampayloads (syntax: "dot"): a release pipeline with a cluster and a decision, an undirected service graph beside text, an architecture with a database cylinder, a state graph on a dark variant, and a graph withalt(dot-diagrams.opf.json). -
PlantUML diagrams: PlantUML
diagrampayloads (syntax: "plantuml"), one slide per kind OPF draws: sequence, class, state, activity, use case, component, mind map and gantt (plantuml-diagrams.opf.json). -
Design backgrounds, logo sets, headers, footers, watermarks, and slide-level overrides (including
design.listBullet: "none"for a label with its description,slide-design-overrides.opf.json). -
Metadata array forms for organizations, speakers, authors, and takeaways.
-
Custom narrative records, slide beat links and catalog override surfaces.
-
Limits on a template's variables:
maxLengthandmaxLineson text variables andmaxItemson a list variable, with values inside them (variable-limits.opf.json, from core 0.37.0). -
One deck in two languages: variables with
translations(a text, a list and a date pattern per language), German and French slides drawing their own (variable-translations.opf.json, from core 0.37.0). -
Links to a slide of the same deck:
slide:<id>on a text run, a shape and a table cell, one of them to a hidden slide (slide-links.opf.json). -
Embedded pages: an
embedwith a preview picture (a screenshot-like dashboard drawn by OPF itself), anembedbeside text, and anembedwith no picture, drawn as a card with its title and its site name; the pages are never loaded, and every output but a presenter whose host allows the page shows the picture or the card, linked to the page (embed.opf.json). -
multilingual-slides.opf.json: English, Arabic, Japanese and French slides in one deck, with a selected Arabic script font and locale-aware numbers. -
Localized timeline status words: a French roadmap keeps its authored labels and adds Terminé, En cours and Prévu (
localized-timeline.opf.json). -
Trees and set overlap: single-root reporting lines, a nested hierarchy, and Basic Venn with semantic entry depths and short labels (
trees-and-sets.opf.json); regenerate withnode tools/shapes/sh-21/build-examples.mjs. -
Inverted pyramids: wide-first selections, narrative labels and grouped workstreams, exported as editable native shapes.
The exhaustive layout sampler has all 38 default layouts and 14 dynamic compositions (52 slides). Regenerate its referenced current records and append new layouts with node scripts/update-layout-sampler.mjs; existing slide identities, words and ordinals remain unchanged.
When reviewing dense grouped examples, use the default whole-block continuation path from convert, or call continueOverfull first for slide-by-slide rendering. It retains settled sizes for comparable automatic body roles before choosing the page count; explicit rich sizes and author minima/maxima keep their own constraints. Later pages cap actual arrangement text to the first page. No fixed minimum is added. Inspect the returned pages and continued/source mappings; an indivisible unfit block preserves the original fit refusal and content. Use explicit paginate for splits inside a block.
item-ids.opf.json: ids on list items, bullets, timeline events and table rows (a row is an array or{ "id", "cells" }), one namespace with slide and block ids; every id is optional.bands-and-bullet.opf.json:chart.bandsshades ranges of a value axis behind the data (a column chart with labeled bands, one in a scheme color, and a legend; a line chart with bands and a reference line; a stacked column chart), and abulletchart of five KPIs against their targets over three bands, from a dataset.gauges.opf.json: metrics drawn as gauges (metric.gauge): utilization against its capacity, a Net Promoter Score with colored bands and a target, a gauge computed from a dataset (with its change and arrow), and three site gauges side by side.table-color-scale.opf.json:table.colorScaleshades the number cells of named columns by value in scheme colors: a sequential scale over a pinned range, a diverging scale centered on zero, a dataset-backed table, and a six-by-six scorecard with a highlighted row, and five small slides that name every color-scheme color a scale may use.- The document id: a root
id, an opaque string kept on save, export, import and publish, and a claim rather than a credential (document-id.opf.json). - Metrics computed from data: the value and the change come from a dataset of the deck (the last row, a change against the previous row, a baseline, a fixed plan or a column), the arrow and its color follow the computed change,
bettersays which direction is good, andformatwrites a number value (computed-metrics.opf.json).