Repository navigation
feat: add embeddable HTML document output - #387
Merged
Merged
Conversation
rponeawa
marked this pull request as ready for review
October 13, 2026 19:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Embedded previews need a buildable HTML document with playback controlled by the host. This adds
@hypit/html-documentwith apage:Documentnode, selected in SVRun through<target output="preview.document"/>.The result preserves picture, audio and material references. Hosts materialize it with their own asset URLs and embed the generated HTML in an iframe. The document exposes playback, frame seeking and mute controls through JavaScript and a parent-window message API, allowing the host to supply its own controls.
Shared browser playback lives in
@hypit/html-program/playback. Studio assembles its own preview from Composition and Timeline and imports this player.html-documentuses it when materializing its output document. Existing SVML projects keep their imports and preview through Studio as before.@hypit/videoincludes the document package in its default dependencies.HypiHub draft PR #53 uses this output for queued marketplace previews. The execution-worker idle-retention change has been withdrawn from this PR.
Validation
pnpm checkpassed after withdrawing the Runtime changes.Release preparation
Package versions are unchanged. Changed existing packages need unpublished versions before release. Production services and npm publication were untouched.