Files
hyperframes/packages/studio
Vance Ingalls 89603598dd feat(studio): fold a preset shut, and give each one its own title
**Collapse.** A preset is one thing the author added, and once it is set
the seven modules inside are detail — two presets in a rack was thirteen
cards deep before anything hand-built appeared. The title is now the
disclosure, and folded it carries the node count, which is what keeps a
collapsed preset reading as a chain rather than one opaque effect.

Open by default: a preset that arrives already hidden is one nobody
learns they can edit. Collapsed by preset id rather than by index, so it
survives a reorder. The whole-preset controls stay reachable while
folded — collapsing hides the detail, not the preset.

**A title treatment per preset.** The rack already letters by FAMILY,
which answers "what kind of thing is this". This answers a different
question: a preset is a character, and the point of Telephone or
Megaphone is that you know what it sounds like before you play it. A
phone's band is narrow, so is its tracking; a bullhorn is heavy, tight
and leaning forward; a tape is worn and slightly off. The bracket's left
edge carries the same colour.

Deliberately not a colour free-for-all. Every hue sits in the same narrow
lightness band as the family tints — a test enforces saturation ≤ 50%
and lightness 66–78% — because the panel already spends saturation on
"automated" and "bypassed", and a per-preset colour outside that reads as
status. The corrective families are plainer than the character ones on
purpose: a costume on "Cut Rumble" promises a character it does not add.

`fxPresetStyle` falls back rather than failing, so the catalogue can grow
without this file — but tests assert every shipped preset has an entry
and no entry outlives its preset, and that no two character presets share
a treatment.

Verified in a running studio: Telephone renders mono/400/3px in cyan and
Megaphone sans/900/italic/tight in warm orange; folding Telephone left 0
of its 7 nodes showing with the count reading 7, and left Megaphone's 6
alone.

Falsified: a collapse that hides nothing, two presets sharing a
treatment, and a colour outside the band each fail a test.

studio 3725 passing, 18 todo · core 1770.
2026-08-10 15:39:08 -07:00
..
2026-08-03 22:48:00 -07:00
2026-03-21 22:43:56 -07:00

@hyperframes/studio

Browser-based composition editor UI for Hyperframes. Provides a visual timeline, code editor, and live preview for building video compositions.

Install

npm install @hyperframes/studio

What it does

The studio is a React application with:

  • Visual timeline — drag, resize, and arrange elements on tracks
  • Code editor — edit HTML and GSAP scripts with CodeMirror (syntax highlighting, autocomplete)
  • Live preview — see changes in real time as you edit
  • Composition inspector — view and modify element properties

Development

The studio is embedded in the hyperframes preview command. To develop the studio UI itself:

cd packages/studio
bun run dev        # Start Vite dev server
bun run build      # Build for production
bun run typecheck  # Type-check

Tech stack

  • React 18/19, Zustand (state management)
  • CodeMirror 6 (editor)
  • Tailwind CSS (styling)
  • Vite (bundler)
  • Phosphor Icons

Documentation

Full documentation: hyperframes.heygen.com/packages/studio