Draft plan · 3 December 2026 · sample app and figures are illustrative

Pyro Studio: Webflow for developers, built on Pyro

The real app on a canvas, edited visually, saved as code. Designers get AI variants, reusable browser states and guided tours that render into narrated videos. Start with a three-week spike that proves Pyro is fast enough to be interactive.

3 wkphase 0 spike
11phases to the full tool
~47 wkwith 1 engine and 1 to 2 frontend devs
2agent hosts: Claude Code, Codex
Tool UITypeScript and React. Tauri first, later rendered by Pyro
Canvas with live framesLayersStyle inspectorStatesVariants and agent threadsFlowsTours
typed IPC · commands, events, frame buffers in shared memory
Rust corein process, framework neutral
SessionInspectorEdit engineState engineTour engineAgent hostStudio MCPWorktreesSource bridge
Rust API · no CDP round trips
Pyro engineexisting crates, plus headed work
pyro-browserpyro-render · Blitzpyro-dom layoutFork snapshotsNetwork mocksEmulationInput
Adapters → the user's repoBuild plugin stamps data-pyro-src. React and Tailwind first, then plain CSS, Vue, Svelte. Source edit, dev server reload, canvas in sync.
Tours → feature-videoReplay steps on the current build, capture with Pyro, write script.json, render a 4K and a 1440p MP4 with chapters and captions.

A designer's day runs on one line

Every station is a feature of the tool. The colour shows which part of the system carries it: blue is editing, green is states, purple is code and agents, coral is tours.

OpenPoint at the running dev server
SelectClick an element, see its source line
TweakEdit styles live in every frame
Set stateEmpty, error, slow, signed in
ConnectLink states into flows
VariantDuplicate, prompt an agent
AcceptSquash merge, worktree removed
TourNarrated video, re-rendered in CI

See it: a two minute demo, captured with Pyro

A clickable concept prototype of the tool, filmed scene by scene with Pyro and rendered by the feature-video skill: the same path a tour takes.

Four ideas carry the product

Edit intents

Every change is a framework neutral operation: set a style, class, text or attribute; insert, move, wrap, delete; extract a component.

  • Applied to the live page first, instantly, in every frame.
  • Then written to source by the adapter as a minimal diff.
  • When an element comes from a loop or a prop, the tool says so and reverts instead of guessing.

States

A JSON object that puts the app in a given situation, built as a base plus overrides.

  • Network: empty, error, slow, held responses (Pyro mocks today).
  • Storage and sign-in: cookies, local storage, a profile.
  • Environment: viewport, dark mode, locale, frozen clock, permissions.
  • UI: filled forms, forced hover and focus, scroll.
  • Opens instantly as a fork snapshot; copies and pastes between frames and people.

AI variants

Duplicate a frame and tell an agent "change this into that". Each variant is a Claude Code or Codex thread in its own git worktree with its own dev server and frame.

  • The prompt carries the selection, its source lines, the state and before and target captures.
  • The agent loops: edit, reload, capture with Pyro, diff, until it matches.
  • Live variants (style only) need no files; code variants get a worktree.

Tours

Ordered steps over states, jumping between screens and profiles, each focusing on tagged elements with narration per language and private notes.

  • Plays live in the tool as a spotlight with captions.
  • Exports to the feature-video skill; focus tags become close-up regions.
  • Tags follow source, so videos re-render after a redesign.

Variants clean up after themselves

Designers never touch git. A variant's worktree never blocks committing on the base branch.

ActionWhat the tool does
DuplicateBranch, worktree, dev server, frame on the canvas
AcceptSquash merge or open a PR, then remove worktree, branch, server
RejectRemove worktree and branch
ParkKeep the branch, free the worktree, recreate on reopen
ConflictAn agent resolves it into a new variant to review

Tours map onto feature-video

The tool writes the skill's script.json; the skill renders the video.

Tour stepBecomes
StateOne capture; same screen shares a page
Focus tagsregion from Pyro bounding boxes
ActionBefore and after scenes, same step
LabelChapter, N · Title
Narrationtext per language
NotesKept in the tool, not exported

Phases: spike first, AI variants early, Pyro hosts its own UI last

AI variants come right after the inspector because the agent edits source itself; they don't wait for the write-back engine.

foundationdesign and editstates and toursAI and agentscode and frameworksengine
PhaseDone when

Phase 0 answers one question: is Pyro fast enough?

A Tauri app opens a Vite React and Tailwind sample in three Pyro frames on a pan and zoom canvas. Clicking selects an element and draws its box; pointer and keyboard reach the page.

MeasureTarget
Style edit to pixels, 3 framesunder 50 ms
Hover and click to overlayunder 16 ms
Frame cost at 1280 × 900under 8 ms incremental
Open a state from a forkunder 300 ms

Starting points: incremental Live snapshots in pyro-render, engine/screencast.rs, engine/input.rs, hit testing in pyro-dom.

Engine work any headed Pyro needs

  • Frame pipeline: damage tracking and paced frames instead of on-demand screenshots.
  • GPU raster on a window surface (the existing vello and wgpu feature).
  • Inspector API in Rust: matched rules with source lines, computed style, box model, hit test.
  • Embedding: pyro-browser as a library outside pyro serve.
  • Later, for the Pyro-hosted shell: IME, AccessKit, clipboard, menus, dialogs.

Risks

  • Interactive speed: Pyro is tuned for screenshots. Phase 0 measures it first.
  • Write-back ambiguity: version 1 covers direct JSX and class names only.
  • Parity gaps: keep an "open in Chrome" escape hatch, feed gaps to WPT work.
  • Agents in the repo: sandbox per thread, token cost, disk per worktree.
  • Narration privacy: edge-tts sends text to Microsoft.

Decisions needed before phase 0

DecisionOptionsLeaning
Where it livesNew repo using Pyro crates, or a workspace member hereNew repo, pinned Pyro version
First usersDesigners (states first) or developers (write-back first)Designers: states before write-back
Agent billingUser's own key or login, or a Povio planUser's own, per provider terms
Video modeStills with camera moves, or live motion with a pointerStills first, Pyro screencast later
DistributionDesktop app, or also cloudSigned macOS app first

Source: docs/plans/design-tool.md in the Pyro repo. Prototype: studio.html.