feat(producer): support entryFile for rendering individual compositions#42
Merged
miguel-heygen merged 6 commits intomainfrom Mar 27, 2026
Merged
feat(producer): support entryFile for rendering individual compositions#42miguel-heygen merged 6 commits intomainfrom
miguel-heygen merged 6 commits intomainfrom
Conversation
22065c5 to
100ac63
Compare
Add optional `entryFile` parameter to the render API. When provided, the producer renders the specified HTML file instead of defaulting to index.html. This enables rendering individual sub-compositions (e.g. `compositions/intro.html`) without wrapping them in a full project. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…compositions - Add dist-sibling path to manifest resolver (fixes "Missing manifest" when running from bundled public-server.js) - Add wrapSubCompositionAsStandalone: when entryFile is a <template>-based sub-composition, creates a standalone HTML document with GSAP + runtime so it can render independently - Extract TARGET_DURATION from composition scripts for data-duration Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ging The renderStream handler was missing entryFile in createRenderJob, causing all composition renders to fall back to index.html. Also adds logging for staticDuration and entryFile to help diagnose duration detection issues. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Fix unnecessary escape characters in template literal (no-useless-escape) - Apply oxfmt formatting Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2793165 to
ab54952
Compare
jrusso1020
reviewed
Mar 27, 2026
jrusso1020
approved these changes
Mar 27, 2026
Collaborator
Author
Merge activity
|
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.
Changes
entryFileparameter to render API endpoints (/v1/renderand/v1/render-stream)<template>wrapperAPI Changes
RenderConfig— new optionalentryFilefield for specifying HTML file to renderserver.ts— parsesentryFilefrom request body, validates file exists in project directoryexecuteRenderJob— usesentryFileinstead of hardcoded"index.html"Template Extraction
extractStandaloneEntryFromIndex— extracts sub-composition hosts from index.html and creates standalone render context<template>entry files by finding matchingdata-composition-srcin index.html and isolating that hostdata-startto 0 for standalone renderingLinting Updates
Usage
Omit
entryFilefor default behavior (rendersindex.html).