@hyperframes/core contains the shared composition model and browser runtime
used across HyperFrames.
Most people should use the CLI, Studio, or
SDK. Install Core directly when you are generating composition
HTML, compiling projects, building tooling around the shared types, or embedding
the runtime.
Main surfaces
The standalone Parsers and Linter
packages own those concerns for new integrations. Core retains compatibility
re-exports for some older imports.
Types
string, number, color, boolean, enum,
font, and image values.
Parse or generate HTML
Core re-exports the common parsing helpers:TimelineElement data:
compositionId when output must be reproducible.
Composition generators require trusted authors for code-bearing inputs. styles and
generateHyperframesStyles preserve authored CSS, which can load external resources.
animations may contain __raw: values that are emitted as JavaScript;
includeScripts: true includes executable timeline code. serializeGsapAnimations
also accepts raw preamble, postamble, and a code-bearing timelineVar. Never fill
these inputs with untrusted data. Attribute encoding and closing-tag containment
are not a sandbox; render untrusted compositions in an appropriately isolated
execution environment and never serve them on a privileged origin.
Text content retains the supported inline-formatting sanitizer contract. The clip
parser intentionally flattens inner formatting to text, so parse/generate is not
a lossless replacement for editing the source HTML.
Read and validate variables
Inside a composition script,getVariables() reads declared defaults plus the
values supplied for the current preview or render:
Compile a project
Use the compiler entry when your integration needs resolved media timing or a single bundled document.compileTimingAttrs(), injectDurations(), and extractResolvedMedia().
Check the static contract
@hyperframes/lint
or run npx hyperframes lint.
Build a frame adapter
Frame adapters make an animation runtime seekable by frame. Core includes the GSAP adapter:Related topics
Composition schema
Learn the HTML contract that Core reads and writes.
@hyperframes/parsers
Work directly with HTML and GSAP parsing.
@hyperframes/lint
Validate composition HTML in your own tooling.
@hyperframes/producer
Turn a project into a finished video from Node.js.