* raea goal check reads an export's captions and hears its voice: captions and voice packs, and the farm reads text
Shane 11-30: "running a transcription and ocr pass on the final output ... catch if audio captions pick up something
else that's not supposed to be there or if we cut off words. as well we should be checking audio if it's too quiet
for dialogue". Elfster's cut 1 shipped hand-typed captions that dropped "when they get", "okay, this is" and
"organize your"; Body Shop's reaction cut buried the host 7 dB over its music. No check saw either.
captions (sdk/goal/src/packs/captions.ts): the farm's /v1/scene now reads each line of text (texts, RapidOCR
PP-OCRv4, Apache-2.0, about 0.13 s a 540-wide frame on CPU). A line is a caption when it fits what's said while
it's up with few edits (capitals, a badge's style, held stricter), lasts under 4.5 s, sits in a row with other
captions, in a frame with 3 lines or fewer, and the cut has a track of them (8 showings, 40% of the speech).
Shown-not-said: letters no word near it holds. Said-not-shown: words between captioned words that no caption has,
an error for 3 or more in a row where the captions are phrases; a line at a caption run's edge is a warning.
Calibrated on our 8 Elfster/Body Shop cuts and 4 shipped client refs: the refs' phrase captions pass clean but
one (Body Shop Video6's opening line under its hook card), and ours find what was found by hand.
voice (packs/voice.ts): on the export, the speech's level (80th percentile inside words) over the bed between
words: under 6 dB an error, under 10 a warning; each line against the typical line: 6 dB quieter an error, 4 a
warning. The 4 refs are clean; Elfster 2am (4.5 dB) and Body Shop edible (4.4) fail.
Both are in the cut and floor sets. The Scene type carries texts; media.ts passes them through. The farm needs a
deploy (rapidocr in the image) before captions reads anything; until then it notes the reader has no texts.
* raea goal check times on-screen text against its words: the reading pack
Shane 11-30: "the words on screen relative to duration ... if a wordy CTA or component or scene is meant to be fully
read or if it just adds glossable content or context, and if it's on screen long enough to be read."
From the farm's texts, every line that isn't a caption (nor words shown as they're said) is followed frame to frame;
lines that come up together are one block. A block needs 0.5 s plus 3 words a second: under that a warning, under 60%
of it an error. A block of 25 words or more, small text (under 54 px of 1080x1920) or a phone's screen (a status-bar
clock) is texture: a warning that asks whether it's meant to be read. Frames with more than 6 lines (a shelf of
labels, an app shot whole) and blocks of 3 words or fewer are left out. Every finding gives words, seconds and words
a second.
Calibrated on the 8 Elfster/Body Shop cuts and 4 shipped refs: it finds Elfster cut 2's 15-word hook card up 1 s and
Body Shop's reaction CTA card (11 words, 2 s); the refs give one error (an Elfster app screen up 1 s). In cut and floor.
* raea goal check holds every size the brief asks for at done (sizes-all)
Shane 11-30: "it will show completed but what about doing all the resizes". Dutch finished on its 9:16 masters alone:
the brief's 4:5, 1:1 and 16:9 were never made, because one-size-first was a rule against resizing early and nothing
asked for the other sizes at the end. At done, every ad's newest version (adOf, _v#) must be in every format its
brief names (cut `formats`, the brief's and each cut's), unless a person's answer to the open item about "sizes"
names fewer. The finding says which sizes are missing and the file name each takes. test/sizes.test.ts.
* raea ducks music under the talking by default, and goal check holds the hook and the air between words
Shane 11-30: the StreetTalk cuts' music was "about 4 or 5 decibels too loud ... make sure standards and measurements
correctly mix by default to move audio down in the mix, especially while talking, but a CTA with no audio is fine";
Elfster's Voted cut opened on 1.5 s of a silent whiteboard ("a hook really should have audio and video stimulation");
and "measuring and cutting air gaps safely ... it CANNOT destroy words".
- systems/mix: an edit with no Tone graph gets DEFAULT_GRAPH: footage and voice files on a `talk` bus, effects on the
master, any other audio file on a `bed` bus ducked DEFAULT_DUCK_DB (-6) under the talking, released where nobody
talks. The names aren't raea/tone's, so an edit's own buses never change; `bus="master"` opts a sound out. Offline
bounce and live play pick it the same way (score.rs routes a bus-less sound by default_bus). Test: the music sits
6 dB down under the talk and comes back after it.
- @raea/video airgaps: airGaps(words) and tighten(words, { levels }): the spans of a take to keep, gaps cut to 0.15 s
in the hook and 0.25 s after, only between words, 80 ms kept either side, each cut pulled back while the take is
still loud (a transcript's early word end).
- goal packs hook and airgaps (cut and floor): a first word over 1 s in with a quiet opening is an error (Voted:
1.5 s, -15 dB); gaps over 0.5 s in the first 3 s are errors, over 0.3 s warnings, over 0.8 s after warnings.
- sound pack: bus-less files classed as the mixer routes them (a music file with any name is music, not a voice
line), the default duck counted, and music within 10 dB of the voice warns (was 6), as the voice pack does.
* The voice check judges the bed only on enough gaps between words
Body Shop's host-hook cut read "1.5 dB above what's under it" off a single 0.34 s gap between two "Mmm"s, where the
speaker was still humming; the agent's own measure (pauses of 0.8 s and more) read 11.7 dB. A tightly cut take has few
gaps, so the bed is judged only on 3 or more gaps and 1 s of them in all.
* The default mix's graph moves to raea-sys-tone, and its test to its own file, so raea-sys-mix is under 2000 lines
CI's size gate: raea-sys-mix was 2048 lines and offline.rs 530. DEFAULT_GRAPH, DEFAULT_DUCK_DB and default_bus are
the default Tone graph, so they live with the graph format in raea-sys-tone (defaults.rs) and raea-sys-mix re-exports
them; the duck test is duck_test.rs.
---------
Co-authored-by: shinyobjectz <[email protected]>
raea
Render Anything Engine (for Anyone)
Tell your AI what to make. Videos, motion graphics, 3D and games, written as React and TypeScript
(the code your AI already writes) and rendered on your own GPU, faster than they play.
raea.io · Made in raea · Why raea · Docs · Releases
raea releases experimentally and often, so the newest release is always on Releases. The app is unstable for now, especially on Linux and Windows: expect rough edges, and tell us what you hit in an issue, or from your agent with
raea bug.
The app
The raea app is where you make video, 3D and games with your AI. You ask in a chat; your own AI (Claude, ChatGPT, Kimi or a local model) writes the raea code and renders it; what it makes lands in the project's feed, where you watch it, scrub it, mark it up and send it back with notes. Download it from raea.io for the Mac, Windows or Linux. It tells you when a new version is out; on the Mac it updates itself.
New to the app? Watch the tutorial (5:50).
What the app does now:
- The chat comes first (0.1.5): your projects in a rail, the conversation in the middle, and
/goalto keep an agent going until a condition you set holds. - A timeline you edit by hand (0.1.4): trim, split and move clips, speed curves, freeze frames and keys, the way CapCut works, under every film, sound and scene.
- Scenes you walk around in (0.1.3): your agent posts a 3D scene and you walk through it, pin comments in it and move its parts by hand; every change is written into the scene's own code.
- Index (0.1.5): your folders, drives and Apple Photos made searchable by what's in them, on your Mac. On an M5 Pro, 10,000 pictures were searchable in under a minute.
- Review (0.1.6): each project has a Review tab, every comment you leave reaches the agent, and export is one window.
- Lighter (0.1.6): the window gives back memory it's finished with and rests when nothing changes, 34% less CPU at rest.
The app and the engine are free. Pro adds cloud storage, search across your computers and publishing; Team puts up to five people on one plan (pricing). Each release's notes are on the releases page.
Install
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.
Linux release builds also package an x86_64 AppImage of the engine command and
attach it and its SHA256 checksum beside the release archives.
Make it executable with chmod +x raea-*.AppImage, then run
./raea-VERSION-linux-x86_64.AppImage --help or pass the usual raea arguments.
See the AppImage release recipe for build
instructions, runtime requirements and running without FUSE.
On Windows 10 or 11, in PowerShell:
irm https://raea.io/install.ps1 | iex
It does the same under ~\.raea and adds raea to your PATH. raea needs a DirectX 12 or Vulkan GPU driver; what
else it needs (the Visual C++ runtime, FFmpeg and uv) is in its bin\ folder.
Hello
A composition is a React component that draws a frame for a given moment:
import { AbsoluteFill, Composition, interpolate, registerRoot, useCurrentFrame } from "raea";
function Hello() {
const f = useCurrentFrame();
return <AbsoluteFill style={{ background: "#000", color: "#fff", fontSize: 120, opacity: interpolate(f, [0, 20], [0, 1]) }}>Hello</AbsoluteFill>;
}
registerRoot(() => <Composition id="hello" component={Hello} width={1920} height={1080} fps={30} durationInFrames={90} />);
raea render hello.tsx -o hello.mp4
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.
What it does
- 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), andraea checkcatches 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 0.20: cameras, lights, materials, glTF models,
Gaussian splats, and Bevy plugins compiled into the engine. three.js work runs as it's written: a React Three Fiber
scene inside
<R3F>, or a three.js page's script inside<Three program>. - Sound. One mixer for live play and offline render, instruments and effects, and local models for foley and
instrument notes (
raea make sao,raea make 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.
Made in raea
Films, music videos, a tutorial and a game made with raea are on media.raea.io. Six of them come with their source in raea-films: each project's code under Apache-2.0, to read, render and take apart, and its models, textures and sound for anyone with a free raea account.
Use it from your agent
- Agent skills. They live in raea-skills, pinned here as
skills/:raeateaches an agent to write, render and check raea compositions, 3D and games included. The installer adds it to~/.claude/skills, andraea skills install --agent NAMEto other agents. - Claude plugin. The raea skill and two hooks (raea's quick check after a composition is saved, and media shown in
the raea app). In Claude Code:
/plugin install raea --marketplace shinyobjectz/raea-skills. It's theskills/folder of raea-skills, and/plugin marketplace add shinyobjectz/raeainstalls the same one. - Craft guides.
raea guideprints the floor every edit is held to and the guides for pitches, explainers, stories, games, motion, music and layout.raea context PROJECTsays what to read before working on a project. - Bug reports. When an agent finds a bug in raea itself,
raea bug TITLE --text TEXTsends it to raea's server with raea's version and the OS, no account needed. It sends words only: paths, emails and keys are taken out before it goes, and--dry-runprints what would go.
Build from source
Requirements: Rust (rustup reads the pinned version from rust-toolchain.toml), bun
and CMake. On macOS, Xcode's command-line tools; on Linux, the ALSA, fontconfig, udev, xkbcommon (with its X11
part, which the app targets' windows also load at run time) and Vulkan libraries and NASM (Ubuntu: cmake ninja-build nasm libasound2-dev libfontconfig1-dev libudev-dev libvulkan-dev libxkbcommon-dev libxkbcommon-x11-dev), as public CI
installs them.
git clone https://github.com/shinyobjectz/raea && cd raea
cargo build --release -p raea-cli --no-default-features
for d in sdk/raea sdk/react/js sdk/react/tw; do (cd $d && bun install); done
target/release/raea render sdk/react/bench/games/pong/edit.tsx -o pong.mp4
--no-default-features builds the public engine, as the releases are. The default features add one hosted service,
Content Credentials signed by raea's signing server, which isn't part of this repository. raea sends nothing on its
own: no telemetry, crash reports or update checks. What reaches the network is what you ask for (a remote URL in a
composition, a model downloaded on first use, a raea gen step on a provider you hold a key for), and RAEA_OFFLINE=1
refuses all of it. 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 |
|---|---|
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/ |
The one shared GPU device and its telemetry |
io/ |
Decode and encode (VideoToolbox, software codecs, AV1, a muxer), files, network, npm packages, traces |
systems/ |
Engine systems: layout, canvas, compositing, filters, mixing, speech, ML on ONNX Runtime, footage reading, lighting, contact checks for 3D parts, splats |
runtime/ |
Running a composition: the JavaScript engine seam (JavaScriptCore on macOS, QuickJS elsewhere), React and HTML on Bevy, baking, encode, live play |
engine/ |
The renderer (engine/render), the in-process TypeScript bundler, the Bevy plugin catalog, and the raea command itself (engine/cli) |
apps/ |
The crates behind the CLI's verbs: check, play, games, media |
sdk/ |
raea, the TypeScript SDK (sdk/raea), its 3D, physics, audio, video and UI packages, the craft guides, and the agent skills |
vendor/ |
Patched upstream crates, under their own licences (vendor/vendor.toml says why each is patched) |
tools/ |
Build and release helpers |
Behaviour specs written in Gherkin (.feature) sit beside the code they describe.
Licence
raea is under the Functional Source License 1.1, ALv2 Future 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.
