Skip to main content

Announcing AniMathIO 2.0

· 4 min read
Kovács Bálint-Hunor
AniMathIO maintainer

AniMathIO 2.0 exports a 60-second 1080p video in 37 seconds instead of 117, opens projects five times faster and uses half the memory of 1.x.

1.8.3 (Electron)2.0 (Rust)
Export, 60 s 1080p30 MP4116.8 s37.4 s (3.1× faster)
Export, 10 s 1080p30 MP420.4 s6.5 s
Open a project1.08 s0.21 s
Start to a usable window0.81 s0.20 s
Memory, idle with a project open923 MiB487 MiB
Peak memory, 10 s export (1)1252 MiB128 MiB
Size on disk (2)658 MiB293 MiB

Measured on one Linux machine (Ryzen 7 5800X) under a virtual X display, medians of three runs. (1) Export memory compares the 1.x app exporting from its window with the 2.0 command-line exporter. (2) The unpacked 1.x build against a 2.0 install. The method, raw numbers and caveats are in benchmarks.md.

The speed comes from the design: 2.0 is a native Rust app with one renderer shared by preview and export, and everything math-specific lives in sandboxed WebAssembly plugins.

What 2.0 is​

  • A simple video editor at the core: media clips, a multi-track timeline, transforms and keyframes, audio, preview and export.
  • Plugins for everything else: text, LaTeX, graphs, shapes, effects, animation presets, audio effects, the Manim importer and the v1 importer are WebAssembly components that run in a sandbox with memory, time and file limits.
  • One render function: preview, export and tests share the same deterministic renderer, so an exported frame matches what you saw.
  • Every edit is a command: each change is a serializable, invertible command. Undo and redo, the command line, the local control protocol and the MCP server all go through it.
  • Installers for Windows, macOS and Linux: see the install page.

Why the rewrite​

Most of the bugs we kept fighting in 1.x came from how it was built, so fixing them one at a time would never make them stop. Preview and export were two different pipelines (canvas and HTML media for preview, a real-time captureStream recording for export), which is why audio could drift and export ran at a fixed 30 fps in real time. Positions were stored in absolute pixels, so elements moved when the canvas was resized. Every media file was embedded as base64 inside one JSON file, which made projects huge and slow to save. There was no command layer, so there was no undo. And Electron, Next.js and native Node modules made installs and builds fragile.

2.0 removes those causes rather than the symptoms: one pure render function used by preview, export and tests; resolution-independent coordinates; a zip project with content-addressed assets; every edit as an invertible command, so undo and redo come for free; and a single Rust binary with plugins behind a versioned, sandboxed API. Rust was not the reason for the rewrite, but it makes this architecture easy to enforce.

Highlights​

  • Math objects as clips: LaTeX with a live preview and a Write-on reveal, plots, vectors, polygons and grids. See math objects.
  • Local automatic subtitles with styled and word-highlight captions, SRT and WebVTT import and export, plus silence and scene-cut detection, auto reframe, beat markers and auto ducking. See captions and automation.
  • A Premiere-style keymap. See keyboard shortcuts.
  • animathio-cli for headless rendering and the same tools through MCP.
  • A documented plugin API.

Showcase​

Three short explainers made entirely in 2.0, with LaTeX, graphs, shapes and music, built through the command line and MCP:

Vertical 9:16 versions are on the website.

Migrating from 1.x​

Import a 1.x project with animathio-cli import-v1 project.animathio -o imported.amio, or through the Manim importer for Manim scenes. The import is one-way and has known gaps, for example graphs arrive as images. Read migrating from 1.x before moving a project, and keep your originals. The 1.x documentation stays available under v1 (legacy), and the 1.x changelogs are linked from the earlier release posts.

Get it​

Download 2.0.0 from the GitHub release. The Windows and macOS installers are unsigned for now; the install page explains the warnings you will see.