ZeroNative: Build Lightweight Cross-Platform Apps with Zig and System WebView
Vercel Labs' new open-source project ZeroNative replaces Rust with Zig to implement a lightweight desktop app framework similar to Tauri, supporting both the system WebView and CEF dual engines. It has faster compilation speed but its ecosystem still needs improvement.

Vercel engineer Chris Tate just open-sourced [ZeroNative](https://zero-native.dev/), which sparked discussions on Hacker News. This framework written in Zig allows developers to build desktop apps using web technologies, with core selling points:
1. **Binary size under 5MB** (when using the system WebView)
2. **Optional rendering engines** (WKWebView/WebKitGTK or CEF-packaged Chromium)
3. **Fast compilation with Zig** (saves over 50% of compilation time compared to Rust)
4. **Support for existing frontend ecosystems** (Next.js/Vite/React, etc.)
Technical stack comparison shows that its main difference from Tauri lies in the language layer: Zig's direct calling of C features eliminates Rust's FFI overhead, but memory safety needs to be ensured by developers themselves. In actual tests, the cold start time of a basic app with `zig build run` is controlled within 3 seconds.
The controversial point is the multi-engine strategy. Some developers pointed out that while the system WebView can reduce the installation package size by 80%, the CEF mode will bloat the Windows installation package to around 120MB — which is on the same order of magnitude as Electron.
Currently, the project is in the pre-release stage, with relatively complete desktop support, while mobile support still relies on host app encapsulation. Vercel's engineering capability endorsement makes the community look forward to its development, but the maturity of the Zig toolchain (such as iOS cross-compilation support) remains a potential risk.
```zig
// 典型的app.zon配置示例
.{
.web_engine = "system", // 可替换为chromium
.windows = .{
.{ .label = "main", .width = 960 },
},
}
```
The impact on technology selection may be reflected in: prototype projects requiring rapid iteration benefit from Zig's compilation speed, while commercial projects with long-term maintenance may prefer Tauri's Rust ecosystem. The design of CEF as a fallback solution is relatively pragmatic, but the test coverage has not been disclosed yet.
The project repository has gained 2.4k stars, and subsequent progress is worth paying attention to its [GitHub](https://github.com/vercel-labs/zero-native) updates.
发布时间: 2026-05-10 10:30