Repository

Acfboy/Wanim

Wanim

Open github.com

Acfboy/Wanim

Wanim

A lightweight tool that runs Manim Python animation code in the browser by transpiling to JavaScript, roughly 20× smaller than Pyodide-based approaches. Supports interactive scenes with sliders and inputs.

Visit project

Show me a random project

First shared
Nov 10, 2026
HN activity
42

Show HN@AcfboyNov 10, 2026

Show HN: Wanim – Run Manim Python in the browser, 20× smaller than Pyodide

Hi HN, I love 3Blue1Brown's animations and Manim, the Python animation engine behind them. So I wanted to run it in my blog to build interactive animations. But that wasn't easy. Running it with Pyodide is too heavy. I came up with a new approach: by patching rapydscript-ng (a tool that transpiles Python-like syntax to JS), I make it translate Manim code into JS, and pair it with a companion JS library. This lets it run the original code in a small enough bundle. Fortunately, after overcoming some difficulties, it worked! It runs surprisingly well. You can see a blog I built here: https://wanim.org/blog , or try running your own Manim animations at https://wanim.org/playground.

Community

Hacker News discussion

Loading the thread…