Files
hyperframes/packages/studio
ukimsanov 0df673e2c8 fix(studio): sync content duration on batched timeline moves
The batched persist path (persistTimelineElementsMove, used for lane-change
and insert moves) patched only data-start/data-track-index and never synced
the root data-duration. So after moving a clip past the old content end, the
player showed the right length (effectiveDuration = live max over clips) but
the saved FILE kept a stale data-duration — and a render off that file would
truncate at the stale value. This is the "moved audio to ~11.5s, it ends at
19.53s, but the file still says data-duration=15.18" case (HANDOFF-3 §6.1).

Mirror the single-clip move path: after patching, recompute the furthest clip
end for the file (resolveMovedContentEnd, using each edit's new start) and
setCompositionDurationToContent (grow OR shrink). Extracted the content-end
calc as a pure exported helper and covered it + the persist write with tests,
including a persist-level test asserting the saved source string (the G2
persist-source boundary the prior overlap bug hid behind).
2026-07-10 10:23:52 -07:00
..
2026-07-10 09:57:48 -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