gitframes-compose
gitframes-compose
Setup
Import everything from the gitframes npm package. If the project doesn't have gitframes set up yet, follow the gitframes skill first (install, project scaffold, first render).
Overview
gitframes is a code-first, deterministic video composition SDK executing natively on WebGPU (Dawn) in Node.js. It replaces browser-based rendering (Puppeteer/Chromium) with high-performance GPU pipelines, Yoga flexbox layout, Slug vector typography, 3D camera transforms, and reactive audio/signal drivers.
Every composition is defined as a tree of layout nodes compiled into a deterministic execution program: (composition, frame) → pixels.
Architecture & Core Concepts
1. Composition Lifecycle
A Composition instance defines canvas dimensions, frame rate, background, registered fonts, global audio tracks, and the layer hierarchy:
import { Composition, Layer, FontManager } from "gitframes";