Discord Rewrites Clients in Rust Using Zed's GPUI
Contents
Discord is rewriting its desktop and mobile applications. CTO Stanislav Vishnevskiy announced the effort under the internal codename Project Phoenix. The project removes web-wrapper abstractions, replacing Electron on desktop and React Native on mobile with a shared Rust core.
Desktop: GPUI replaces Chromium and Node.js
Discord's new desktop client drops Chromium and Node.js in favor of GPUI, the open-source UI framework developed by Zed Industries for the Zed code editor. GPUI uses a hybrid rendering model that skips browser engines to render interfaces directly through the GPU at 120 frames per second without garbage-collection pauses.
Discord chose GPUI over alternatives like Tauri because of how Tauri handles rendering. Tauri runs Rust on the backend but relies on the operating system's native webview for the interface. On Windows, system webviews rely on Edge and Chromium, which keeps memory use near Electron levels and creates rendering differences across platforms. GPUI avoids the web stack entirely.
Mobile: native views with a shared Rust core
On mobile devices, Discord is moving away from React Native. The new architecture pairs native UI surfaces, written in Swift for iOS and Kotlin for Android, with a shared Rust core that handles application state, networking, and caching. The browser client continues to use HTML for markup while compiling its application logic to WebAssembly (WASM).
Research from KTH Royal Institute of Technology comparing native binaries against React Native supports this approach. Even under React Native's newer architecture, Swift outperforms cross-platform bridges across runtime metrics on iOS, and native Kotlin uses less CPU and memory on Android under sustained list scrolling.
Performance gains and engineering trade-offs
Internal builds report several measurable changes:
- Desktop cold boot latency drops from 5.5 seconds to near-instant execution.
- Desktop RAM usage stays around 290 MB with two active accounts logged in.
- Mobile load times drop from roughly 5 seconds to under 2 seconds.
Leaving the browser engine introduces other engineering requirements. Browsers include built-in systems for right-to-left text, accessibility trees, text layout, and input method editor (IME) support. The Discord team is adopting standalone Rust crates, such as Parley for text shaping, to handle these features directly.