mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 06:19:21 +00:00
Task 13b addendum: VstSection never received a real vstHost (PropertyPanel defaulted it to null, StudioRightPanel never passed one), so the FX panel was decorative. Naively fixing that with a second useVstHost() call would have opened an independent WebSocket racing useVstPreview's connection for the sidecar's per-track numeric trackIndex state. Fix: mount ONE useVstHost() instance in NLEProvider (alongside useVstPreview, moved there from useTimelinePlayer to keep it under the studio 600-LOC file cap) and thread it through NLEContext so both useVstPreview and StudioRightPanel's FX panel share the same connection. Add a chain-loaded broadcast (onChainLoaded) plus a trackIndex-mirroring rule in useVstHost that replicates the sidecar's pop-then-reinsert indexing exactly, so useVstPreview can resync an already-loaded track's index when any caller reloads its chain, and revert both sides to dry playback (with a toast) instead of silently misrouting PCM when the sidecar's own indexing rule collides two tracks. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@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