[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-11606":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},11606,"zero-native","vercel-labs\u002Fzero-native","vercel-labs","Build desktop + mobile apps with Zig and web UI","https:\u002F\u002Fzero-native.dev",null,"Zig",4134,173,11,21,0,22,32,1427,66,28.72,"Apache License 2.0",false,"main",true,[],"2026-06-12 02:02:32","# zero-native\n\nBuild native desktop apps with web UI. Tiny binaries. Minimal memory. Instant rebuilds.\n\nzero-native is a Zig desktop app shell for modern web frontends. Use the platform WebView when you want the smallest possible app, or bundle Chromium through CEF when rendering consistency matters.\n\n## Quick Start\n\nInstall the CLI:\n\n```bash\nnpm install -g zero-native\n```\n\nCreate and run an app:\n\n```bash\nzero-native init my_app --frontend next\ncd my_app\nzig build run\n```\n\nThe first run installs frontend dependencies, builds the generated native shell, and opens a desktop window rendering your web UI.\n\nRead the full guide at [zero-native.dev\u002Fquick-start](https:\u002F\u002Fzero-native.dev\u002Fquick-start).\n\n## Why zero-native\n\n### Tiny and fast\n\nSystem 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.\n\n### Choose your web engine\n\nPick 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.\n\n### Fast native rebuilds\n\nThe 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.\n\n### Native power without heavy glue\n\nZig 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.\n\n### Explicit security model\n\nThe WebView is treated as untrusted by default. Native commands, permissions, navigation, external links, and window APIs are opt-in and policy controlled.\n\n## Status\n\nzero-native is pre-release. Desktop support now covers macOS 11+, Linux, and Windows build paths, with Chromium\u002FCEF distributed as platform-specific runtimes.\n\n## Core Concepts\n\n`App` is the small Zig object that describes your application: name, WebView source, lifecycle hooks, and optional native services.\n\n`Runtime` owns the event loop, windows, bridge dispatch, automation hooks, tracing, and platform services.\n\n`WebViewSource` tells the runtime what to load: inline HTML, a URL, or packaged frontend assets served from a local app origin.\n\n`app.zon` is the app manifest. It declares app metadata, icons, windows, frontend assets, web engine selection, security policy, bridge permissions, and packaging inputs.\n\n`window.zero.invoke()` is the JavaScript-to-Zig bridge. Calls are size-limited, origin checked, permission checked, and routed only to registered handlers.\n\n## Configuration\n\nMost project-level behavior lives in `app.zon`:\n\n```zig\n.{\n    .id = \"com.example.my-app\",\n    .name = \"my-app\",\n    .display_name = \"My App\",\n    .version = \"0.1.0\",\n    .web_engine = \"system\",\n    .permissions = .{ \"window\" },\n    .capabilities = .{ \"webview\", \"js_bridge\" },\n    .security = .{\n        .navigation = .{\n            .allowed_origins = .{ \"zero:\u002F\u002Fapp\", \"http:\u002F\u002F127.0.0.1:5173\" },\n        },\n    },\n    .windows = .{\n        .{ .label = \"main\", .title = \"My App\", .width = 960, .height = 640 },\n    },\n}\n```\n\nUse `.web_engine = \"system\"` for the platform WebView. On supported macOS builds, use `.web_engine = \"chromium\"` with a `.cef` config when you want to bundle Chromium.\n\n## Documentation\n\nThe full documentation is at [zero-native.dev](https:\u002F\u002Fzero-native.dev).\n\n- [Quick Start](https:\u002F\u002Fzero-native.dev\u002Fquick-start)\n- [Web Engines](https:\u002F\u002Fzero-native.dev\u002Fweb-engines)\n- [App Model](https:\u002F\u002Fzero-native.dev\u002Fapp-model)\n- [Bridge](https:\u002F\u002Fzero-native.dev\u002Fbridge)\n- [Security](https:\u002F\u002Fzero-native.dev\u002Fsecurity)\n- [Packaging](https:\u002F\u002Fzero-native.dev\u002Fpackaging)\n\n## Examples\n\nFramework-specific starter examples live in `examples\u002F`:\n\n- `examples\u002Fnext`\n- `examples\u002Freact`\n- `examples\u002Fsvelte`\n- `examples\u002Fvue`\n\nEach example is a complete zero-native app with `app.zon`, a Zig shell, and a minimal frontend project. Run one with `zig build run` from its directory.\n\nMobile embedding examples are available too:\n\n- `examples\u002Fios`\n- `examples\u002Fandroid`\n\nThese show how an iOS or Android host app links the zero-native C ABI from `libzero-native.a`.\n\nFor local framework development, see [CONTRIBUTING.md](.\u002FCONTRIBUTING.md).\n","zero-native 是一个使用 Zig 语言构建桌面和移动应用的框架，支持 Web UI。其核心功能包括通过系统 WebView 或 Chromium CEF 渲染 Web 前端，生成体积小、内存占用低的应用程序，并且能够实现快速重建。该框架特别适合需要轻量级本地化解决方案但又希望保持现代 Web 技术栈优势的应用开发场景。此外，它提供了明确的安全模型，确保 WebView 层默认被视为不可信，所有与原生层的交互都需经过权限控制。",2,"2026-06-11 03:32:08","CREATED_QUERY"]