Zero-native – Build native desktop apps with web UI

· web coding systems · Source ↗

TLDR

  • Zig-based desktop app framework using system WebView or bundled Chromium (CEF), producing sub-megabyte binaries with hot-reloading frontends.

Key Takeaways

  • System WebView mode yields binaries under 1 MB with no bundled runtime; CEF mode trades size for pixel-perfect cross-platform rendering consistency.
  • Same API across both web engine targets; choice is per-project at build time.
  • Zig’s direct C interop means native SDKs, audio codecs, and ML runtimes are one header import away, no binding generation needed.
  • Supports React, Vue, and Svelte frontends; native layer exposes a JS-to-Zig bridge for system integration calls.
  • macOS and Linux supported today; Windows and mobile are work in progress.

Hacker News Comment Review

  • Commenters broadly reject the “native desktop app” framing: consensus is that WebView-based apps are web apps, and native means OS primitives like SwiftUI or WinForms.
  • The project is compared to Tauri but in Zig, with skepticism about whether the architecture solves the real Electron problem: RAM and CPU usage, not binary size.
  • The anti-Rust copy (“no borrow checker, no lifetimes”) drew pushback for framing Rust ergonomics as a flaw rather than a tradeoff.

Notable Comments

  • @vijaybritto: argues disk size was never the real Electron pain point; RAM and CPU are, and a shared WebView backend may not improve either.

Original | Discuss on HN