mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-25 00:07:09 +00:00
Hovering a preset writes it to the running graph — which is silent while the transport is paused. So the whole affordance only worked mid-playback: a paused author hovering the shelf heard nothing at all and had no way to know the feature existed. Hovering now starts playback from wherever the playhead sits, and leaving stops it and returns the playhead to exactly where it was found. Browsing the shelf is not an edit and must not cost the author their place. Two guards, each with a test: - **A transport the author started is left alone**, in both directions. Stopping their playback because they passed over a preset would be the panel taking a decision nobody offered it. - **Every path that ends an audition stops the transport** — leaving, applying, and the panel unmounting. A click means "keep this", not "and carry on playing from wherever the audition reached". Order matters at both ends: the chain goes into the graph before playback starts, or the first moment heard is the un-auditioned mix; and playback stops before the chain reverts, so the last thing heard is the preset rather than a frame of the old chain coming back. `playbackRequest` on the player store follows `requestedSeekTime`: the panel cannot reach `useTimelinePlayer`, which is a single instance owned by the shell. It carries a nonce because two hovers in a row both want play, and without one the second is indistinguishable from the first already having been served. Falsified: not returning the playhead, and hijacking a transport the author started, each fail a test. studio 3716 passing, 18 todo.
@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
Related packages
@hyperframes/core— types and parsers used by the editorhyperframes— CLI that serves the studio viahyperframes preview