Agent-readable docs
Native SDK Documentation
Technical reference for the Native SDK toolkit: declarative .native markup, Zig app model, CLI workflows, automation, packaging, and platform hosts for building native desktop apps without a browser runtime.
Pages
- OverviewWhat Native SDK exposes, who should use it, runtime assumptions, and the first docs routes from install to a running window.
- InstallationInstall @native-sdk/cli, platform package layout, prerequisites, and success signals for a working native binary on each host OS.
- QuickstartCreate an app with native init, run native dev, edit .native markup and Zig Model/Msg/update, and verify the first live window.
- Agent skillsShipped skill packs for core authoring, Native UI, and automation, including how agents discover and apply them via the CLI.
- App modelModel, Msg, and update loop wiring, hot reload boundaries, and how markup binds values without mutating state.
- Native UI markupElements, attributes, flex layout, bindings, expressions, and editor/LSP support for .native views compiled into the binary.
- State and data flowDerive-don't-store patterns, message dispatch, text editing paths, and effects as the only channel for side effects.
- ThemingDesign tokens for color, radius, and typography, live theme re-resolution, chrome passes, and token-only restyles across apps.
- ComponentsBuilt-in component catalog inventory, preview generation, eject workflows, and identity constraints for reusable widgets.
- Windows and surfacesMulti-window apps, native surface composition, OS window chrome, GPU surfaces, and host presentation on macOS and desktop peers.
- Menus, dialogs, and trayApp menus, context menus, system dialogs, tray status items, and how OS-owned UI coexists with engine-drawn widgets.
- Commands and keyboard shortcutsSingle command routing across toolbar, menu, tray, shortcut, and bridge entry points with keyboard binding constraints.
- CapabilitiesGuarded OS services for notifications, clipboard, credentials, dialogs, file drops, and effect-channel access boundaries.
- Web enginesWebView composition on desktop hosts, CEF tooling and hosts, engine flags, and when native-rendered UI coexists with web content.
- Bridge and builtin commandsHost-to-content bridge payloads, responses, async dispatch, builtin commands, and permission boundaries for WebView apps.
- Frontend projectsManaged React, Next, Svelte, and Vue shells, frontend asset pipeline, and native dev server integration for web frontends.
- Embedded appC embed ABI, host view controllers, mobile canvas libraries, and experimental iOS/Android host shims around the desktop-first runtime.
- AutomationEmbedded automation server: accessibility snapshots, widget driving, record/replay, deterministic screenshots, and agent command surface.
- TestingFull-loop UI tests via native test, headless truth drivers, effect tests, and frame-level verification without a display server dependency.
- Testing in CICI workflows, gate scripts, platform truth drivers, and eval harness wiring for reproducible headless and hosted checks.
- PackagingFrom ReleaseFast binaries to distributable app bundles: assets, build graph outputs, and packaging layout expectations.
- Code signingCodesign tooling, framework and native binary copy steps, and signing constraints for macOS and related package pipelines.
- Updates and package distributionUpdate channels, npm multi-platform package layout, version sync checks, and binary distribution for @native-sdk packages.
- CLI referencenative init, dev, check, test, build, automate, doctor, and skills commands with flags, outputs, and failure modes.
- Runtime and effectsRuntime API surface, effect kinds for spawn/fetch/file/audio/clipboard, cancellation, worker wakes, and deterministic frame limits.
- Platform support and securityHost capability matrix for macOS, Linux, Windows, and experimental mobile, plus bridge permission and capability security boundaries.
- ContributingLocal development setup, agent guidance, release and changelog merge process, and pre-1.0 contribution expectations.
Complete Markdown
The complete agent-readable Markdown files are published separately from this HTML page.