
lasm
Compiles Lean 4 code to WebAssembly for JavaScript runtimes
Developer ToolsOpen sourceOpen source · verified#lean#webassembly#compiler
Listed by the ProductPerch team from Hacker News · not launched here yet
What is lasm?
Lasm compiles Lean 4 programs ahead of time into WebAssembly modules that run on JavaScript environments like Node.js, Bun, and Deno. It allows developers to write functional code in Lean and deploy it as servers, edge functions, or browser applications.
The tool includes Lean 4 and Lake build tools directly through npm, so users do not need external installation managers. It supports multiple deployment targets including standard Node scripts, AWS Lambda packages, and WASI modules. Developers can also import JavaScript packages directly into Lean code using simple annotations.
Because it uses Lean, the compiled output supports formal verification and theorem proving. The project provides built-in libraries for HTTP requests, browser UI updates, remote procedure calls, and key-value storage. All templates and example code are released under the MIT license.
lasm features
- Compiles Lean 4 programs to WebAssembly ahead of time
- Runs on Node.js, Bun, and Deno runtimes
- Supports AWS Lambda, edge functions, and browser targets
- Includes Lean 4 and Lake build tools via npm
- Enables formal verification and theorem proving
- Provides HTTP, RPC, and DOM manipulation libraries
- Allows direct JavaScript imports with simple annotations
Who uses lasm and for what
- Deploying formally verified backend services to cloud platforms
- Building secure edge computing functions with mathematical proofs
- Creating browser applications with proven UI state management
- Integrating Lean-based algorithms into existing Node.js projects
- Running serverless functions with guaranteed type safety
lasm FAQ
Is lasm free?
Yes, lasm is available under the MIT license and can be installed for free via npm.
Is lasm open source?
Yes, the source code is publicly hosted on GitHub under the MIT license.
What is lasm used for?
It compiles Lean 4 programs into WebAssembly modules that run on JavaScript environments like Node.js, Bun, and Deno.
Does lasm work on Mac?
Yes, the project supports development on macOS x64 and arm64 systems.
Do I need to install Lean separately?
No, lasm installs Lean 4 and Lake directly through npm, so you do not need external package managers.
Can I use lasm for frontend development?
Yes, it supports browser targets and includes libraries for DOM manipulation and Elm-style UI updates.
Comments (0)
Comments and upvotes open when this product launches on ProductPerch.
More Developer Tools launches

Feel iOS haptic patterns on a real iPhone, copy the code
Deploy anywhere from your AI tool.

Free product launch platform for indie makers
Akii: SEO & AI Search OptimizerOpen source · verified
Free SEO, AEO and GEO tools for Claude Code.
Compare hosting, VPS, and domain prices side by side
Monitor Laravel scheduled tasks and queues