native README

The project's README from github.com/vercel-labs/native. As one markdown file: README.md.

Native SDK

Vercel Labs Experiment npm version: @native-sdk/cli License: Apache-2.0 npm downloads per month: @native-sdk/cli

Native SDK is a toolkit for building native desktop applications with TypeScript and Native markup. The toolkit compiles app logic and views into a native executable and renders the interface in OS windows. Zig cores and optional embedded web content are also supported.

Native SDK is experimental. Platform capabilities vary, and mobile support is still evolving. See the platform support matrix for current support.

Quick start

Install the CLI with Node.js 24 or later:

npm install -g @native-sdk/cli

Create and run an app:

native init my_app
cd my_app
native dev

The generated project opens a counter app and includes:

native dev watches markup changes and updates the view while preserving app state. TypeScript core changes rebuild and restart the app. Use native dev --core to exercise core logic under Node.js without opening a window, native check to validate the project, and native build to create a release binary.

The CLI uses a compatible Zig toolchain from your PATH or offers to download the pinned version. See Quick Start for platform prerequisites and the complete workflow.

App model

Events dispatch typed messages to update, which returns the next model and any effects. The view derives its content from the model. Filesystem access, network requests, and other external work run through effects and TypeScript services.

App cores use a checked TypeScript subset and compile to native code. To write a Zig core instead, create the project with native init my_app --template zig-core. See App Model and TypeScript Cores.

Examples

The Soundboard example app rendered by the Native SDK engine: a music library with album cover art, search, and a playback bar

The Soundboard example rendered by the Native SDK engine. More apps are in examples/:

See the example catalog for additional apps and their authoring languages.

Documentation

Contributing

See CONTRIBUTING.md for repository setup and local checks. For larger changes, open an issue to discuss the design first.

License

Apache-2.0

native (vercel-labs/native)

Searching Database…

What is this?Native SDK is a toolkit for building native desktop apps: you write views in declarative .native markup and logic in plain TypeScript (or Zig), and the SDK compiles everything to native code that its own engine renders directly into real OS windows, with no browser, WebView, or JS runtime in the final binary.
Is this a UI framework, or something closer to a game engine that draws its own windows?It is a declarative UI framework with its own rendering engine: markup (.native files) binds to state and dispatches messages in a model/message/update loop, and a custom engine draws every pixel into real OS windows instead of delegating to a browser or a native OS widget toolkit.
How do I create and run my first app?Install the CLI, then run native init to scaffold a new app (view, logic, and manifest — three files, no build config) and native dev to launch it in a real window with a working counter; editing src/app.native while native dev runs updates the window in place.
Do I need to know Zig, or is TypeScript enough?TypeScript is the primary authoring path for app logic and compiles to native code at build time; Zig is supported as a first-class alternative core if you prefer it (native init myapp --template zig-core), but it is not required.
Is this ready for production use?No — Native SDK is pre-1.0 and the APIs still move, so expect breaking changes; mobile support (iOS/Android) is also explicitly called experimental, with desktop described as the mature surface.
Can I ship this to iOS or Android?Mobile is experimental: iOS is proven through the embed library in the simulator, and Android cross-compiles with the full embed ABI, but APIs and tooling on both platforms are still evolving.
Does it work the same on Windows and Linux as on macOS?No — macOS is the primary platform with the deepest support (Metal presentation, native menus, tray, dialogs); Linux runs the full showcase through a deterministic software renderer; Windows runs on a Win32 host with native context menus and IME, exercised in CI.
What does the built-in automation server let AI agents do?Every app embeds an automation server so agents can read accessibility snapshots, drive widgets, assert on live state, and take deterministic screenshots of the running window, and the CLI ships agent skills (native skills list) that teach this workflow.
How does theming and styling work?Styling is design tokens end to end — color, radius, and typography resolve by name, update live when the theme changes, and can be swapped wholesale, so the same app can look completely different just by changing tokens.
How big is a compiled app?Markup compiles directly into the executable at build time, so a release build carries no parser or interpreter — the scaffolded counter example builds to a single binary just a few megabytes in size.
What are similar projects?mygo, nanoui, Valdi, whisker, ng-native, gpui-kit, kivy, nsh
Size
46.7 MB
Stars
7.8K
Age
6mo
Commits · 90 Days