This repository serves as a modern template for developing cross-platform desktop applications. It combines Tauri, SvelteKit, and TypeScript to streamline your workflow and deliver an optimized user experience.
This template is optimized for a seamless integration between Tauri and SvelteKit, using @sveltejs/adapter-static
for static site generation. The frontend is powered by SvelteKit, while you can access native capabilities through Tauri’s secure Rust backend.
pnpm dev
: Start the Vite development server.pnpm build
: Build the application for production.pnpm preview
: Preview the built application locally.pnpm check
: Sync SvelteKit and run TypeScript type checks.pnpm tauri
: Run Tauri CLI commands (development, build, etc.).pnpm lint
: Lint your codebase with ESLint and check formatting with Prettier.pnpm format
: Automatically format code using Prettier.pnpm prepare
: Set up Husky Git hooks.@tauri-apps/api
: Tauri JavaScript APIs for native integration.@tauri-apps/plugin-opener
: Plugin for opening files and URLs with the default system handler.tailwindcss
: Utility-first CSS framework for styling.Clone the repository:
git clone
cd tauri-app
Install dependencies with pnpm:
pnpm install
Start the development environment:
pnpm tauri dev
This template gives you a productive starting point for building modern Tauri v2 desktop applications—combining SvelteKit’s reactivity, TypeScript’s safety, and TailwindCSS’s flexible styling for an efficient and enjoyable developer experience.