Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
raea 10bed2385ced7a7130f228c5667abd36a4daecda
shinyobjectzce59cf5f3f87
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 369e00f8..ceec0ec2 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -5,7 +5,7 @@"author": { "name": "Shane Murphy", "url": "https://raea.io" },"homepage": "https://raea.io","repository": "https://github.com/shinyobjectz/raea",- "license": "Apache-2.0",+ "license": "FSL-1.1-ALv2","skills": ["./sdk/skills/"],- "keywords": ["video", "motion-graphics", "game-development", "rendering", "bevy", "react", "mcp"]+ "keywords": ["video", "motion-graphics", "game-development", "rendering", "bevy", "react", "agent-skills"]}diff --git a/README.md b/README.mdindex 4882de38..d71d84be 100644--- a/README.md+++ b/README.md@@ -1,7 +1,7 @@<p align="center"><picture>- <source media="(prefers-color-scheme: dark)" srcset="content/logo/cat-white.svg">- <img src="content/logo/cat-black.svg" width="72" alt="raea's cat">+ <source media="(prefers-color-scheme: dark)" srcset="docs/logo/cat-white.svg">+ <img src="docs/logo/cat-black.svg" width="72" alt="raea's cat"></picture></p>@@ -10,35 +10,44 @@<p align="center"><b>Render Anything Engine</b> <i>(for Anyone)</i></p><p align="center">- One GPU engine for video, motion, games, 3D and documents, written as React and TypeScript,<br>- rendered faster than it plays, on the device you already own.+ Tell your AI what to make. Videos, motion graphics, 3D and games, written as React and TypeScript<br>+ (the code your AI already writes) and rendered on your own GPU, faster than they play.</p><p align="center"><a href="https://raea.io">raea.io</a> ·- <a href="https://raea.io/why/">Why we built it</a> ·- <a href="https://raea.io/learn/">How it works</a> ·- <a href="docs/settings.md">Settings</a> ·- <a href="sdk/skills/raea/SKILL.md">Agent skill</a>+ <a href="https://raea.io/made/">Made in raea</a> ·+ <a href="https://raea.io/why/">Why raea</a> ·+ <a href="https://raea.io/learn/">Docs</a> ·+ <a href="https://github.com/shinyobjectz/raea/releases">Releases</a></p><p align="center"><img alt="licence FSL-1.1-ALv2" src="https://img.shields.io/badge/licence-FSL--1.1--ALv2-black"><img alt="status canary" src="https://img.shields.io/badge/status-canary-black"><img alt="macOS, Apple Silicon" src="https://img.shields.io/badge/macOS-Apple%20Silicon-black">+ <img alt="Linux x86_64" src="https://img.shields.io/badge/Linux-x86__64-black"></p>----> **Canary.** raea is in active development and changes daily. It builds and renders on a Mac with Apple Silicon,-> and parts of it are rough. Expect breaking changes, missing docs, and things that only work the way we use them.+> **Canary.** raea changes daily. Releases run on macOS (Apple Silicon) and Linux (x86_64). Expect breaking changes,+> rough edges and gaps in the docs.-## What it is+## Install-raea renders compositions: React components that draw a frame for a given moment, written with `raea`.-The engine runs them inside [Bevy](https://bevyengine.org) on the GPU, composites video with fused compute kernels,-encodes in hardware, and keeps everything it drew as data you can query. The same file renders to an MP4, plays live-as a game, or renders one frame for an agent to look at.+```sh+curl -fsSL https://raea.io/install | sh+```++The installer puts the `raea` command under `~/.raea`, links it into `~/.local/bin`, and adds raea's agent skills to+`~/.claude/skills`, so Claude Code (or any agent that reads that folder) knows how to write, render and check raea+work. Run it again to update. The engine is free and needs no account. Tarballs and checksums are on the+[releases page](https://github.com/shinyobjectz/raea/releases).++## Hello++A composition is a React component that draws a frame for a given moment:```tsximport { AbsoluteFill, Composition, interpolate, registerRoot, useCurrentFrame } from "raea";@@ -55,66 +64,68 @@ registerRoot(() => <Composition id="hello" component={Hello} width={1920} heightraea render hello.tsx -o hello.mp4```-## Get started+On an Apple Silicon Mac those 90 frames render in about a second. The same file can play live as a game+(`raea play`), render one frame for an agent to look at (`-o frame.png --frame 45`), or be checked against a quality+floor (`raea check hello.mp4`). `raea init` starts a project, and `raea --help` lists every verb.-Requirements: macOS on Apple Silicon, [Rust](https://rustup.rs) (stable), [bun](https://bun.sh), Xcode command-line-tools.+## What it does-```sh-git clone https://github.com/shinyobjectz/raea && cd raea+- **Video and motion graphics.** Layout, text, Tailwind, SVG and animation, composited on the GPU and encoded in+ hardware where the machine has it. Footage is cut by what's said in it (`raea cut`), and `raea check` catches clipped+ text, low contrast, unsafe areas, freezes and loudness problems before anyone watches.+- **Games.** Input, physics, sound and 3D, played live with `raea play`, and exported as a program of their own+ (`raea export-game`).+- **3D.** Scenes in TypeScript drawn by [Bevy](https://bevyengine.org) 0.20: cameras, lights, materials, glTF models,+ Gaussian splats, and Bevy plugins compiled into the engine.+- **Sound.** One mixer for live play and offline render, instruments and effects, and local models for foley and+ instrument notes (`raea sao`, `raea tokensynth`).+- **Built for agents.** Everything it draws stays queryable as data, so an agent can render a frame, look at it, and+ fix what's wrong without a person in the loop.-# the CLI: render, play, run and test compositions (one Cargo workspace, one target/)-cargo build --release -p raea-cli-target/release/raea render sdk/react/bench/games/pong/edit.tsx -o pong.mp4-```+## Use it from your agent-The raea app's agent needs a model. Put a key in `~/.raea/env`; OpenRouter is the default, and Anthropic, Z.ai, DeepSeek,-Moonshot or any Anthropic-compatible endpoint work through `RAEA_LLM_PROVIDER`:+- **Agent skills.** [`sdk/skills/raea`](sdk/skills/raea/SKILL.md) teaches an agent to write, render and check raea+ compositions; [`sdk/skills/raea-bevy`](sdk/skills/raea-bevy) covers 3D and games. The installer adds both to+ `~/.claude/skills`.+- **Claude Code plugin.** `/plugin marketplace add shinyobjectz/raea`, then `/plugin install raea@raea`.+- **Craft guides.** `raea guide` prints the floor every edit is held to and the guides for pitches, explainers, stories,+ games, motion, music and layout. `raea context PROJECT` says what to read before working on a project.-```sh-mkdir -p ~/.raea && echo "OPENROUTER_API_KEY=sk-or-..." >> ~/.raea/env-```+## Build from source-Everything else is optional; [docs/settings.md](docs/settings.md) lists every setting, and how to run the small API-behind generated music and speech yourself.+Requirements: [Rust](https://rustup.rs) (stable) and [bun](https://bun.sh). On macOS, Xcode's command-line tools; on Linux, the ALSA, fontconfig and Vulkan libraries.-## Use it from your agent+```sh+git clone https://github.com/shinyobjectz/raea && cd raea+cargo build --release -p raea-cli --no-default-features+target/release/raea render sdk/react/bench/games/pong/edit.tsx -o pong.mp4+```-- **Agent skill.** `sdk/skills/raea/SKILL.md` teaches any agent to write, render and check raea compositions.- `sdk/skills/raea-bevy` covers 3D and games drawn by Bevy.-- **Claude Code plugin.** `/plugin marketplace add shinyobjectz/raea`, then `/plugin install raea@raea`.-- **MCP.** With the raea app running, `claude mcp add --transport http raea-app http://127.0.0.1:7457/mcp` gives an agent its- tools: `state`, `screenshot`, `send`, `act`, `wait`, `logs`, `hear`, `say`.+`--no-default-features` builds the public engine. The default features add raea's hosted services, which aren't+part of this repository. [docs/settings.md](docs/settings.md) lists the settings raea reads.## What's in here+The workspace is layered, from pure building blocks up to the command.+| Folder | What ||---|---|-| [`engine/render/`](engine/render) | `raea-render`: the Bevy renderer an edit's rows draw through, the GPU encode path, the media verbs |-| [`runtime/js/`](runtime/js) | React and HTML on bevy_ui: the page a composition's 2D draws on, tested against Chrome |-| [`core/k/`](core/k), [`systems/k/`](systems/k) | The render path's kernels in a small K dialect: interpreted on the CPU, compiled to WGSL, bit-exact |-| [`io/media/`](io/media) | Decode and encode behind one seam: VideoToolbox, software codecs, AV1, a muxer |-| [`systems/mix/`](systems/mix), [`systems/tone/`](systems/tone), [`engine/seedling/`](engine/seedling) | One mixer core for live play and offline render, Tone's instruments and effects on it, and bevy_seedling on it |-| [`core/animate/`](core/animate), [`engine/bevy-plugins/`](engine/bevy-plugins) | Frame-pure animation (easing, tweens, springs), and Bevy plugins compiled into the engine |-| [`core/calls/`](core/calls), [`engine/native/`](engine/native), [`io/shell/`](io/shell), [`engine/modules/`](engine/modules) | The native-call registry, its JavaScriptCore binding, the shell's natives, and the in-process TypeScript loader |-| [`engine/bundle/`](engine/bundle) | The in-process TypeScript bundler (Rolldown) |-| [`engine/sandbox/`](engine/sandbox) | A WASI sandbox for command-line tools on the iPhone (experimental) |-| [`gpu/device/`](gpu/device), [`io/trace/`](io/trace) | The one shared GPU device and its telemetry, and the flight recorder each run leaves |-| [`sdk/raea/`](sdk/raea) | `raea`, the TypeScript SDK: its spec, conformance suite and source |-| [`sdk/react/`](sdk/react) | `raea`: runs `raea` compositions in Bevy; render, play, run, test; the iPhone build |-| [`sdk/shell/`](sdk/shell) | The agent's shell |-| [`sdk/skills/`](sdk/skills) | Agent skills for working in raea |-| [`engine/cli/`](engine/cli) | The agent's `raea` command |-| [`systems/footage/`](systems/footage) | Reading footage the way an editor does |-| [`systems/ml/`](systems/ml), [`systems/speech/`](systems/speech) | Models on ONNX Runtime, and Pocket TTS speech on it |-| [`tools/`](tools) | Build helpers: the JIT-signing linker wrapper, setup scripts |-| [`docs/`](docs) | Cross-cutting docs and [settings](docs/settings.md) |--Each folder has a README saying what it is and what it depends on. Behaviour specs written in Gherkin (`.feature`)-sit beside the code they specify.+| [`core/`](core) | Pure building blocks: the kernel language (K, interpreted on the CPU and compiled to WGSL), easing and animation, shapes, fonts, the scene and wire formats |+| [`gpu/`](gpu) | The one shared GPU device and its telemetry |+| [`io/`](io) | Decode and encode (VideoToolbox, software codecs, AV1, a muxer), files, network, npm packages, traces |+| [`systems/`](systems) | Engine systems: layout, canvas, compositing, filters, mixing, speech, ML on ONNX Runtime, footage reading, lighting, contact checks for 3D parts, splats |+| [`runtime/`](runtime) | Running a composition: the JavaScript engine seam (JavaScriptCore on macOS, QuickJS elsewhere), React and HTML on Bevy, baking, encode, live play |+| [`engine/`](engine) | The renderer (`engine/render`), the in-process TypeScript bundler, the Bevy plugin catalog, and the `raea` command itself (`engine/cli`) |+| [`apps/`](apps) | The crates behind the CLI's verbs: check, play, games, media |+| [`sdk/`](sdk) | `raea`, the TypeScript SDK (`sdk/raea`), its 3D, physics, audio, video and UI packages, the craft guides, and the agent skills |+| [`vendor/`](vendor) | Patched upstream crates, under their own licences ([`vendor/vendor.toml`](vendor/vendor.toml) says why each is patched) |+| [`tools/`](tools) | Build and release helpers |++Behaviour specs written in Gherkin (`.feature`) sit beside the code they describe.## Licenceraea is under the [Functional Source License 1.1, ALv2 Future License](LICENSE) (FSL-1.1-ALv2), copyright Shane-Murphy: use it, change it, build on it and pass it on for anything except a product that competes with raea. Each-version becomes Apache-2.0 two years after its release. Third-party parts keep their own licences; see [NOTICE](NOTICE).+Murphy. Use it, change it, build on it and pass it on for anything except a product that competes with raea. Each+version becomes Apache-2.0 two years after its release. Third-party parts keep their own licences; see+[NOTICE](NOTICE).diff --git a/docs/logo/cat-black.svg b/docs/logo/cat-black.svgnew file mode 100644index 00000000..30f1153f--- /dev/null+++ b/docs/logo/cat-black.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="360" height="360" shape-rendering="crispEdges"><path fill="#000" fill-rule="evenodd" d="M9 2h3v2h-1v3h1v1h1v2h1v2h1v-4h1v-2h1v-1h3v1h1v2h4v-1h1v-1h3v7h1v7h-1v1h-1v1h1v2h1v2h1v2h1v2h-1v1h-2v-1h-2v-1h-1v-1h-1v-1h-3v1h-3v2h-1v3h-1v1h-3v-1h-1v-6h-1v-1h-2v-1h-1v1h-1v2h-1v2h-1v1h-2v-1h-1v-5h1v-3h1v-4h1v-2h1v-2h1v-1h1v-3h-1v-2h-1v-4h1v-1h1zM22 13h-1v3h1zM27 13h-1v3h1z"/></svg>diff --git a/docs/logo/cat-white.svg b/docs/logo/cat-white.svgnew file mode 100644index 00000000..be862d6d--- /dev/null+++ b/docs/logo/cat-white.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="360" height="360" shape-rendering="crispEdges"><path fill="#fff" fill-rule="evenodd" d="M9 2h3v2h-1v3h1v1h1v2h1v2h1v-4h1v-2h1v-1h3v1h1v2h4v-1h1v-1h3v7h1v7h-1v1h-1v1h1v2h1v2h1v2h1v2h-1v1h-2v-1h-2v-1h-1v-1h-1v-1h-3v1h-3v2h-1v3h-1v1h-3v-1h-1v-6h-1v-1h-2v-1h-1v1h-1v2h-1v2h-1v1h-2v-1h-1v-5h1v-3h1v-4h1v-2h1v-2h1v-1h1v-3h-1v-2h-1v-4h1v-1h1zM22 13h-1v3h1zM27 13h-1v3h1z"/></svg>diff --git a/docs/settings.md b/docs/settings.mdindex 7419ec12..f46c9001 100644--- a/docs/settings.md+++ b/docs/settings.md@@ -8,30 +8,6 @@ which setting is missing.mkdir -p ~/.raea && touch ~/.raea/env && chmod 600 ~/.raea/env```-## The agent's model--The raea app's agent streams the Anthropic Messages API, so any provider that serves it works. Pick one with-`RAEA_LLM_PROVIDER`:--| `RAEA_LLM_PROVIDER` | Endpoint | Key variable | Model |-|---|---|---|---|-| `openrouter` (default) | `https://openrouter.ai/api` | `OPENROUTER_API_KEY` | `RAEA_LLM_MODEL`, default `z-ai/glm-5.3-flash` |-| `anthropic` | `https://api.anthropic.com` | `ANTHROPIC_API_KEY` | `RAEA_LLM_MODEL` (required) |-| `zai` | `https://api.z.ai/api/anthropic` | `ZAI_API_KEY` | `RAEA_LLM_MODEL` (required) |-| `deepseek` | `https://api.deepseek.com/anthropic` | `DEEPSEEK_API_KEY` | `RAEA_LLM_MODEL` (required) |-| `moonshot` | `https://api.moonshot.ai/anthropic` | `MOONSHOT_API_KEY` | `RAEA_LLM_MODEL` (required) |-| `custom` | `RAEA_LLM_BASE_URL` | `RAEA_LLM_API_KEY` | `RAEA_LLM_MODEL` (required) |--`RAEA_LLM_API_KEY` overrides the provider's own key variable. For a `custom` endpoint that wants-`Authorization: Bearer` instead of `x-api-key`, set `RAEA_LLM_AUTH=bearer`.--```sh-# ~/.raea/env-RAEA_LLM_PROVIDER=anthropic-RAEA_LLM_MODEL=claude-sonnet-5-5-ANTHROPIC_API_KEY=...-```-## Local audio modelsTwo models make sound on your Mac, free, with no account. Each installs itself the first time a composition or a