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.tsand the TypeScript compiler catches every stale frontend call, - a packed executable in
release/<platform>-<arch>/that includes the compiled host, Bun, backend, and frontend.
Install prerequisites
Section titled “Install prerequisites”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.
Scaffold a project
Section titled “Scaffold a project”bunx @tynd/cli create my-appThe 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.
Run it
Section titled “Run it”cd my-apptynd devThe 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.
Ship it
Section titled “Ship it”tynd build # raw binarytynd 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.