mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-06 03:13:27 -10:00
* The component library: 609 open-source effects sorted by use, searched by `raea make component list WORDS` and copied by `add NAME` sdk/raea/library/components holds 475 pieces from remocn, 79 from the React Video Editor templates and 55 from snapcn, ported to raea's composition API and sorted by what they're for (text, numbers, transitions, screens, HUDs and more), not by who made them. catalog.json lists each piece's category, type, what it does, its files, the shared helpers it needs, its fonts and npm packages and its source; CREDITS.md holds the licences and every file's first line names its source. - `raea make component list` ends with the library's categories; `list WORDS` searches by category, category/type or words (catalog.ts). `add NAME` copies the piece into components/CATEGORY/NAME/ with its helpers under components/_lib/, and installs its npm packages through the engine. - The native host reads the library beside the binary (share/raea, which tools/release.sh already packs from sdk/raea/library), in RAEA_HOME, or in the tree a built raea runs from. - tools/effects-catalog.sh writes the cut-down catalogue raea cloud's dashboard imports (Libraries › Effects). - tools/size.sh leaves the library out: it's other people's code, kept as they wrote it but for imports. - conformance/catalog.test.ts: every listed file exists, imports stay inside what a piece copies, none imports another video framework, and search finds by use. * raea help's line for make component says list WORDS searches the library * no-void leaves the component library out: its gradient shader's own name is void --------- Co-authored-by: shinyobjectz <[email protected]>
raea
raea's TypeScript SDK for video, motion and games: React components and hooks for time, rendered by raea's engine (Bevy, with a JavaScript runtime inside it) instead of a browser. Its API is familiar to anyone who has written React video, so agents write it fluently, and it is raea's own work, built from its own written spec.
import { AbsoluteFill, Composition, interpolate, registerRoot, useCurrentFrame } from "raea";
function Title() {
const frame = useCurrentFrame();
const opacity = interpolate(frame, [0, 20], [0, 1], { extrapolateRight: "clamp" });
return <AbsoluteFill style={{ background: "#000", color: "#fff", fontSize: 120, opacity }}>Hello</AbsoluteFill>;
}
registerRoot(() => <Composition id="title" component={Title} width={1920} height={1080} fps={30} durationInFrames={90} />);
raea render title.tsx -o title.mp4
What raea adds
- Time anchored to words in a transcript (
word(),findPhrase()), so cues follow the speech when the cut moves. - Games as a pure step from input to state (
useGameState,useInput,useGameEvents): played live, rendered from a logged play, the same pixels. - 3D and an ECS world in the same tree, drawn by Bevy (
raea/3d,/ecs); see the raea skill's 3D guide (skills/skills/raea/3d.md). - Sound made on your Mac as values:
Tone.tokensynth()instruments for music andsao()foley, cached by prompt, seed and settings;raea make soundsfetches open sample libraries for a Tone.jsSampler. - The same code renders on the Mac and the iPhone.
Layout
spec/motion.feature: the behavioural spec.conformance/: tests written from the spec (bun test conformance);raea test FILE...runs them on the engine's own runtime.src/: the SDK.src/native.ts,ecs.ts,solid.tsandcodecs.tsare the engine modules (/native,/ecs,/3d'smanifoldandSolid,/codecs)./codecswraps mediabunny (MPL-2.0, unmodified) with the engine's coders underneath; Manifold runs natively as manifold-rust (Apache-2.0). Under plain bun,/ecsfalls back to TypeScript tables and the others say they need the engine.docs/bevy-coverage.md: which of Bevy's features a composition can reach, and what each missing one needs.bench/bevy/holds the 3D fixtures and their render-against-play check.tools/: golden-frame checks (golden.sh,golden-av.sh) andmedia-vs-ffmpeg.sh.
The raea app's agent learns the SDK from sdk/guides/craft/motion.md and motion/*.md, its guide for writing compositions.