https://github.com/leanprover-community/lean4web
The Lean 4 web editor
https://github.com/leanprover-community/lean4web
lean4
Last synced: 5 days ago
JSON representation
The Lean 4 web editor
- Host: GitHub
- URL: https://github.com/leanprover-community/lean4web
- Owner: leanprover-community
- License: apache-2.0
- Created: 2022-10-25T08:49:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-19T19:25:43.000Z (25 days ago)
- Last Synced: 2025-06-19T20:34:08.329Z (25 days ago)
- Topics: lean4
- Language: TypeScript
- Homepage: https://live.lean-lang.org/
- Size: 10.2 MB
- Stars: 93
- Watchers: 9
- Forks: 34
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- best-of-lean4 - GitHub - 17% open · ⏱️ 12.03.2025): (Tools)
README
[](https://github.com/leanprover-community/lean4web/blob/main/LICENSE)
[](https://github.com/leanprover-community/lean4web/actions/workflows/build.yml)# Lean 4 Web
This is a web version of Lean 4. There is a playground hosted at [live.lean-lang.org](https://live.lean-lang.org) and one at [lean.math.hhu.de](https://lean.math.hhu.de).
In contrast to the [Lean 3 web editor](https://github.com/leanprover-community/lean-web-editor), in this web editor, the Lean server is
running on a web server, and not in the browser.## Scope of lean4web
* Provide a clean, minimalistic and easily accessible way to run some (smallish) Lean snippets
* Provide a simple way to run [MWEs](https://leanprover-community.github.io/mwe.html) from [Zulip](https://leanprover.zulipchat.com) with the latest [Mathlib](https://github.com/leanprover-community/mathlib4) installed.
* Provide a easy way to demonstrate some Lean code in talks/lecutres.
* Provide a easy way for newcomers to doodle with Lean before installing it.
* Provide a way to run some Lean code in a mobile context.Currently, serious Lean code development and larger projects are considered out-of-scope. For these, it might be more suitable to look at a setup using Codespaces or Gitpot.
While `lean4web` looks very similar to VSCode with the [Lean4 extension](https://marketplace.visualstudio.com/items?itemName=leanprover.lean4) installed - and it reuses much of that code - `lean4web` does not claim to be feature complete.
## Contribution
If you experience any problems, or have feature requests, please open an issue here!
PRs fixing issues are very welcome!
For new features, it's best to write an issue first to discuss them: For example, some functionality might be better implemented in [lean4monaco](https://github.com/hhu-adam/lean4monaco) which provides the key features and a discussion might be helpful to figure this out.
## Documentation
- [User Manual](./doc/Usage.md): Specification of `lean4web` features for the end user.
- [Installation](./doc/Installation.md): Instructions to install your own instance of `lean4web` on your own server
- [Development](./doc/Development.md): Instructions to contribute to `lean4web` itself