capture.json tells Demo Studio how to drive the real UI in Chromium. ds.py capture saves each state as a 2x PNG (snap/<name>.png) and the boxes of the elements to lift, zoom or click (snap/meta.json, in page CSS pixels). Capture every state the story needs, in order, as a real user would.
capture.json
base: relative to the project folder, or a URL.inject_fonts:trueforces the bundled Inter font into the UI.hide: prototype-only overlays to hide.
Step types
Each step is an object with one key, plus an optional"settle": ms for snap.
Tips
- Snapshot the real timing states:
markbefore the action, thenwait_untilthe product’s own timers. If the video shows them faster, the scene spec discloses it as time-compressed. - Record boxes in the state you’ll show. Layouts move when panels open.
- For tall pages, add
fit_height. One snapshot then covers the whole page, and scenes crop regions of it. - Check
snap/meta.json:missingmust be empty.