Manifest ReferenceChapters & Pages

Chapters & Pages

Chapter, Page, and PageLayout — how PanelWave organizes panels into chapters, optional print-style page layouts, and panel placements.

chapters is a required top-level array (min 1). Each Chapter owns a set of panels, the flow graph that connects them, and — optionally — Pages that arrange those panels spatially for page-view formats (print, big-screen spreads).

Panels always live in the chapter's panels map; pages only place them. A chapter without pages is still fully readable panel-by-panel via the graph.

Chapter

PropertyTypeRequiredDescription
idIdentifierYesChapter ID (referenced by paywall rules with scope: "chapter")
chapterIdstring—The CMS's permanent chapter id (a UUID). Unlike id, it does not change when chapters are reordered. Player 1.9.0 accepts it as a chapter embed's chapterScope and adds it to analytics events as chapterUuid; manifests the CMS publishes keep it since 2026-10-27
panelsobject (ID → Panel), min 1 entryYesAll panels of the chapter, keyed by panel ID (keys are validated as Identifiers)
graphGraphYesEntry panel and directed edges defining reading flow
titleLocalizedString—Chapter title
pagesPage[] (unique)—Page layouts for page-view formats
sequenceAudioTracksSequenceAudioTrack[] (unique)—Timeline audio (music, ambience) that starts in this chapter and spans several panels; a span: "work" track continues into later chapters — see Audio

Page

PropertyTypeRequiredDescription
idIdentifierYesPage ID
layoutPageLayoutYesFormat and panel placements — see below
titleLocalizedString—Page title
readingOrderIdentifier[] (unique)—Panel IDs in reading order on this page
visualobject—Page appearance — see below
transitionsobject—in / out, each a Transition applied when entering/leaving the page

Page.visual

PropertyTypeConstraintsDescription
background_colorColorHexhex colorPage background color
background_imageIdentifier | Uri—Background image (asset catalog ID or URI)
background_textureIdentifier | Uri—Background texture (asset catalog ID or URI)
marginsobjecttop/right/bottom/left: integer 0–100, default 0Page margins in pixels

PageLayout

PropertyTypeRequiredDescription
formatOutputFormatYesWhich output format this layout targets (e.g. bigscreen-landscape, a4-portrait)
placementsPlacement[] (min 1)YesWhere each panel sits on the page — see below
canvasSizeobject—width/height (integers ≥ 100). Reference canvas for the CMS editor UI only — not used for player rendering
gridHelperobject—CMS editor grid: cols (1–100, default 12), rows (1–100, default 8), visible (default true), snapEnabled (default true), snapDistance (0.001–0.1, default 0.01, normalized units)

Placements

Each entry in placements positions one panel using normalized page coordinates:

PropertyTypeRequiredConstraintsDescription
panelIdIdentifierYes—Key into the chapter's panels map
xnumberYes−9–1 (0–1 before 1.13)Left edge of the panel's image box (0 = page left, 1 = page right). The box keeps the artwork's aspect ratio; since 1.13.0 it may start left of the page when the placement is framed
ynumberYes−9–1 (0–1 before 1.13)Top edge of the image box
wnumberYes0.001–10 (–2.0 before 1.13)Width of the image box as a fraction of the page width (> 1 overflows the page; a framed box zoomed into its artwork has w = frame width / vw)
hnumberYes0.001–10 (–2.0 before 1.13)Height of the image box as a fraction of the page height
zinteger—0–9999, default 0Stacking order for overlapping panels (higher = on top)
rnumber—−180–180, default 0Rotation in degrees, clockwise
originobject—x/y: 0–1, default 0.5Transform origin for rotation (0.5/0.5 = center)
vx, vynumber—0–1Frame origin as a fraction of the image box (vx + vw ≤ 1, vy + vh ≤ 1). If omitted, the frame is the whole box
vw, vhnumber—0.001–1Frame size as a fraction of the image box

The vx/vy/vw/vh quartet is the panel's frame: the window of its image box the page shows, at (x + vx·w, y + vy·h, vw·w, vh·h) — the panel as the reader sees it, with its border and hit area. The frame must lie on the page; the box may not. Enlarging the artwork behind a fixed frame lowers vw/vh and raises w/h (the frame size w·vw stays), moving it changes vx/vy. Validators check the cross-field rules (@panelwave/cli validate, the CMS).

@panelwave/player 2.1.0+ draws the frame on every screen size; 1.5.0–2.0 applied it on compact screens only (narrower than 768 px) and showed the whole artwork elsewhere. Panel view always shows the whole panel.

Example

Adapted from the bundled minimal sample — one page with three side-by-side panels:

{
  "chapters": [
    {
      "id": "ch-1",
      "title": { "en-US": "Chapter One" },
      "pages": [
        {
          "id": "pg-1",
          "title": { "en-US": "Page 1" },
          "layout": {
            "format": "bigscreen-landscape",
            "canvasSize": { "width": 3840, "height": 2160 },
            "gridHelper": { "cols": 12, "rows": 8, "visible": true, "snapEnabled": true, "snapDistance": 0.01 },
            "placements": [
              { "panelId": "p1", "x": 0.0,    "y": 0.0, "w": 0.3333, "h": 1.0, "z": 0, "r": 0 },
              { "panelId": "p2", "x": 0.3333, "y": 0.0, "w": 0.3333, "h": 1.0, "z": 0, "r": 0 },
              { "panelId": "p3", "x": 0.6667, "y": 0.0, "w": 0.3333, "h": 1.0, "z": 0, "r": 0 }
            ]
          },
          "readingOrder": ["p1", "p2", "p3"],
          "visual": { "background_color": "#111111" },
          "transitions": {
            "in": { "type": "fade", "durationMs": 300 }
          }
        }
      ],
      "panels": {
        "p1": { "layers": [ { "kind": "image", "id": "ly-p1", "assetId": "img-p1", "z": 0 } ] },
        "p2": { "layers": [ { "kind": "image", "id": "ly-p2", "assetId": "img-p2", "z": 0 } ] },
        "p3": { "layers": [ { "kind": "image", "id": "ly-p3", "assetId": "img-p3", "z": 0 } ] }
      },
      "graph": {
        "entry": "p1",
        "edges": [
          { "from": "p1", "to": "p2" },
          { "from": "p2", "to": "p3" }
        ]
      }
    }
  ]
}

Page view vs. panel view

Whether readers see whole pages or single panels depends on the output format's FormatPreset (pageView / panelView) and per-panel formatViews overrides (Panels). A typical setup enables page view for bigscreen-landscape and print formats while mobile stays panel-by-panel using each panel's minimalFocusRect.

Schema validation does not verify that placements[].panelId and readingOrder[] reference existing panel keys, or that graph.entry exists — check references in your pipeline. See Validation.