Flight

A 2D rendering SDK designed for AI agents

explicit · grepable · nothing hidden

DOM Canvas WebGL WebGPU

        

Rendered live with Flight's Canvas renderer. The same scene runs on every backend — Canvas, DOM, WebGL, WebGPU — through one API.

Designed to be read and written by machines

Explicit, not magic

Rendering, allocation, and update passes are all invoked by name. No hidden state, no eager side effects on import.

Plain data

Colors are packed integers, filters are descriptors, transforms write to out-params. Free functions over deep class hierarchies.

Self-identifying names

Every exported name carries the full type it operates on, so a symbol leads straight to its domain — grepable by design.

Bounded & owned

Tree-shakable packages with explicit ownership and clear contracts — import one in isolation and understand it in full.

Everything available. Only what's needed.

Every package is tree-shakable and side-effect-free, so a build ships only what it draws — a shape and a renderer, not an entire engine.

Bitmap · Canvas 3.5 KB
Shape · Canvas 6.3 KB
Particles · WebGL 11.0 KB
PiratePig · WebGL 23.6 KB

gzipped · measured from the project's size baseline

A complete 2D feature set

Display objects Shapes Bitmaps Text Filters Blend modes Masks Tilemaps Particles Tweens Timelines Spritesheets
Examples

Browse the example gallery and flip each scene between the DOM, Canvas, WebGL, and WebGPU renderers.

Functional Tests — per-feature rendering checks against reference implementations