Skip to main content
@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

Composition variables support string, number, color, boolean, enum, font, and image values.

Parse or generate HTML

Core re-exports the common parsing helpers:
Generate a complete composition from TimelineElement data:
The second argument is the requested duration in seconds. Pass a stable compositionId when output must be reproducible.

Read and validate variables

getVariables() merges declared defaults with render-time and sub-composition overrides.

Compile a project

Use the compiler entry when your integration needs resolved media timing or a single bundled document.
The compiler also exposes lower-level timing helpers such as compileTimingAttrs(), injectDurations(), and extractResolvedMedia().

Check the static contract

For the full composition lint result, use @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:

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.