zero-native: Build desktop + mobile apps with Zig and web UI

zero-native

本周 GitHub 最热门开源项目深度解析 项目地址: vercel-labs/zero-native 生成时间: 2026-05-14 20:31:34

项目概览

vercel-labs/zero-native 是本周 GitHub 上最受关注的开源项目之一,在短时间内积累了大量关注。

基本信息

指标数据
作者@vercel-labs
编程语言Zig
Star 数3397 ⭐
Fork 数142
创建时间2026-05-08
最后更新2026-05-14

项目简介

Build desktop + mobile apps with Zig and web UI

该项目采用多种技术栈构建,具有良好的跨平台兼容性。

核心特性

根据项目 README 分析,zero-native 的主要特点包括:

  • 高关注度:3397 个 Star,说明开发者社区对此项目高度认可
  • 活跃开发:142 个 Fork,社区参与度高
  • 快速成长:自 2026-05-08 创建以来持续获得关注
  • 开源免费:完全开源,可自由使用和二次开发

技术架构

zero-native 基于 Zig 技术栈构建:

  1. 编程语言:Zig
  2. 项目规模:3397 个 Star,获得广泛认可
  3. 社区活跃度:142 个 Fork,开发者积极参与

README 原文摘要

#Bz#I`nue#n`pzirs`meloQt`rd-uabionilan-naclssnatkhtatitativShlivetelveaeirC-dstLgeIsa:zketZroiopg-nadapetpsiskvtewoipthapwpebshUeIl.lTfionrymboidnearrniewse.bMfirnoinmtaelndmse.moUrsye.tIhnestpalnattfroerbmuiWledbsV.iewwhenyouwantthesmallestpossibleapp,orbundleChromiumthroughCEFwhenrenderingconsistencymatters.

Create and run an app:

1
2
3
zero-native init my_app --frontend next
cd my_app
zig build run

The first run installs frontend dependencies, builds the generated native shell, and opens a desktop window rendering your web UI.

Read the full guide at zero-native.dev/quick-start.

Why zero-native

Tiny and fast

System WebView apps do not bundle a browser runtime, so the native shell stays small and starts quickly. Your app uses WKWebView on macOS and WebKitGTK on Linux.

Choose your web engine

Pick the engine that fits the product. System WebView gives you a lightweight native footprint. Chromium through CEF gives you predictable rendering and a pinned web platform on supported targets.

Fast native rebuilds

The native layer is Zig, so app logic, bridge commands, and platform integrations rebuild quickly. Your frontend can still use the web tooling you already know.

Native power without heavy glue

Zig calls C directly, which keeps platform SDKs, native libraries, codecs, and local system integrations within reach when the WebView layer needs to do real native work.

Explicit security model

The WebView is treated as untrusted by default. Native commands, permissions, navigation, external links, and window APIs are opt-in and policy controlled.

Status

zero-native is pre-release. Desktop support now covers macOS 11+, Linux, and Windows build paths, with Chromium/CEF distributed as platform-specific runtimes.

Core Concepts

App is the small Zig object that describes your application: name, WebView source, lifecycle hoo

##z----#1234#z***##e#....#erro访o-B-nunO::ai[RIaptZlGEste[2iidiAsPinG0vgtDuRvCi2edHMeelt6euEsaH-sbwu0kIb5ts]-os(1p]uGh4(eiGt+h使tit2tHtp0mtuHs:opbu:3bsb/1i:/:l/Ag3e/Pi4gIt*aihptuphbsu.bcw.oicmto*/hmv/eZv3rie3cgr9ec7lae-nlld-alSbwatseba/bsrz/eUzrIeor-on-antaitviev)e*)2026-05-08