frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I ported Manim to TypeScript (run 3b1B math animations in the browser)

https://github.com/maloyan/manim-web
51•maloyan•2d ago
Hi HN, I'm Narek. I built Manim-Web, a TypeScript/JavaScript port of 3Blue1Brown’s popular Manim math animation engine.

The Problem: Like many here, I love Manim's visual style. But setting it up locally is notoriously painful - it requires Python, FFmpeg, Cairo, and a full LaTeX distribution. It creates a massive barrier to entry, especially for students or people who just want to quickly visualize a concept.

The Solution: I wanted to make it zero-setup, so I ported the engine to TypeScript. Manim-Web runs entirely client-side in the browser. No Python, no servers, no install. It runs animations in real-time at 60fps.

How it works underneath: - Rendering: Uses Canvas API / WebGL (via Three.js for 3D scenes). - LaTeX: Rendered and animated via MathJax/KaTeX (no LaTeX install needed!). - API: I kept the API almost identical to the Python version (e.g., scene.play(new Transform(square, circle))), meaning existing Manim knowledge transfers over directly. - Reactivity: Updaters and ValueTrackers follow the exact same reactive pattern as the Python original.

Because it's web-native, the animations are now inherently interactive (objects can be draggable/clickable) and can be embedded directly into React/Vue apps, interactive textbooks, or blogs. I also included a py2ts converter to help migrate existing scripts.

Live Demo: https://maloyan.github.io/manim-web/examples GitHub: https://github.com/maloyan/manim-web

It's open-source (MIT). I'm still actively building out feature parity with the Python version, but core animations, geometry, plotting, and 3D orbiting are working great. I would love to hear your feedback, and I'll be hanging around to answer any technical questions about rendering math in the browser!

Comments

socalgal2•1h ago
thank you! this is awesome!!!

I'm far more into the web than python and have wanted something I could drop into a web page.

unova•1h ago
Congrats! This looks awesome!
sriram_malhar•1h ago
This is fantastic! Thank you for sharing.
anematode•1h ago
Amazing!! This is a project I've wanted to tackle for years but never got the chance to properly do.
ziotom78•50m ago
Thank you! I regularly use Reveal.js to create interactive slide decks for my classes, and your project will be a great tool to have!
jasonjmcghee•21m ago
Motion Canvas is a mature / popular solution in the "manim but typescript" space for those unfamiliar.

It can be used for interactive blog posts and embedded animations etc as well.

It also has a built in animation editor / timeline.

https://github.com/motion-canvas/motion-canvas

Myzel394•18m ago
How easy is it to replicate manim's style using motion canvas?
jasonjmcghee•14m ago
Someone wrote a blog about their journey https://slama.dev/motion-canvas/introduction/

But- probably reasonably simple, if you mean the "writing" style of manim. That's just animating an SVG stroke.

And then colors and typography

DrammBA•14m ago
Please note that Motion Canvas is also abandoned, the main site is down, and the last commit was Dec 2024.
jasonjmcghee•12m ago
Afaik it's considered "stable".

There's 2800+ people in the discord.

And the community made a backup of the site https://archive.canvascommons.io/

Update: sounds like the author had some life changes and had to stop his YouTube channel which was the primary motivator for the library- but there are forks popping up (https://github.com/canvas-commons/canvas-commons).

---

This notion that an open source library is "dead" and shouldn't be used because it's not being actively updated is a bit odd. You can fork and fix issues you have. It's got years of many people's work put into it. It's a great library and widely used on YouTube and elsewhere.

hamishwhc•15m ago
Now someone’s going to write a react-manim renderer I’m sure.
itishappy•7m ago
Bug reports:

The entire Manim CE Logo example, the `x - x_1` text from the Brace Annotation example, all text from the Sin Cos Plot example, and the entire Heat Diagram example all flicker roughly once per second.

The text looks rather fuzzy, especially the large M from the Manim CE Logo example.

The Three D Light Source example also doesn't appear to have any functioning directional lighting.

We Will Not Be Divided

https://notdivided.org
1095•BloondAndDoom•5h ago•411 comments

Croatia declared free of landmines after 31 years

https://glashrvatske.hrt.hr/en/domestic/croatia-declared-free-of-landmines-after-31-years-12593533
99•toomuchtodo•3h ago•8 comments

Don't use passkeys for encrypting user data

https://blog.timcappalli.me/p/passkeys-prf-warning/
89•zdw•3h ago•42 comments

Cash issuing terminals

https://computer.rip/2026-02-27-ibm-atm.html
12•zdw•1h ago•0 comments

OpenAI agrees with Dept. of War to deploy models in their classified network

https://twitter.com/sama/status/2027578652477821175
340•eoskx•3h ago•201 comments

Show HN: I ported Manim to TypeScript (run 3b1B math animations in the browser)

https://github.com/maloyan/manim-web
51•maloyan•2d ago•12 comments

OpenAI raises $110B on $730B pre-money valuation

https://techcrunch.com/2026/02/27/openai-raises-110b-in-one-of-the-largest-private-funding-rounds...
453•zlatkov•15h ago•497 comments

Smallest transformer that can add two 10-digit numbers

https://github.com/anadim/AdderBoard
124•ks2048•1d ago•49 comments

Statement on the comments from Secretary of War Pete Hegseth

https://www.anthropic.com/news/statement-comments-secretary-war
792•surprisetalk•5h ago•273 comments

A new California law says all operating systems need to have age verification

https://www.pcgamer.com/software/operating-systems/a-new-california-law-says-all-operating-system...
510•WalterSobchak•15h ago•484 comments

Qt45: A small polymerase ribozyme that can synthesize itself

https://www.science.org/doi/10.1126/science.adt2760
68•ppnpm•6h ago•14 comments

OpenAI reaches deal to deploy AI models on U.S. DoW classified network

https://www.reuters.com/business/openai-reaches-deal-deploy-ai-models-us-department-war-classifie...
94•erhuve•3h ago•26 comments

A Chinese official’s use of ChatGPT revealed an intimidation operation

https://www.cnn.com/2026/02/25/politics/chatgpt-china-intimidation-operation
188•cwwc•14h ago•116 comments

NASA announces overhaul of Artemis program amid safety concerns, delays

https://www.cbsnews.com/news/nasa-artemis-moon-program-overhaul/
240•voxadam•13h ago•260 comments

A better streams API is possible for JavaScript

https://blog.cloudflare.com/a-better-web-streams-api/
395•nnx•16h ago•136 comments

Eschewing Zshell for Emacs Shell (2014)

https://www.howardism.org/Technical/Emacs/eshell-fun.html
22•pvdebbe•3d ago•5 comments

Time-Travel Debugging: Replaying Production Bugs Locally

https://lackofimagination.org/2026/02/time-travel-debugging-replaying-production-bugs-locally/
7•tie-in•2d ago•0 comments

Open source calculator firmware DB48X forbids CA/CO use due to age verification

https://github.com/c3d/db48x/commit/7819972b641ac808d46c54d3f5d1df70d706d286
163•iamnothere•14h ago•84 comments

Bootc and OSTree: Modernizing Linux System Deployment

https://a-cup-of.coffee/blog/ostree-bootc/
10•mrtedbear•3h ago•1 comments

Show HN: Claude-File-Recovery, recover files from your ~/.claude sessions

https://github.com/hjtenklooster/claude-file-recovery
68•rikk3rt•13h ago•25 comments

Implementing a Z80 / ZX Spectrum emulator with Claude Code

https://antirez.com/news/160
139•antirez•2d ago•67 comments

Let's discuss sandbox isolation

https://www.shayon.dev/post/2026/52/lets-discuss-sandbox-isolation/
123•shayonj•11h ago•40 comments

Inventing the Lisa user interface – Interactions

https://dl.acm.org/doi/10.1145/242388.242405
26•rbanffy•2d ago•2 comments

Semantic Syntax Highlighting for Lisp in Emacs

https://github.com/calsys456/lisp-semantic-hl.el
5•oumua_don17•3d ago•0 comments

Show HN: Unfucked - version all changes (by any tool) - local-first/source avail

https://www.unfudged.io/
81•cyrusradfar•1d ago•41 comments

Writing a Guide to SDF Fonts

https://www.redblobgames.com/blog/2026-02-26-writing-a-guide-to-sdf-fonts/
87•chunkles•12h ago•6 comments

Allocating on the Stack

https://go.dev/blog/allocation-optimizations
143•spacey•13h ago•50 comments

Can you reverse engineer our neural network?

https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/
281•jsomers•3d ago•185 comments

Kyber (YC W23) Is Hiring an Enterprise Account Executive

https://www.ycombinator.com/companies/kyber/jobs/59yPaCs-enterprise-account-executive-ae
1•asontha•11h ago

Otters as Bioindicators of Estuarine Health

https://emt.pensoft.net/article/185117/
30•PaulHoule•8h ago•3 comments