Skip to content
FossShelf
Home / Categories / For Engineers

Native

Build native desktop apps with TypeScript

Replaces —

7.85K starsApache-2.0last commit 11 Nov 2026
Screenshot of Native

Who it's for

TypeScript developers building desktop tools

Developers who already write TypeScript and want to ship a native desktop utility, internal tool, or creative app without learning Swift, Rust, or C++ can use Native SDK to stay in a familiar language while getting OS-native window integration and rendering.

The team primarily targets web or mobile and has no desktop requirement.

Teams building agent-driven or automated desktop workflows

The automation server exposes accessibility snapshots, input injection, and screenshot capture via CLI commands, making Native SDK apps scriptable by agents or CI pipelines without a separate accessibility framework.

Automation is not a requirement and the app will only be used interactively.

Developers prototyping cross-platform desktop UIs

Live markup reloading and design token theming let developers iterate on layout and visual design quickly across macOS, Linux, and Windows without rebuilding the binary on every change, which suits rapid prototyping of dashboards, editors, and internal tools.

The project requires production-grade mobile support today.

The problem

Building native desktop applications traditionally requires learning platform-specific languages and frameworks for each target OS, or accepting the overhead and visual inconsistency of embedding a full web browser runtime. Developers who know TypeScript have no direct path to shipping a native-feeling desktop app that integrates with OS scroll physics, menus, and dialogs without either a heavy Electron-style bundle or a complete language switch.

How it works

TypeScript app cores

App logic is written in a checked TypeScript subset and compiled to native code. A Zig core option is also available for projects that need it. The `update` function takes the current model and a typed message and returns the next model, keeping state transitions explicit and testable.

Native markup views

Views are declared in `.native` files using XML-style markup that expresses layout, data bindings, and message dispatch. Markup changes reload live during `native dev` while preserving app state; TypeScript core changes trigger a full rebuild and restart.

Native-rendered components and design tokens

The toolkit provides buttons, text inputs, lists, tables, dialogs, and charts rendered natively by its engine. Design tokens cover colors, spacing, and typography by name, so the same widgets can carry entirely different visual themes without changing markup structure or logic.

OS platform integration

Native SDK integrates with platform services including momentum and rubber-band scroll physics on macOS, native context menus, menu bar and tray items driven by the model, native open/save dialogs and file drop events, IME composition on macOS, Linux, and Windows, and HiDPI rendering across all targets.

Automation server

An optional automation server exposes accessibility snapshots, accepts input commands such as widget clicks, supports state assertions, and captures screenshots via the `native automate` CLI. This enables both automated testing and agent-driven app inspection without a separate testing framework.

Cross-platform packaging

Native markup and app logic compile into a single executable. The packaging step bundles app assets and metadata, and apps that embed web content can include frontend assets and an optional web engine. Distribution guides cover signing and update configuration.

Features

  • TypeScript app cores
  • Native markup views
  • Native-rendered components and design tokens
  • OS platform integration
  • Automation server
  • Cross-platform packaging

How to install

npm install -g @native-sdk/cli native init my_app cd my_app && native dev

Recommended for this setup

Strengths

  • No browser runtime required: Native SDK renders its component catalog directly through its own deterministic engine rather than wrapping a WebView or Chromium instance, keeping binary sizes small. The Markdown Viewer example ships at 3.4 MB and renders live widget previews without any WebView.
  • Live markup reloading with state preservation: During `native dev`, edits to `.native` view files reload immediately while the app keeps its in-memory state. Only TypeScript core changes require a full rebuild, shortening the feedback loop for UI iteration.
  • Uniform event-driven architecture: The model-message-update pattern is consistent across every app: events produce typed messages, `update` returns the next model, and the view reads from the committed model. Filesystem access, network requests, and external work run through effects and TypeScript services, keeping core logic pure and testable.
  • Design token theming: Tokens for colors, spacing, and typography are configured by name, making it possible to produce visually distinct applications from the same component and layout code. The Soundboard and Deck examples demonstrate two complete themes built on identical widgets and playback logic.

Trade-offs

  • Experimental status: Native SDK is a Vercel Labs experiment. The README states the project is experimental, platform capabilities vary, and mobile support is still evolving. It is not positioned as production-ready for all use cases.
  • Mobile support is unverified on device: iOS support is verified on the simulator only; device support is in progress. Android cross-compiles with a NativeActivity shim but on-device runs are not yet verified. Teams targeting mobile as a primary platform should check the platform support matrix before committing.
  • Checked TypeScript subset, not full TypeScript: App cores use a checked TypeScript subset rather than unrestricted TypeScript. Projects that depend on patterns outside that subset would need a Zig core or TypeScript services instead of embedding arbitrary logic in the update function.
  • Requires Node.js 24 or later: The CLI requires Node.js 24 or later, and the Zig toolchain must be available on PATH or downloaded at setup time. Teams with older Node.js environments or restricted toolchain installations need to account for this before adopting the toolkit.

Tech stack

Languages
Zig, TypeScript, Objective-C, C++, C, JavaScript, Objective-C++, Shell, Java, PowerShell, Dockerfile, Python, Swift
Frameworks
Next.js, React
Databases
—
Tooling
—

FAQ

Does Native SDK use a WebView or Electron under the hood?

No. Native SDK renders its component catalog through its own deterministic engine in OS windows without requiring a WebView or bundled Chromium. WebView support is available as an optional coexisting pane on macOS, Linux, and Windows, and bundled Chromium via CEF is available on macOS, but neither is required.

Which platforms are supported?

macOS (Metal presentation, primary development platform), Linux (GTK with software renderer), and Windows (Win32) are the stable desktop targets. iOS and Android support is experimental: iOS is verified on the simulator with device support in progress, and Android cross-compiles but on-device runs are not yet verified.

Can I use any TypeScript code in the app core?

App cores use a checked TypeScript subset that compiles to native code. For logic that falls outside that subset, or for filesystem access and network requests, Native SDK provides TypeScript services that run as external effects outside the core update function.

How do I install and create my first app?

Install the CLI with `npm install -g @native-sdk/cli` (requires Node.js 24 or later), then run `native init my_app && cd my_app && native dev`. A counter app opens in a real OS window; edit `src/app.native` to see markup changes reload live.

What is the license?

Native SDK is released under the Apache-2.0 license.

Similar tools

More in Engineers