mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-25 00:07:09 +00:00
Hovering a preset auditions it on the running audio, and that was invisible: the shelf looked identical whether the audition was playing or the pointer just happened to be resting there. An affordance nobody can see they triggered is one they do not learn. The hovered row lights in the accent at low alpha, and four bars animate at its right edge. Deliberately the accent rather than a neutral grey — the row is lit BY the thing that is playing, so the highlight and the bars should read as one event rather than as a hover style that happens to sit near an animation. Only rendered when there is an audition channel to hear it through, so the panel never claims audio that is not happening. Four bars because at this size that reads as a level meter; three reads as an ellipsis. They are staggered so it reads as a waveform travelling rather than four bars pumping in unison, which reads as a spinner — and a spinner would say "working", the opposite of what is true. Under `prefers-reduced-motion` the bars hold at a fixed height instead of disappearing: they are telling the author something is playing, and that fact does not go away because the animation does. Verified in a running studio — synthetic `mouseover` does not trigger CSS `:hover`, so this was driven with a real pointer move: opacity 1, bars `rgb(60, 230, 172)`, row `rgba(60, 230, 172, 0.12)`, and nothing left lit after the pointer leaves. Falsified: rendering the wave unconditionally fails the new test. studio 3704 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