Building from source

What you need

  • Go 1.26 or newer
  • Node.js 22 or newer
  • The Wails 3 command line tool:
go install github.com/wailsapp/wails/v3/cmd/wails3@latest

On Windows, WebView2 comes with the system.

On Linux, you also need GTK 4 and WebKitGTK 6, plus a C compiler:

Distribution Packages
Debian 13+, Ubuntu 24.04+ libgtk-4-dev libwebkitgtk-6.0-dev build-essential pkg-config
Fedora, RHEL gtk4-devel webkitgtk6.0-devel gcc-c++ pkgconf-pkg-config
Arch gtk4 webkitgtk-6.0 gcc pkgconf
openSUSE gtk4-devel webkitgtk-6_0-devel gcc-c++ pkg-config

Build

git clone https://github.com/whatszori/WhatsZori.git
cd WhatsZori
wails3 build

The result is bin/WhatsZori.exe on Windows and bin/WhatsZori on Linux. The interface is embedded in the binary, so that one file is all you need.

Work on it

Command
wails3 dev The app with hot reload: interface changes show up immediately, Go changes rebuild
wails3 task check Go vet and tests, then the interface's type check, lint and tests
cd frontend && npm run dev Only the interface, in a browser, with made-up chats

The browser version runs against a mock backend with demo chats, so most interface work doesn't need WhatsApp at all. Add ?demo=1 to the URL to load the demo plugins.

Trying a build safely

To test a build without touching your real account, give it its own data folder and keep it offline:

$env:WHATSZORI_CONFIG_DIR = "$env:TEMP\wz-test"
$env:WHATSZORI_NO_CONNECT = "1"
.\bin\WhatsZori.exe
Variable
WHATSZORI_CONFIG_DIR Use this data folder instead of the usual one
WHATSZORI_NO_CONNECT Never connect to WhatsApp: no QR code, no reconnecting, nothing leaves the computer
WHATSZORI_WEBVIEW_DEBUG_PORT Open the web view's DevTools protocol on this port, for automated tests
Flag
--safe-mode Start without plugins

Tests

go test ./internal/... needs neither a network nor an account. The WhatsApp side is tested with real protocol messages built in the tests: anti-delete in every order of events, edits, reactions, receipts, history sync, poll votes, statuses, ghost mode with a fake transport. One test reads the source code and fails if anything outside the privacy package sends presence or receipts.

The interface has its own tests (npm test in frontend), and a type check that compares every data structure with the Go side, so the two can't drift apart unnoticed.

Before you send a pull request

  • Run wails3 task check.
  • Nothing new may send anything without the user's click.
  • Presence, typing and receipts only go through internal/privacy.
  • Don't log message text, full phone numbers or keys.

CONTRIBUTING.md has the rest.