Documentation

Canvas Timeline documentation

Guides, package notes, interactive demos, and generated references for the Canvas Timeline package family.

Copies a generated Markdown map of docs pages, with links to each page and its Markdown endpoint.
Browse documentation

Welcome to the documentation for Canvas Timeline. This library is designed to make it simple to build high-performance, frame-accurate, and fully customizable video, audio, or animation timelines in React.

terminal
pnpm add @techsquidtv/canvas-timeline

Where to start?

Follow a curated path depending on your goals and familiarity with the library:

Architectural Pillars

Canvas Timeline is built from the ground up around four main design principles:

State-First Serialization

The timeline is modeled as a pure serializable JSON state. This structure makes features like infinite undo/redo, real-time collaboration, and sequence saving simple to implement.

Precision via RationalTime

All time values are stored as fractions (integers value and rate). This eliminates floating-point rounding errors that accumulate over large audio/video editing sequences.

Canvas-Driven High Performance

Visual components (tracks, ruler, markers, clips) are drawn on double-buffered HTML5 Canvas. Drawing keeps rendering at a smooth 60fps even with hundreds of clips on screen.

Frictionless React Hooks

Low-frequency overlays, drag-handles, inspectors, and menus are built in standard React. Our state provider handles automatic reactivity so your components stay in sync.

Reference & Code Details

Looking for generated API references or details on individual workspaces?