vitrinkaDocsBack to the vitrína

Sets: capture and publish

A set is a directory of files with a share URL. vitrinka set is how one gets made, filled and sent — and the whole set is re-sent on every push, so a push after a period offline backfills everything.

Start a set

Creates a .vitrinka set config in the repository so pushes know where they are going.

vitrinka set init

Capture a shot

Captures a screenshot straight into the set and pushes it. It drives an iOS simulator, an Android emulator, macOS or a browser — or adopts an image you already have.

vitrinka set capture web \
  --route /checkout \
  --note "discount applies twice" \
  --open https://localhost:3000/checkout

--note and --route are required: a shot with neither is a picture nobody can place.

Capture flags

FlagWhat it does
--routeRequired. The app route the shot was taken on.
--noteRequired. The caption.
--titleHuman title — also names the file.
--labelA stable shot label. Journey wiring targets it.
--nextJourney branch: the target shot's label. Repeatable.
--target{X,Y,W,H} JSON bbox of the clicked element — follows a --next.
--openA deep link to open before capturing.
--settleSeconds to wait before capturing. Default 4 with --open, otherwise 0.
--viewportWxH or WxH@scale, e.g. 393x852@3.
--udidiOS simulator UDID.
--regionmacOS capture region, x,y,w,h.
--fileAdopt an existing image instead of capturing one.
--hqFull-fidelity asset: no lossy re-encode, no resize.
--srcThe implementing source file. Repeatable or comma-separated.
--stateNotable app or auth state.
--urlProvenance URL — beats --open in the manifest.
--rootCapture root. Default .vitrinka/screenshots.

Push the set

Archives the capture root and uploads it. Idempotent — the whole set goes every time, so re-running replaces the content rather than appending to it.

vitrinka set push --title "Checkout — pass 3"
FlagWhat it does
--rootCapture root. Default .vitrinka/screenshots.
--titleHuman title, re-sent on every push.
--sourceCross-link a source set: project/branchSlug/key.

Name and frame it

meta sets the journey header — kicker, title, accent, intro and chips. rename gives the set a stable custom name so a readable URL works alongside the numeric one.

vitrinka set meta --title "Checkout" --kicker "pass 3"
vitrinka set rename myapp/main/7 payout-flow

Artifacts

An artifact is a self-contained interactive page rather than a gallery. init scaffolds one with its set config; create builds a report from an existing screenshot set.

vitrinka artifact init
vitrinka artifact create