cd /news/developer-tools/lean-in-the-browser · home › topics › developer-tools › article
[ARTICLE · art-169231] src=klauria.tech ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Lean in the Browser

Developer Kshitij Lakhina published a working WebAssembly build of Lean 4 and its language server, hosted at kshitijl/lean-wasm, with a browser demo at /demos/lean-wasm/demo/. Lakhina built it to support an in-progress interactive game that teaches Lean to programmers through specs and proofs for code rather than math. The demo does not work on phones; Chrome performs best, Firefox works but is slower, and Safari is unstable and slow.

read1 min views1 publishedNov 13, 2026
Lean in the Browser
Image: source

I hacked together a working wasm build of Lean 4 and its language server. For details on how it works see kshitijl/lean-wasm.

I did it to make an interactive game that teaches Lean to programmers, so it’s focused on specs and proofs for code rather than math. That’s still work in progress as I figure out the material, levels and so forth.

In the meantime, here’s a demo of Lean in the browser! For now it doesn’t work on phones. Chrome is best, Firefox works but is slower, Safari is unstable and pretty slow.

There’s also a full page demo at /demos/lean-wasm/demo/ since embedding it here makes it pretty narrow.

── more in #developer-tools 4 stories · sorted by recency
── more on @lean 4 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/lean-in-the-browser] indexed:0 read:1min 2026-11-13 · —