tauri-svelte-template Svelte Themes

Tauri Svelte Template


Tauri + SvelteKit + TypeScript Application Template

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.

Tech Stack

Core Frameworks

  • Tauri 2.0: Secure, lightweight, and cross-platform desktop application framework powered by web technologies.
  • SvelteKit 2.x: Cutting-edge meta-framework for building fast and reactive frontends.
  • TypeScript: Type-safe extension of JavaScript for scalable application development.

UI & Styling

  • TailwindCSS 4.x: Utility-first CSS framework for efficient and responsive UIs.
  • DaisyUI: Customizable UI component library based on TailwindCSS.

Development Tools

  • Vite: Lightning-fast frontend build tool for instant feedback.
  • ESLint 9.x: Code linting to maintain quality and consistency.
  • Prettier: Automated code formatting for a unified codebase.
  • Husky & lint-staged: Git hooks for automatic linting and formatting before commits.

Project Structure

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.

Scripts

  • 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.

Key Dependencies

Production

  • @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.

Development

  • ESLint and Prettier ecosystem.
  • Svelte and TypeScript toolchain.
  • Code quality automation tools (Prettier, Husky, lint-staged).

Getting Started

  1. Clone the repository:

    git clone
    cd tauri-app
    
  2. Install dependencies with pnpm:

    pnpm install
    
  3. 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.


Top categories

Loading Svelte Themes