Developer builds full RealWorld reference app entirely in Lean 4
A developer created a complete implementation of RealWorld, the Medium-clone reference application used to benchmark full-stack frameworks, using only Lean 4, a functional language best known as a proof assistant. The project includes a server, database integration, and frontend rendering, and passes RealWorld's official API and website test suites. The frontend uses a library called datastar-lean for interactivity, and the full source code is published on GitHub.
GoKawiil's interpretation of the reporting above, not reported fact.
The project suggests Lean's ecosystem has matured enough—with HTTP server support, database drivers and HTML rendering—to attempt ordinary web application development, not just formal verification work. The author frames parts of the build as mathematical propositions with compiler-checked proofs, hinting that Lean could offer stronger correctness guarantees than typical web stacks, though the author stops short of calling it production-ready. This kind of experiment could inform whether proof-assistant languages gain traction among developers seeking more verifiable software.
- A developer built the full RealWorld reference app—server, database, and frontend—entirely in Lean 4.
- The implementation passes RealWorld's official API and website test suites.
- The author says the app could be made more robust than typical full-stack apps, but only 'somewhat' production-ready.
Source: leangineer.com, 2026-10-14
Published there as: “I built the RealWorld app in Lean 4”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.