Skip to main content

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

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 APIs
  • src/projection/ contains backend-neutral render primitives and meshes
  • src/backend/ contains the sync boundary, ECS cache, and renderer
  • src/engine/ contains scene ownership, app lifecycle, timeline stepping, export, and config
  • docs/ contains the longer-form documentation site
  • examples/ contains the reference runnable examples for the crate

Getting Started

Requirements:

  • Rust 1.85 or newer
  • A working graphics environment for preview
  • ffmpeg if 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:

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

Watch the video

Animation showcase

Watch the video

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)

Table of built distributions (wheels) for murali-engine 0.2.5
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

0.3.0

6 release files

This release

0.2.5 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page