stdout-design_

Live Studio

Iterate on templates in the browser with a live canvas, auto-generated prop panel, and hot reload.

The live studio is the fastest way to iterate on a template. Start it from your project root:

studio dev
# or with a custom port
studio dev --port 3031

Open http://localhost:3030 (or your chosen port). The UI is split into a sidebar template selector, prop panel, export button and a main area with the locale bar, preset tabs, and the live canvas.

Picking a template

The Template Selector dropdown lists every template registered in studio.config.ts, using its description from the config. Pick one to load its props and render it on the canvas.

The prop panel

The panel is generated automatically from your template's schema, with no UI wiring per template. It reads the schema (exposed by the dev server as JSON Schema) and renders the control each field.* builder asks for:

PropControl
field.textText input (textarea with multiline)
field.colorSwatch + color picker + hex text input
field.selectDropdown
field.number with min and maxRange slider
field.numberNumber input
field.booleanToggle switch
field.list of numbersChip list + input editor
field.list of textTag editor
field.list of objectsOne group of fields per item, with add and remove buttons bounded by the list's min and max
field.objectFields flattened into dotted.path fields

Schemas written without field.* fall back to guessing: a string prop whose name contains color with a # default gets the color picker, and a long description makes a textarea. Field names come from the schema keys; descriptions are shown as field labels. Defaults from .default(...) seed the initial values, and validation errors appear inline beneath the offending field.

Preset tabs

Each configured preset appears as a tab showing its id and dimensions (e.g. instagram-square 1080×1080). Switch tabs to see the same props rendered at each platform size the way to check "does this fit as an OG card too?"

Locales

If your config defines locales, pick one from the locale select in the toolbar. The inspector then shows that locale's text, and the canvas renders it (see Internationalization).

A field's value for a locale comes from three layers, later ones winning:

  1. the shared values, the ones you edit with no locale picked
  2. the locale file, locales/<locale>.json
  3. your edits for that locale

Fields whose text differs per locale carry a small locale tag (ar). Typing into one changes that locale only; the reset dot brings back the locale file's string. Colors, numbers and list items (adding, removing, reordering) are shared by every locale. Reordering a list keeps your per-locale text with its item, but a locale file's strings stay in their positions.

If no locale is selected and your props contain Arabic text, the studio auto-detects it and selects an Arabic locale automatically, marking the render as autoDetected.

Live canvas

The canvas preview:

  • Re-renders debounced (~200ms) as you edit props, aborting stale in-flight requests so the preview never falls behind.
  • Scales the output to fit the viewport while keeping the true pixel dimensions visible.
  • Shows the active preset id and dimensions.
  • Displays per-field validation errors in a red panel when a render fails.

Hot reload

The dev server watches studio.config.ts, templates/, and locales/. On save:

  • A template change reloads just that template and re-renders the canvas.
  • A config or shared-file change triggers a full reload (templates, locales, presets) the font and pixel caches are cleared too.
  • Template load errors are streamed to the UI in real time so you see what broke without checking the terminal.

Export PNG

The Export PNG button renders the current template, props, preset, and locale and downloads <templateId>-<presetId>.png. It uses the exact same render path as the CLI, so what you see is what you get. On failure it shows the validation issues inline.

Batch and data-driven output, manifest.json, and CLI flags live in the terminal see Batch Rendering and the CLI Reference.

Keyboard shortcuts

Press Mod+/ at any time to open the in-app shortcuts reference (Mod is Cmd on macOS, Ctrl elsewhere).

ShortcutAction
Mod+KOpen the command palette
Mod+/Show this shortcuts reference
Mod+EExport the current render as a PNG
Mod+Shift+CCopy a shareable link (see below)
Mod+BackspaceReset the current template's props to their schema defaults
G then TJump focus to the template selector
G then PJump focus to the props panel

Notes:

  • G T / G P are two-key sequences (press G, release, then press the second key) similar to Gmail/Linear/Vim-style navigation, not a chord.
  • Mod+Backspace is destructive (discards prop edits), so unlike the other shortcuts it does not fire while a text input or textarea is focused avoiding a collision with the native "delete previous word" behavior.
  • Shortcuts that act on the current render (export, share, reset) are disabled — and show as such in the palette — when there's nothing to export/share/reset.

Rebinding shortcuts

Every shortcut above can be rebound to a key combo you prefer. Open the command palette (Mod+K) to run any command by name, or to change its binding. Your custom bindings are remembered in your browser and survive a reload they're local to you, not shared with teammates.

Copy shareable link (Mod+Shift+C) copies a URL that reopens the studio with the exact template, preset, locale, and props you're currently looking at a quick way to hand a teammate (or an agent) a specific state instead of describing it. Opening a shared link loads that state once; after that, your own edits autosave locally as usual.

Tips

  • Give every prop a default so templates render the moment you select them.
  • Use .describe() on props to get friendlier labels and longer textareas.
  • Name color props with "color" (e.g. accentColor, background) to get the color picker for free.
  • Nest related props (e.g. trend: z.object({...})) they flatten into grouped trend.isPositive-style fields.

On this page