Skip to content
SeedeXRPublic

Repository files navigation

Zuri

Zuri

An open alternative to Rive: interactive vector graphics with animation, state machines and data binding, in one small Rust runtime that plays the same .zur file on the web, in Unity and in Unreal.

  • Small. The web player is 81 KB of WebAssembly (brotli), 134 KB with text. No dependencies.
  • Fast where it counts. UI-sized scenes render in 0.1 - 0.5 ms on one core; an idle scene is not rendered at all.
  • One runtime, one C ABI. The browser, Unity, Unreal and the CLI run the same code and produce the same pixels (the wasm build is tested against the native golden images).
  • Agent-native. Scenes are plain JSON with a schema, a compiler whose errors say how to fix them, and a CLI that renders to PNG, also served as MCP tools (zuri mcp) that hand the picture back. People, the editor and AI agents edit the same document.
  • More than 2D. 3D models (OBJ, glTF/GLB, FBX) inside vector scenes, WGSL shader paints, animatable variable-font weight.
  • Open. Apache-2.0, including the editor. Export is free.

Status: early. The foundation is built and tested end to end; many Rive features are not implemented yet. docs/parity.md lists exactly what is done, partial and planned. The web packages are on npm (@seedexr/zuri, @seedexr/zuri-react); the Unity package and the Unreal plugin are in this repository.

Platforms

Zuri is meant to work on macOS, Linux and Windows. What has actually run where (CI runs on all three for every push):

macOS Linux Windows
Runtime, C ABI, CLI, importers tested tested tested
Web package: wasm builds, tests, headless Chrome tested tested tested
Editor tested; packaged (.dmg) and started in CI; used by hand tested; packaged (.deb, .rpm, AppImage) and started in CI tested; packaged (.msi, .exe installer) and started in CI
Unity package tested in Unity 6000.4 on the GPU library builds, C# bindings tested; not run in Unity library builds, C# bindings tested; not run in Unity
Unreal plugin tested in UE 5.8 on the GPU static library builds; plugin not compiled static library builds; plugin not compiled

Try it

cargo build -p zuri-cli --release
alias zuri="$PWD/target/release/zuri"

zuri new button.json                         # a starter scene: an interactive button
zuri build button.json                       # -> button.zur (1,172 bytes)
zuri render button.zur -o button.png --set hover=true --time 0.5 --scale 2
zuri import model.glb -o model.json          # also .fbx, .obj, .svg, and Lottie .json

In a browser:

pnpm install && pnpm --filter @seedexr/zuri build && bash scripts/build-examples.sh
python3 -m http.server 8000                  # then open http://localhost:8000/packages/web/demo/
import { ZuriPlayer } from '@seedexr/zuri';

const player = await ZuriPlayer.create(canvas, { src: '/button.zur', onEvent: console.log });
player.instance.setColor('accent', '#ff3366');

A scene is JSON

{ "zuri": 1, "children": [
  { "type": "Artboard", "name": "Main", "width": 400, "height": 300, "children": [
    { "type": "Shape", "name": "ball", "x": 200, "y": 150, "children": [
      { "type": "Ellipse", "width": 80, "height": 80 },
      { "type": "Fill", "color": "#ff5533" } ] },
    { "type": "Animation", "name": "bounce", "duration": 60, "loop": "pingpong", "children": [
      { "type": "Track", "target": "ball", "property": "y", "children": [
        { "type": "Key", "frame": 0, "value": 150, "interp": "cubic" },
        { "type": "Key", "frame": 60, "value": 60 } ] } ] } ] } ] }

One rule: an object is a type, its properties and its children; a reference is the target's name. zuri schema lists every type and property.

What is in the box

crates/zuri-core The runtime: format, scene, animation, state machines, data binding, reference renderer
crates/zuri-ffi The C ABI (zuri.h) behind every host
crates/zuri-cli zuri: build, dump, import, validate, info, render, bench, schema, mcp
crates/zuri-import SVG / Lottie / OBJ / glTF / FBX importers, WGSL shader translation
packages/web, packages/react @seedexr/zuri, @seedexr/zuri-react
apps/editor The editor (Tauri + React)
integrations/unity, integrations/unreal Engine plugins
examples Example scenes
brand Logo, colour and type tokens, Tailwind theme

Documentation

docs/: getting started, the format, the CLI, the web runtime, importing, shaders, engine guides, the schema reference and the parity table.

Working on Zuri

Read AGENTS.md (it applies to people too), then memory/. bash scripts/verify.sh is the gate: format, lint, tests, golden images, the C ABI, the wasm build, browser checks and generated docs.

License

Apache-2.0: see LICENSE. Copyright 2026 SeedeXR and the Zuri contributors. The example font (Outfit) is under the SIL Open Font License (examples/assets/Outfit-OFL.txt).