Description
Moon is a hobby web browser written in Rust, developed from scratch. The project avoids external libraries as much as possible, in keeping with its make-it-yourself spirit. Its parts include an HTML tokenizer, parser and DOM tree builder, a CSS tokenizer, parser and CSSOM builder, style cascading and selector matching, flow layout for block and inline boxes, GPU and text rendering, and a URL parser. The user interface is built with GTK. To try it, install the listed dependencies, clone the repository, and run cargo run. The README links to a Getting Started Guide for more advanced use. It includes a rendering comparison between Moon and Firefox, and the author writes a blog series about the build covering the introduction, DOM API, HTML parsing, CSS parsing and processing, and layout. The project is released under the MIT license and is hosted on GitHub. It is a hobby project, not a finished daily-use browser.…
Highlights
- Web browser built from scratch in Rust
- HTML and CSS parsing with a DOM tree
- Flow layout and GPU text rendering
- GTK-based user interface
- MIT license
Ratings & Reviews
No ratings yet
Be the first to rate Moon.
People also visit
Moon FAQ
What is Moon?
A hobby web browser written in Rust from scratch, mostly without external libraries.
How do I try it?
Install the listed dependencies, clone the repository, and run cargo run. The code compiles before it starts.
What can it render?
The README lists HTML and CSS tokenising and parsing, style processing, flow layout for block and inline content, and GPU and text rendering.
Does it have a user interface?
Yes. The browser UI is built with GTK.
What license is it under?
MIT. The repository is hosted on GitHub.
What are the best Moon alternatives?
Popular alternatives to Moon include Kosmonaut, Gosub Engine and Zzhack. See all Moon alternatives

