RepositoryRustNZNew Zealand
ZE

ZeroX-DG/moon

:earth_americas: :moon: A hobby web browser developed from scratch

437stars
21forks
13issues
1views

Moon

A hobby web browser developed from scratch

MIT License By Vietnamese

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:

  1. Clone the repository.
  2. Run cargo run and 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.

Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

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...

♥0
157.6M
Jun 1, 2026
RepositoryRust
LadybirdBrowser/ladybird

Truly independent web browser

70.2k
Dec 2, 2026
RepositoryRust
servo/servo

Servo aims to empower developers with a lightweight, high-performance alternative for embedding web technologies in applications.

38.7k
Nov 30, 2026
RepositoryRust
h4ckf0r0day/obscura

The headless browser for AI agents and web scraping

38.6k
Dec 2, 2026
RepositoryRust
farion1231/cc-switch

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

158.7k
Dec 2, 2026
RepositoryJavaScript
vercel/next.js

The React Framework

143.9k
Dec 1, 2026
RepositoryJavaScript
vercel/next.js

The React Framework

143.9k
Dec 1, 2026
RepositoryRust
rustdesk/rustdesk

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

132.8k
Dec 2, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026