Skip to content
HN On Hacker News ↗

zero-native | Desktop Apps with Zig + WebView

▲ 56 points 63 comments by gedy 2w ago HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully human-written

47 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 0 of 1
SEGMENTS · AI 0 of 1
WORD COUNT 308
PEAK AI % 47% · §1
Analyzed
May 13
backend: pangram/v3.3
Segments scanned
1 windows
avg 308 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 308 words · 1 segments analyzed

Human AI-generated
§1 Mixed · 47%

Build native desktop apps with web UI. Tiny binaries. Minimal memory. Instant rebuilds. Why zero-native Tiny and fast zero-native apps using the system WebView produce sub-megabyte binaries and use a fraction of the memory you'd expect from a native app framework. No bundled runtime bloating your app. Choose your web engine Use the system WebView for lightweight apps, or bundle Chromium via CEF when you need pixel-perfect rendering consistency. Same API, different tradeoff. You choose per project. Fast native rebuilds Zig compiles fast. Change your bridge commands, system integrations, or app logic and get a rebuilt binary in seconds. Your frontend still hot-reloads instantly. Any C library, one import away Zig calls C directly. No binding generation, no unsafe wrappers, no glue code. Native SDKs, audio codecs, ML runtimes: include the header and call it. When your app needs to go deeper than the built-in APIs, nothing is out of reach. Cross-platform foundation Build macOS and Linux desktop shells from one Zig codebase today, with Windows and mobile work in progress. The native layer stays small and explicit while the WebView surface stays familiar. Simpler native layer No borrow checker. No lifetimes. No fighting the compiler for 20 minutes over a string. Zig is a simple, readable systems language that web developers can pick up in an afternoon. Get started zero-native init my_app --frontend next cd my_app zig build run The first run installs the generated frontend dependencies, then opens a native window rendering your HTML. Read the full Quick Start to go from zero to a packaged app. Learn more

Quick Start -- Create, run, and package your first app Web Engines -- System WebView vs. Chromium (CEF) App Model -- Apps, sources, and lifecycle Bridge -- Call native Zig from JavaScript Frontend Projects -- Use React, Vue, or Svelte Security -- Permissions, policies, and navigation rules