Desktop app boilerplate using Tauri v2, SvelteKit, Svelte 5, TypeScript, and Vite. Use it as a starting point, then run the setup scripts to turn it into your own project.
Clone this repository (or use it as a GitHub template), then open a terminal at the repository root (where package.json lives).
Run one of the setup scripts (pick your shell):
Windows (PowerShell)
.\setup.ps1
macOS / Linux / Git Bash
chmod +x setup # first time only
./setup
The script will:
name field in package.json..git directory (typical after cloning).npm install (updates package-lock.json when needed).git init, stage all files, and create an initial commit.user.name and user.email configured; configure them if Git reports an error.Start developing:
npm run tauri dev
| Command | Purpose |
|---|---|
npm run dev |
SvelteKit dev server (web only) |
npm run tauri dev |
Run the desktop app with hot reload |
npm run tauri build |
Build the desktop app |
npm run check |
Type-check the frontend |
npm run build |
Production web build into build/ |
Rust checks: from src-tauri/, cargo check (or rely on tauri dev / tauri build).
Cursor with extensions that match this stack: Svelte, Tauri, and rust-analyzer.
For architecture and conventions (core layout, Tauri config, UI wiring), see docs/references/desktop-tauri-svelte-boilerplate-agent-prompt.md.