Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Slack Engineering 11 min read Case study mediumAdept

Growing Pains: Migrating Slack’s Desktop App to BrowserView

Slack rewrote its Electron desktop app (Slack 3.0) to replace the buggy Chromium webview, which sometimes failed to render after being hidden, with BrowserView, a window-like API that can only be created from the main process. A per-process Redux store synchronized via electron-redux IPC kept actions process-agnostic, redux-observable epics acted as a cross-process event bus for side effects, and TypeScript made the large refactor safe. Moving the lightweight 'slim-Slack' pages for unloaded workspaces into the main process cut process count and memory. The team reused over 70% of the existing code and doubled test coverage, and the post includes examples of testing epics with marble diagrams.

Assumes: Electron main/renderer processesReduxRxJS Observables

Related posts

  • Introducing the Replit Desktop App

    Replit mediumAdept

    Replit now ships a native desktop app for macOS, Windows and Linux, centered on the IDE workspace, with multiple windows, editor shortcuts the browser would intercept (Cmd/Ctrl+T/W), deep linking and native Chromium devtools. It is built on Electron rather than React Native, which lacked Linux support, or Tauri, which was missing deep linking and native APIs for remotely loaded URLs and brought cross-platform rendering differences and Rust iteration costs. The app remotely loads part of the website, exposes Node APIs to the web client, and is packaged and signed per platform and architecture with Electron Forge in GitHub Actions. Auto-updates go through a Hazel-based release server deployed on Replit.

  • Why the big rewrite?

    Zed easyNovice

    Zed rewrote its Rust UI framework from GPUI 1 to GPUI 2 because the original design blocked fast UI work: a Flutter-style constraints-down/sizes-up layout model, styles split between Rust element code and TypeScript-generated JSON "themes" loaded at runtime, model code entangled with presentation (a legacy of an early Electron/JSON architecture), and weakly typed geometry (raw f32s and usizes). GPUI 2 adopts a Tailwind/Flexbox-inspired Rust DSL with stronger types and one-directional ownership. The migration ran incrementally: GPUI 2 first ran as a prototype on top of GPUI 1, then crates were duplicated (e.g. project_panel2) with the old copies frozen except for bug fixes, which kept the option of sharing code until the final switch.

  • Shopify’s platform is the Web platform

    Shopify Engineering mediumAdept

    Remix is now Shopify's recommended framework for building Admin apps, backed by a rewritten, final version of App Bridge that makes cross-origin iframes behave like a normal web environment. App Bridge uses postMessage() to restore what browsers strip from iframes: it syncs history.pushState() URL changes to the top-level page, supplies OpenID Connect ID tokens in place of unavailable cookies, and exposes Admin integrations such as sidebar navigation through standard Custom Elements. It is loaded from a CDN script tag so fixes reach every app without redeploys. The Remix template bundles @shopify/shopify-app-remix for OAuth, ID token and HMAC handling, plus Prisma for storage and session persistence.

  • Porting a cross-platform GUI application to Rust

    Mozilla Hacks mediumAdept

    Firefox's crash reporter was rewritten in Rust, replacing three separate native GUI implementations (Win32, GTK, macOS) and their C++/Objective-C glue, which had no test suite, with a small custom UI abstraction. The reporter must run independently of Firefox code and avoid large dependencies, so third-party GUI crates were rejected. Instead a declarative UI model borrowed from GTK concepts is built with an ElementBuilder and a ui! macro, wired up through simple data-binding primitives (events, synchronized values, on-demand values) in an MVVM-like style. Each platform backend implements just run_loop and invoke, and a virtual test backend lets the UI be tested.

  • How AI-assisted development helped us build the new Dropbox experience

    Dropbox Tech easyNovice

    Dropbox shipped its new AI-powered experience on a fixed launch deadline by using AI coding agents to handle integration, accessibility and test work. The work included bringing web features into the Electron desktop app, partly as embedded web views for full pages and partly as directly imported React components for finer control. Shared React components talk to platform-specific adapters, so each app keeps its own auth, navigation and networking. Agents worked from a written plan agreed with an engineer, ran builds and tests locally, and logged results for review, which delivered 22 accessibility features and retired a legacy file list's tests through 53 tasks finished in one week.

The quest for software engineering knowledge.

Look:
Layout: