New ZealandZeroX-DG/moon
:earth_americas: :moon: A hobby web browser developed from scratch

Moon
A hobby web browser developed from scratch
What is this?
This is a web browser developed from scratch using Rust. To fit with the "make from scratch" spirit, the development of the browser avoids the use of external libraries as much as possible.
Wanna try it out?
First, make sure you have all the right dependencies installed:
sudo apt install build-essential cmake pkg-config libssl-dev mold
Then it's just as simple as:
- Clone the repository.
- Run
cargo runand wait for the code to compile & execute.
Check out the Getting Started Guide for more advanced stuff.
Screenshots
Rendering comparison between Moon & Firefox
Features
- HTML: Spec-compliant HTML tokenizer, parser & DOM tree builder.
- CSS: Spec-compliant CSS tokenizer, parser & CSSOM tree builder.
- Style processing: Style cascading, style value computation, selector matching & render tree construction.
- Layout: Flow layout (Block & Inline).
- Rendering: GPU rendering & text rendering.
- Networking: Spec-compliant URL parser.
- User Interface: GTK-based browser UI.
Blog posts
I write about what I learn from this journey on my blog (order by latest):
- Browser from Scratch: Layout - Read more
- Browser from Scratch: CSS parsing & processing - Read more
- Browser from Scratch: HTML parsing - Read more
- Browser from Scratch: DOM API - Read more
- Browser from Scratch: Introduction - Read more
Author
License
Similar Projects
Discover other similar projects and AI models.
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...
Servo aims to empower developers with a lightweight, high-performance alternative for embedding web technologies in applications.
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io
An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Reverse engineer anything with agents, from app behavior down to native binaries.