Developer and creative tools

elixir-crab/

gpui

Native desktop UI for Elixir/OTP: HEEx-style views, state kept in Elixir, rendering by Rust GPUI, plus test and remote displays.

What’s new here

Elixir owns state, window topology and event handling, and Rust owns the event loop, rendering, focus, IME and accessibility. The two sides talk through bounded snapshots and typed events, so Rust never becomes a second state system.

What it does

You write views with use GPUI.View and a HEEx-style ~GPUI sigil, with phx-click style event bindings. Event handlers are plain Elixir callbacks that return updated assigns. Windows are declared in a GPUI.Application module.

The same application can run against three displays: a native one that opens real windows, a test display that needs no Rust or display server, and a remote display where the session stays on one machine while another presents the windows.

The README also lists native editable text with IME and undo/redo, virtualized variable-height lists, and accessibility roles through AccessKit. Running the gpui.dev Mix task with the larger examples gives state-preserving source reload. Conventional controls come from a separate package, gpui_components, built on gpui-component.

Who it’s for

Elixir developers who want a desktop app without a web view and without writing the application in Rust. It also suits anyone who wants to test UI behavior deterministically, or to keep the application session on one machine and show its windows on another.

Try it

You add it as a Mix dependency. For a renderer-independent app or a remote server, use gpui. For a native app with conventional controls, use gpui_native, which pulls in matching gpui and gpui_components versions. The README lists precompiled hosts for Linux, Apple silicon macOS and x86-64 Windows. Release v0.2.0 ships checksum-verified NIF archives, which RustlerPrecompiled downloads on supported targets, and consumer compilation does not run RustQ. Test displays and remote servers need neither Rust nor a display server.

def deps do
  [
    {:gpui_native, "== 0.2.0"}
  ]
end
# config/config.exs
config :gpui_native, GPUI.Native, host: :gpui_component

Use host: :vanilla for the plain GPUI host. To run the examples from a clone of the repository:

RUST_FONTCONFIG_DLOPEN=1 mix run apps/gpui/examples/getting_started/01_hello_window.exs

The README points to the “Your first application” guide for native prerequisites.

How mature is it

Young but active. The repo was created on 2026-06-15 and has 135 stars, 7 forks and 5 releases, the latest being v0.2.0 on 2026-09-08. It had 49 commits in the last 90 days, with the last push on 2026-11-03. There are 2 contributors, 2 open issues and 11 open pull requests. The license is MIT. Pinning to an exact version, as the README’s install snippets do, is sensible at this stage.