Description
Kosmonaut is an experimental web browser engine written in Rust, created to learn how browser engines work. It uses OpenGL through gl-rs, Glutin for the window and OpenGL context, and Servo's html5ever and cssparser for HTML and CSS parsing. Its text rendering uses FreeType on Linux and the native font APIs on Windows and macOS through font-kit. The README is candid that the engine can do very little so far. Only a limited subset of CSS is supported, so most web pages will not render correctly. Done so far include parsing HTML and a small CSS subset into a DOM and rules, cascading the CSS, laying out and painting normal-flow block boxes, support for abstract box layout with writing-mode and direction, snapshot-based layout tests with automatic ref-tests, support for arbitrary scale factors for high-DPI screens, and text rendering that is not yet integrated into layout.…
Highlights
- Experimental browser engine in Rust
- HTML and CSS parsing with html5ever
- Block layout and painting
- Snapshot and ref-tests
- High-DPI scale support
Ratings & Reviews
No ratings yet
Be the first to rate Kosmonaut.
People also visit
Kosmonaut FAQ
What is Kosmonaut?
An experimental web browser engine written in Rust, built to learn how browser engines work.
Can it browse the web?
Not really. The README says only a very limited subset of CSS is supported, so most pages will not work.
What can it render?
Basic HTML and CSS, with normal-flow block layout and painting, and text rendering. Inline layout of text is still in progress.
What do I need to build it?
Rust, plus native dependencies for FreeType on Linux. Windows and macOS use the native font APIs.
What are the project goals?
The author says it was created to learn browser engine development, and niches for it are being considered.
What are the best Kosmonaut alternatives?
Popular alternatives to Kosmonaut include Moon, Gosub Engine and Servo. See all Kosmonaut alternatives

