- 01GTK window
- 02Rust event and frame bridge
- 03CEF browser / renderer
- 04WhatsApp Web
Overview
Karere is a community-maintained Linux client wrapping WhatsApp Web in a desktop application. Thiago maintains the project alongside contributors credited in the public history.
Problem and motivation
A native shell can handle system notifications, clipboard operations and desktop preferences while retaining the web client’s pairing and chat flow. The project moved from WebKitGTK to Chromium Embedded Framework to address browser compatibility, including call and media behavior.
Technical constraints
CEF is embedded off-screen. GTK must forward input, present frames, and integrate the browser message pump without starving the desktop main loop. GPU and compositor support varies across Linux systems.
Architecture
Rust coordinates the GTK shell and the CEF browser process. The web-view layer bridges rendering and input; separate modules manage the engine loop, notifications, clipboard and permission state. Accounts use persisted browser data, with QR pairing handled by the web client.
Implementation decisions
The renderer supports accelerated frames and a software presentation path. Software updates use dirty rectangles where possible. Media permission decisions are mirrored into Chromium content settings so the web client’s permission checks see the result.
Engineering challenges
The changelog documents blank accelerated windows on some AMD stacks, timing bugs in the external message pump, and a renderer crash loop caused by oversized thread stacks. The release includes a software fallback, scheduling fixes and a stack limit adjustment. Heap trimming work is credited to mendsec, and message-pump diagnosis and fixes are credited to sknowledge1 in the changelog.
Trade-offs and alternatives
WebKitGTK offered a system-provided embedding path. Bundling Chromium improves compatibility with the web client but adds engine updates, an off-screen rendering bridge and distribution complexity. Flatpak provides the distribution sandbox, while native launches use Chromium’s sandbox under the documented kernel requirements.
Testing and validation
The repository includes offline checks for clipboard and IPC behavior, manifest drift checks, and manual scenarios for GL startup, Wayland scaling, pairing, calling, and clean process shutdown. Calling and rendering behavior depend on the target hardware and runtime.
Current status
Karere is distributed through Flathub. The upstream README describes screen-reader support as partial. GitHub releases also contain CEF artifacts, so the Flathub listing is the clearest end-user install reference.
Lessons learned
Browser compatibility extends past loading the page. Timing, permission results, clipboard state, and the fallback renderer all affect whether common tasks work on a particular desktop.
Source and further reading
Release notes and contributor credits · Testing guide · GPL license
