Murali
Murali is a Rust-based animation engine for semantic graphics and mathematical scenes. It is built around deterministic timelines, a frontend scene model, CPU-side projection, and a GPU-backed runtime.
Documentation and cookbook
- Project overview: Project Overview
- Scene and app docs: Scene and App
- Internal architecture: Architecture Overview
- AI visualization roadmap: AI Visualization
- Youtube showcase Murali Youtube Channel
- Reference examples in this repo: examples/README.md
- Collection category architecture: src/frontend/collection
Goals
- Predictable, explicit animation behavior
- World-space authoring instead of pixel-first APIs
- Clear separation between authored scene state and render/runtime state
- A modern GPU path built on
wgpu
Building Blocks And Comfort Tattvas
Murali is primarily a framework of building blocks. The stable core should make primitives, text, timelines, layouts, camera movement, and rendering expressive enough that users can assemble most visual elements on the fly.
Murali also intentionally includes a small number of opinionated composite tattvas. These are comfort tattvas: higher-level components that make common video-making scenes easier to author, especially for AI explainers, mathematical storytelling, and reusable visual UI.
That convenience has a cost. Too many composites can make the library bloated or too prescriptive, so new opinionated components usually live in beta first. They may change quickly, move, be renamed, or be removed while their ergonomics and visual language are tested in real productions. Components are promoted into stable sections only after they prove mature and broadly useful.
Current Shape
src/frontend/contains user-facing tattvas, animations, layout helpers, and scene authoring APIssrc/projection/contains backend-neutral render primitives and meshessrc/backend/contains the sync boundary, ECS cache, and renderersrc/engine/contains scene ownership, app lifecycle, timeline stepping, export, and configdocs/contains the longer-form documentation siteexamples/contains the reference runnable examples for the crate
Getting Started
Requirements:
- Rust 1.85 or newer
- A working graphics environment for preview
ffmpegif you want video export
Install from crates.io:
[dependencies]
murali = "0.2.5"
anyhow = "1"
glam = "0.33"
Browse runnable examples from the GitHub repository:
git clone https://github.com/murali-engine/murali
cd murali
cargo run --example hello_shapes
The published crate excludes examples/**, so reference examples are available from the repository rather than from the crates.io package alone.
Python users install the engine package as murali-engine and import it as murali_engine.
Until the first PyPI release is published, build the Python extension from this repository:
python3 -m venv .venv
.venv/bin/python -m pip install maturin
.venv/bin/maturin develop --features python
source .venv/bin/activate
python python/examples/hello_shapes.py
After PyPI publish, the engine install becomes:
python3 -m pip install murali-engine
Companion Python examples and add-on experiments live in the separate murali-kit repository. The
kit depends on murali-engine; the engine does not depend on the kit.
Some in-progress APIs are feature-gated. For example, the linear-algebra visual toolkit currently
requires the experimental feature:
[dependencies]
murali = { version = "0.2.5", features = ["experimental"] }
Repository examples that use that API should be run with the feature enabled:
cargo run --features experimental --example linear_algebra_vectors
Quickly inspect a GLB/GLTF asset before using it in a scene:
cargo run --example model_inspector -- demo-apple
cargo run --example model_inspector -- /absolute/path/to/model.glb --rot-x -20
The inspector centers and frames the model automatically. Pass --help to see scale, rotation,
camera, and continuous-preview controls.
Some useful places to start:
- Documentation
- Landscape, portrait, and square video formats
- Reference examples catalog
- Future roadmap
- YouTube showcase
Who It's For
Murali is for people who want authored, programmatic control over mathematical, AI, and explainer-style visuals in Rust.
If you like the kind of mathematical storytelling associated with Manim and want a Rust-native workflow, Murali is built in that spirit.
Murali is also being grown as a long-term AI visualization engine. The collection category architecture names the math, probability, statistics, calculus, optimization, information theory, deep learning, LLM, and agentic-AI components that will be developed steadily through the end of 2030.
Preview And Export Config
Murali looks for the nearest murali.toml next to a Cargo.toml. If no config file is present, sensible defaults are used.
Example config:
[preview]
fps = 60
[export]
fps = 60
width = 1920
The scene owns its aspect ratio. Landscape is the default; portrait and square scenes are explicit:
let portrait = Scene::new().with_frame(Frame::portrait());
let square = Scene::new().with_frame(Frame::square());
Export width is literal pixel width. Murali derives height from the scene frame, so a portrait scene at width = 1080 exports at 1080 × 1920.
A sample file is included at murali.toml.example.
Examples
Shapes
Animation showcase
Status
Murali is under active development. The repository already includes:
- scene and timeline infrastructure
- preview and headless export paths
- text, LaTeX, and Typst support
- primitives, layout helpers, tables, graph tattvas, and utility tattvas
- write/unwrite, transform, text, and surface animation building blocks
- semantic tensor snapshots, operations, slicing, transitions, and versioned AI trace ingestion
- context-window, next-token sampling, KV-cache, and LayerNorm/RMSNorm teaching views
License
Murali is dual-licensed under either the MIT License or the Apache License, Version 2.0.
Release files for murali-engine 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| murali_engine-0.2.5-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
Release files / murali_engine-0.2.5-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | murali_engine-0.2.5-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 21.9 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b171a2ebbc46fa66799c06c487b4f44c309224983eeba865bffa5610b569ddd4
|
|
BLAKE2b-256 checksum How to use checksums |
0db1ddc9415bb036ee07428b2e88ed37ca50e69ffba49c81c643af61a4d84ed6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.15.0
|