@eosa/core
v0.1.1
Published
Core types and timeline builder for ReactCut
Readme
@eosa/core
Core timeline logic and project builder for the Eosa Video-as-Code framework.
🧱 What is Eosa Core?
This package provides the foundational data models and the fluent builder API used to define videos programmatically. It is designed to be the "source of truth" that compiles into a deterministic JSON timeline.
🚀 Usage
import { createProject } from "@eosa/core";
const project = createProject("My Movie")
.composition({ width: 1080, height: 1920, fps: 30, durationInFrames: 150 })
.addTrack("main", (track) =>
track.addText("Hello Eosa", {
from: 0,
durationInFrames: 90,
style: { x: 100, y: 100, width: 400, height: 100 }
})
)
.build();📜 Features
- Fluent Builder API: Chainable methods to construct tracks, clips, and animations.
- Deterministic Schema: Reliable JSON output ready for validation.
- WASM Integration: Bridge to the high-performance Rust animation engine.
- Type Safety: Full TypeScript support for video definitions.
