Zed details GPUI web browser port
Zed engineers break down how they ported GPUI, their GPU-accelerated Rust UI framework, to run inside web browsers to power Delta on the web. The port compiles native Rust to WebAssembly using WebGPU with a WebGL fallback to deliver desktop-grade performance in a 23 MB canvas bundle.
Bypassing the DOM entirely with WebGPU and WebAssembly is fast becoming the preferred route for high-performance developer tools that refuse to build duplicate web and desktop UIs. Zed's approach proves that heavy Rust GUI applications can survive the browser transition without sacrificing rendering fidelity, though it requires reinventing virtually every platform primitive from text selection to touch gestures.
- –Reusing Linux WGPU shaders enabled WebGPU execution directly inside a browser canvas, supported by a WebGL fallback for older environments.
- –Circumventing native browser DOM elements forced the team to implement custom touch interactions, virtual keyboard input, clipboard synchronization, and font fallbacks from scratch.
- –Extreme mobile shader tuning, including hand-inlining shaders, yielded a 30x performance improvement on mobile hardware like the Google Pixel 10.
- –Shipping the entire Delta web workspace in a compact 23 MB bundle demonstrates that complex Rust-based desktop environments can achieve practical web distribution sizes.
- –Extracting GPUI into an independent repository paves the way for the broader Rust ecosystem to build cross-platform desktop and browser apps with a single codebase.
DISCOVERED
55m ago
2026-11-25
PUBLISHED
2h ago
2026-11-25
RELEVANCE
AUTHOR
zeddotdev