Show HN: Wanim – Embed interactive 3Blue1Brown-style animations in your blog (github.com)
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.
2 comments
[ 3.6 ms ] story [ 10.2 ms ] thread