<ef-timegroup> and <ef-video>,
styled with CSS and rendered in a browser, by the CLI or in Editframe’s cloud. A Rendermate video is
a document: a timeline of JSX nodes, versioned like a git repository and rendered on
Rendermate’s GPUs. This guide moves an Editframe integration over in the order you’d do it: files
first, then each composition, then rendering and playback.
(1) How do I move my files to Rendermate?
Every file a document uses is a file in your workspace. For a file Editframe reads from asource_url, or one you can download, import it with import_asset (POST /v1/imports):
uploadFile or upload, the CLI
keeps a folder in step with one in your workspace:
asset://<name>, such as asset://launch/video.mp4, where
a composition used a file-id. Font files your @font-face rules load move the same way.
(2) How do I rebuild a composition as a document?
(A) Let your coding agent migrate it
Connect your agent tohttps://api.rendermate.com/mcp (Claude Code,
Cursor) and give it your composition’s HTML or React and its CSS. It writes the
document with create_document and edit_document and checks each moment with get_frame,
following the mapping below.
(B) Write the documents with the API
Create a document withPOST /v1/documents, read its jsx with GET /v1/documents/{id}, and
commit your nodes with POST /v1/documents/{id}/versions.
How do I edit a document? shows the request. An empty
document is 10 seconds of 1920×1080 at 30 fps; set its canvas in the same edit.
How does a composition map onto a document?
How do elements map?
Here is a title over a video, as an Editframe composition and as a document’s nodes:
Editframe
Rendermate
position is where its first line’s baseline starts, so set y a little below
where the CSS box’s top edge was.
How do timegroup modes become start and duration?
Every node has acommon.start and common.duration in seconds, counted from the start of the
video. Work out each element’s window from its timegroup:
How does CSS layout become pixels?
A composition places elements with CSS, usuallyposition: absolute and Tailwind classes. A
document places a media or shape node in a rectangle in pixels, and a text node at a
position in pixels, both from the canvas’s top-left corner. Read each element’s box from the
composition at its size, such as left-[96px] top-[54px] w-[640px] h-[360px], and write those
numbers. An element later in the HTML, or with a higher z-index, paints on top: give it a later
common.order key. How do order keys work? explains the keys.
How do CSS animations become keyframes?
Editframe seeks each CSS animation to its element’s time. In a document, the value itself is keyframed:Doc.keys([seconds, value, easing], …), timed from the node’s own start.
(3) How do I replace render data?
Your code writes the values into the JSX, where a composition readRENDER_DATA or
getRenderData(). Keep your composition as a JSX string with placeholders, such as {{TITLE}},
replace them, and send the result:
- One video per record: call
create_documentwith the filled-injsx. - A change to one video: commit an
editsreplacement, such as the title’s text, on the version you read.
list_versions shows the history.
(4) How do I move voice-overs and captions?
Call the model throughcreate_generation (POST /v1/generations), at the provider’s own price.
Its output is saved as an asset, ready for a document’s assets:
text
node starting at its first word. Models lists every model, with its inputs and params.
(5) How do I render, get notified and play the video?
Exporting a version again reuses what was already rendered.
export.succeeded’s data has the
download_url; copy the file from there to your own storage if you keep renders today.
A link plays one fixed version, or follows latest, so it plays each new version as you commit it.
It can autoplay, show controls, expire and ask for a password, and its pages can be on
your own domain.
(6) How do I switch over?
(A) All at once
For a few compositions, rebuild each one as a document, check it withget_frame, and switch your
code from createRender to create_export in one release.
(B) One composition at a time
For a larger integration, keep rendering with Editframe while you move one composition over:- Rebuild it as a document.
- Compare a frame of your Editframe render with
get_frameat the same time. - Switch the code that renders it to
create_export, and its webhook handler toexport.succeeded. - Move on to the next.
Next steps
- Documents: every node, keyframes, assets and errors.
- Webhooks: verify and handle
export.succeeded. - MCP server: connect your agent by URL.