Skip to content

Getting Started

Build a native desktop app in TypeScript in under 5 minutes. By the end of this section you’ll have:

  • a running dev window with HMR on both the frontend and the backend,
  • a typed RPC boundary — rename a function in backend/main.ts and the TypeScript compiler catches every stale frontend call,
  • a packed executable in release/<platform>-<arch>/ that includes the compiled host, Bun, backend, and frontend.

Bun 1.3+ and Rust 1.95+ are required, plus the platform build tools: the MSVC build tools on Windows, the Xcode command line tools on macOS (apps run on macOS 14+), the WebKitGTK/GTK dev packages on Linux. See Installation.

Terminal window
bunx @tynd/cli create my-app

The required name becomes the project directory. The frontend defaults to React; pass --framework <name> with vue, svelte, solid, preact, lit, or angular when needed. Bun is the backend runtime.

Terminal window
cd my-app
tynd dev

The first run compiles the app’s native host and takes a few minutes; later runs reuse it. A native window opens with your frontend + HMR. Save backend/main.ts — the backend hot-reloads without tearing down the window.

Terminal window
tynd build # raw binary
tynd build --bundle all # + current-host installers (.app/.dmg, .deb/.rpm/.AppImage, NSIS/MSI)

Output lands in release/<platform>-<arch>/. Installers need a bundle.identifier in tynd.config.ts — see Your First App.