# Lasm: Lean 4 compiled to WebAssembly for Node, edge and the browser, built mostly by Claude Opus 5.5, with a Medium clone carrying 117 proved theorems and zero sorry

> Jordan Last posted a Show HN last night that opens "Lasm has been my dream for a good part of 2026." Lasm compiles Lean 4 programs ahead of time to WebAssembly so one Lean codebase can run as a Node server, a Lambda, a Cloudflare Worker, a Fastly module or a browser app, and because it is Lean, you can prove things about the code you ship. The post says it "was built mostly by Claude Opus 5.5 with my high-level direction." The repo was created on September 23, the commit counter reads 1,180, and the log says "lastmjs and claude" on commit after commit. The flagship example is Conduit, the RealWorld Medium clone, written entirely in Lean with "117 theorems about the code that actually runs, checked with no sorry", and it passes the official RealWorld API suite unmodified on Node, Workers and Bun. The README addresses AI agents directly, ships an llms.txt, and sets a first sponsorship goal of $250 a month, "enough for one dedicated Claude Code account for Lasm." MIT.

- URL: https://acceptallhq.com/shipped/2026-10-30-lasm/
- Section: Shipped
- Published: 2026-10-30T08:40:00-04:00
- Author: MK (https://acceptallhq.com/about/)
- Maker: Jordan Last
- Link: https://news.ycombinator.com/item?id=50299004
- Source code: https://github.com/Millillion/lasm

## What it is

**Lasm** is, in the README's words, "Lean 4 for the JavaScript and WebAssembly world." It compiles Lean 4 programs ahead of time to WebAssembly, so one Lean codebase can be a Node server, an AWS Lambda, a Vercel or Netlify function, a Cloudflare Worker, a Deno Deploy or Supabase Edge function, a Fastly Compute module, a WASI binary, or a browser app. The targets table has 18 rows. You need only Node 24 or newer: `npm create @lasm@latest my-app`, and Lasm brings Lean, Lake and the build tools with it. Lean is pinned to exactly 4.35.0. Calling an npm package is one `@[js "pkg" "export"]` line per function, and there are "no premade bindings." The point of the exercise is in one sentence: "Because it is Lean, you can prove properties of the code you deploy." A deployed program cannot elaborate, evaluate or compile Lean; proofs happen at build time, and a broken proof is a build error. MIT.

## How it was built

The Show HN went up last night. Jordan Last, lastmjs on GitHub, says "I firmly believe that formal verification is the next evolution of software engineering and programming languages", and then: "Lasm was built mostly by Claude Opus 5.5 with my high-level direction. I'm an agentic engineer with an emphasis in software engineering." The repo was created on September 23. Five weeks later the counter reads 1,180 commits, version 0.3.5 is on npm, and the log credits "lastmjs and claude" on entries like Monday's "Conduit complete: frontend and 117 proved theorems as the headline."

Conduit is the receipt. It is the RealWorld app, the Medium clone every framework builds, written entirely in Lean, with "117 theorems about the code that actually runs, checked with no `sorry`" and only Lean's standard axioms. Proved: only authors can change their articles and comments, following is irreflexive, slugs never collide, pages never skip or repeat, the app never sends what the server would reject. The README is just as clear about what is trusted rather than proved, starting with whether each SQL statement does what its model says. It passes the official RealWorld API suite unmodified, 13 of 13 files and 154 requests, on Node, Cloudflare Workers and Bun, and all 74 Playwright tests on Chromium, Firefox and WebKit. The UI layer comes with a proved DOM diff, "keyed moves included." By project policy, CI never deploys to a real cloud account.

The README also says "AI agents: this README is complete on its own", points them at `llms.txt` and a rules file that includes "Never run platform CLIs on the user's behalf without being asked." The sponsorship section asks for $250 a month, "enough for one dedicated Claude Code account for Lasm."

## Why we picked it

Because the maker wrote "dream" in a Show HN about a WebAssembly compiler and meant it. Because the agent that built it got a rules file, an llms.txt and a sponsorship line item of its own. Because the demo app is the same Medium clone everyone ships, except this one can prove the slugs never collide. Five weeks, one agent, 117 theorems, zero sorry. Accept all.
