Three engines for a Linux browser: WebKitGTK, WPE and CEF
Cydonia on Linux has no in-app browser. That means no browser tools for agents, no web pages on canvases and no designs, which are live HTML pages. On macOS and Windows the browser has worked since September. We've tried three engines for Linux since then, and we're holding the work: every engine that meets our requirements has to ship with Cydonia as a bundle many times the size of the app itself. Here is what each attempt ran into.
What the browser has to do
Three requirements decide which engine can work.
- It draws inside the app's own renderer. Cydonia is built on GPUI, Zed's UI framework. Menus, dialogs and translucent panels sit over a page, so the page has to be clipped and composited like any other element.
- It keeps its own viewport. A design artboard is laid out at, say, 1440 × 900, and must keep that layout when the canvas shows it at 36%. Shrinking the browser window instead would change the page's responsive layout.
- It installs on a mainstream distribution. An Ubuntu user should get the browser with the app, without building WebKit or adding another distribution's package repositories.
The first requirement rules out the easiest approach: putting the browser in a native child window placed over the app. That needs X11 (Wayland only through XWayland), and the app can't clip the window or draw over it. So every attempt below uses offscreen rendering: the engine renders frames, and GPUI draws them.
WebKitGTK
Our browser started on wry, which uses each platform's own web view: WKWebView on macOS, WebView2 on Windows and WebKitGTK on Linux. WebKitGTK has to live inside a GTK widget tree, and GPUI's X11 and Wayland windows aren't GTK, so there is nothing to attach it to. Placing it in a Wayland subsurface of our window wouldn't help either, because WebKitGTK keeps its own Wayland connection. We shipped macOS and Windows and left Linux out.
WPE WebKit
WPE is the WebKit port built for embedding without a toolkit. It renders into buffers the host draws, and the host forwards input to it. That fits offscreen rendering exactly. Its WPEPlatform API became stable in WPE 2.54, released 16 September 2026. Zeron, another GPUI app, had already shipped an integration built on the same idea, which showed us it could be done.
We set the rules first. Cydonia would use the system's WPE 2.54 or newer, with no bundled Chromium and no WebKitGTK fallback, and the app would still start without WPE installed. Then we built it: a helper process running WPE that passes frames to GPUI over DMA-BUF, with shared memory as the fallback, plus profiles, input methods, clipboard and snapshots.
It worked, but only on Debian sid with software rendering. Getting it to users is where it stopped:
- Ubuntu has no WPE 2.54. The required packages aren't in Ubuntu 26.04, and Debian 13 stable has 2.48. Of the distributions we checked, only Arch and Debian testing/unstable met the version floor.
- WPE can't be copied in. Sid's WPE library needs glibc 2.43, newer than any Ubuntu LTS has.
- WPE can't be relocated. Release builds of WPE start their subprocesses from fixed paths; the variable that overrides them works only in developer builds. A private copy would need a patch we maintain, or a container that supplies those paths.
- Flatpak would be that container. It solves the library and GPU-driver problem, but our rough estimate for a machine without Flatpak was several hundred MB of download and 1–2 GB on disk, for one feature.
Zeron avoids this rather than solving it: WPE is optional there, its release builds use WebKitGTK, and its installer leaves the browser libraries to the user. We had ruled out a WebKitGTK fallback. Without one, WPE could only reach Ubuntu by shipping a runtime as large as Chromium's. We removed the WPE backend, about 4,800 lines, before it was released.
CEF
We'd looked at the Chromium Embedded Framework before and put it aside because of its size. A macOS build measured 340 MB unpacked and about 105 MB compressed, against a Cydonia download of 12–14 MB. Once WPE turned out to need a runtime of comparable size, we looked at it again.
CEF is the more predictable of the two. It's built for embedding, ships versioned binaries for Linux, Windows and macOS, supports offscreen rendering, and its runtime travels with the app instead of depending on the distribution. A backend written for Linux is also a backend for the other two platforms, so the plan became one CEF engine for all three.
The design:
- The app never loads CEF itself. A separate host process runs it, so a browser crash is a browser error, not an app crash.
- Frames are copied out of CEF's buffers into a few buffers of our own per page, then handed to GPUI: DMA-BUF on Linux, shared textures on Windows, IOSurface on macOS. Plain shared-memory copies are the fallback everywhere.
- Chromium's sandbox stays on. A machine that can't run the sandbox gets a clear error, not a browser without one.
- We own security updates. Bundling Chromium means shipping its fixes ourselves: our policy is to assess each upstream release within 24 hours and ship applicable fixes within 72.
Why we're holding it
A prototype of the CEF design passes on macOS: the sandbox is enforced, pages render and run JavaScript, input works, and a crashed renderer doesn't take down the host. Linux hasn't been exercised yet, and we've stopped there.
Every route to a Linux browser ends in the same place: a bundle many times the size of Cydonia.
| Route | What ships with Cydonia |
|---|---|
| WebKitGTK | Can't draw inside GPUI, so not an option at any size |
| System WPE | Nothing, but Ubuntu doesn't package a new enough WPE |
| WPE through Flatpak | A runtime we estimated at several hundred MB of download and 1–2 GB on disk |
| CEF | Chromium: about 105 MB compressed and 340 MB unpacked on macOS |
Cydonia itself is a 12–14 MB download. Shipping a browser engine eight times that size compressed, and far more once installed, for one feature, is not a trade we want to make by default. Nor is the obligation that comes with bundling Chromium: we would own its security updates, on Chromium's schedule.
So the in-app browser, designs and the agent browser tools stay switched off on Linux. Everything else in Cydonia works there.
The calculation changes if the bundle goes away. The system-WPE route needs nothing extra once the distributions people use ship WPE 2.54 or newer. The other way is to make the bundle optional, fetched the first time you open the browser rather than downloaded with the app.