A modern, full-featured starter template for building desktop applications with Tauri 2 and SvelteKit.
Clone and install
git clone https://github.com/yourusername/tauri-sveltekit-starter-template.git
cd tauri-sveltekit-starter-template
bun install
Development
bun run dev
Build
bun run build
Build Debug
bun run build:debug
This template comes with a set of pre-configured scripts to help you with development and maintenance.
Command | Description |
---|---|
bun run dev |
Starts the Tauri development server with hot-reloading for both frontend and backend. |
bun run build |
Builds and bundles the application for production. |
bun run build:debug |
Creates a debug build of the application. |
bun run format |
Formats all source files with Prettier. |
bun run format:check |
Checks for formatting errors without modifying files. |
bun run lint |
Lints the source files using ESLint. |
bun run lint:fix |
Lints and automatically fixes problems. |
bun run check |
Runs the Svelte type-checker. |
bun run validate |
Runs all quality checks: format, lint, and type-check. |
bun run clean |
Removes all build artifacts and temporary directories. |
bun run prepare |
SvelteKit's command to generate types |
āāā src/ # Frontend source
ā āāā lib/ # Shared components and utilities
ā ā āāā components/ # Reusable components
ā ā āāā stores/ # Svelte stores
ā ā āāā config/ # App configuration
ā āāā routes/ # SvelteKit routes
ā āāā app.html # HTML template
āāā src-tauri/ # Tauri backend
āāā static/ # Static assets
āāā README.md
For detailed information about working with the Rust backend, including:
š Read the Rust Backend Developer Guide
Edit src/app.css
to customize colors and design tokens.
Update src/lib/config/app.ts
for app metadata and settings.
Modify src-tauri/tauri.conf.json
and src-tauri/Cargo.toml
for window behavior and permissions.
MIT License - see LICENSE file for details.