Motion SDK

An agent-native alternative to Three.js

Written in Rust on WebGPU. Agents write a JSON scene, or stream it as patches. Motion SDK checks every step and renders the same pixels every time, live in the browser or headless to MP4.

npx skills@latest add brainfish-ai/motion

A JSON scene spec

Nodes, materials, lights, shots, keyframes, springs, particles, terrain, water and text in one document. {} is a valid scene.

Streamed patches

RFC 6902 patches that render as they arrive. A transform patch updates one instance slot.

Errors with fixes

Every issue has a JSON Pointer path and a suggested fix, often a ready patch.

Deterministic renders

Same spec, same seed, same pixels, in the browser, natively and in CI.

One small runtime

About 289 kB brotli on WebGPU, with the timeline, text, particles and post effects included.

Native and headless

MP4, GIF and PNG from the CLI, with social presets, captions and loop checks.

Viral Opus 5.6 animations, rebuilt as scenes

The original Three.js render on the left, Motion SDK on the right. See the numbers.

night-airport: original and Motion SDK side by sidesnowplow: original and Motion SDK side by sidetank: original and Motion SDK side by sidelive-city: original and Motion SDK side by side