Get Started
Install the CLI, give your agent the skills, and render your first scene in a minute.
Motion SDK is an agent-native alternative to Three.js, written in Rust on WebGPU. Your agent writes a scene as JSON, or streams it as small patches. Motion SDK checks every step, answers mistakes with a fix, and renders the same pixels every time: live in the browser, or headless to MP4, GIF and PNG.
New here? The Introduction explains why it exists and how it fits together.
Quick Start
Install the CLI from the repo. You need Rust and any GPU, or a software Vulkan driver like Mesa lavapipe.
git clone https://github.com/brainfish-ai/motion && cd motion
cargo install --locked --path crates/motion-sdk-cliGive your agent the skills:
npx skills@latest add brainfish-ai/motionThen ask it for a scene:
Use motion-sdk to make a 6 second seamless loop for X: a neon torus knot
spinning inside a ring of chrome spheres, with the hook "Made by an agent".
Validate it, render a frame to check it, then export it with the x_1x1 preset.Or render one of the examples yourself:
motion-sdk render examples/viral-x-loop.json --export x_squareLearn the Basics
IntroductionWhy Motion SDK exists, and how the spec, renderer and exports fit together.Your First SceneBuild a scene step by step, validate it and render it.The Scene DocumentId-keyed maps, single-key variants, defaults and units.Streaming PatchesSend a scene as RFC 6902 patches that render as they arrive.
Find a Feature
MaterialsPBR presets, flat and toon shading, outlines and surfaces.Camera and ShotsA shot list with hard cuts, waypoints and follow cams.ParticlesSparks, snow, smoke, spray, trails and streaks.ExportMP4, GIF and PNG with social presets and captions.