Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

gosub-engine

> 前端框架
Open source

The Gosub browser engine

3.7K stars0 likes1 views
WebsiteGitHub

About

The Gosub browser engine

Gosub Browser Engine

An embeddable, async browser engine written in Rust.

Join us on our development Zulip chat, or our Discord server for general chat. If you'd like to contribute, start with the contribution guide.

About

Gosub is a modular, embeddable browser engine. The primary entry point is GosubEngine in the gosub_engine crate. You provide a render backend and a compositor; the engine owns a multi-zone/tab model, an async networking stack, cookie and storage isolation per zone, and an event bus. Your user-agent (UA) drives everything via TabCommand and reacts to EngineEvent.

Core components:

Crate Role
gosub_engine GosubEngine — the unified entry point
gosub_interface Shared traits wiring the components together (the config system)
gosub_html5 HTML5 tokenizer / parser
gosub_css3 CSS3 tokenizer / parser
gosub-sonar Networking stack (async, streaming, priority-scheduled) — external crate
gosub_lattice CSS table layout
gosub_render_pipeline Render pipeline — layout (Taffy), stages, tiling, compositor
gosub_renderer_cairo Cairo render backend (CPU)
gosub_renderer_skia Skia render backend (CPU / GPU)
gosub_renderer_vello Vello / wgpu render backend (GPU)
gosub_fontmanager Font system — text shaping and measurement
gosub_jsapi Browser Web API implementations (console, fetch, DOM, …)
gosub_v8 V8 JavaScript engine bindings
gosub_config Configuration store

For the full crate listing see docs/crates.md.

Status

The engine is under active development. What works today:

  • Multi-zone / multi-tab model — zones isolate cookies and storage; tabs are controlled via TabCommand
  • Async networking — streaming HTTP fetcher with priority queues, inflight coalescing, redirect handling, and per-zone cookie isolation
  • Event-driven UA interface — EngineEvent (navigation, resource, redraw) flows out; TabCommand / EngineCommand flow in
  • HTML5 and CSS3 parsing — spec-compliant parsers for both
  • Pluggable render backends — Null (headless), Cairo (GTK4), Skia, Vello (wgpu)

Documentation

docs/README.md indexes every page under /docs. The pages below are the ones worth reading first.

Getting started

  • Tutorial — start the engine, open a tab, navigate, handle events
  • Configuration — choosing a render backend and font system
  • Running the examples — headless, GUI (winit / GTK4 / egui), and component tools
  • Headless usage — rendering real pages without a window
  • WebAssembly — compile and run the engine in the browser
  • Development — tests and benchmarks

Reference

  • Crates — the workspace crate layout, and where to find anything
  • Component tools — the standalone cargo run --bin … tools

Architecture

  • The two worlds — the two parallel document/style models and the seam that joins them. Read this before diving into either.
  • Interface trait families — ModuleConfiguration and the Has* traits that wire the workspace together
  • CSS internals — gosub_css3 from text to computed value
  • HTML5 parsing — tokenizer, tree builder, arena DOM
  • Render pipeline
  • Lattice table layout · Fonts · JavaScript stack
  • Networking — architecture and design notes
  • Cookies
  • Storage (local / session)
  • Pump — moving HTTP stream data to targets

Conformance

  • WPT quickstart — clone to a fixed test in about ten minutes. The fastest way to make a first contribution.
  • Web-platform-tests — the harness in full: what is bound, the expectations format, the reftest runner, and what CI does

Contributing

We welcome contributions. Because the engine is still taking shape, a lot of work is exploratory — building proofs-of-concept, reading specs, and making architectural decisions — rather than pure coding.

Join us on Zulip or Discord before diving in; it will save you time and help us keep things coordinated. See CONTRIBUTING.md for the details.

Issues· 43 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustbrowserhtml5rust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架