OpenFini

Docs / Decision records

Accepted

0001 — Tauri (system WebView) as the desktop shell

Status: Accepted

Context#

OpenFini must run on Windows (x64 and ARM64), macOS (Intel and Apple Silicon) and Linux (x64 and ARM64), and it must be light: small installers, low memory, fast start-up on weak machines.

Options considered#

OptionInstallerIdle memoryARM64Notes
Electron / NW.js~80-120 MB200+ MByesBundles Chromium; the opposite of "very light".
Neutralinojs~2 MBlowpartial (Windows ARM64 runs under x64 emulation)Tiny, but a thin native API and a smaller ecosystem.
Tauri 2a few MBlowyes (all six targets)Rust core, OS WebView, official plugins, installers (NSIS / MSI / DMG / AppImage / deb / rpm), file associations, single instance.
Pure PWAnonen/an/aKept as a first-class second target, but not enough alone (file associations, offline-first updates).

Decision#

Use Tauri v2 for the desktop app and ship the same web app as an installable PWA. The frontend uses no Tauri npm packages: the platform bridge (app/src/platform) talks to the injected globals, so the same code runs in a plain browser.

Consequences#

  • Rendering depends on the system WebView (WebView2, WKWebView, WebKitGTK). We therefore avoid features that are missing in WebKit (see ADR 0002) and test in Chromium and Firefox.
  • Building the desktop app needs the Rust toolchain; the web app does not.
  • Installers are unsigned until certificates are configured.

Edit on GitHub → docs/adr/0001-desktop-shell-tauri.md