plugin-store| Layer | Technology |
|---|---|
| Runtime | Tauri 2 |
| Backend | Rust |
| Frontend | Svelte 5 + TypeScript |
| Styles | UnoCSS |
| State | Svelte stores |
| Persistence | @tauri-apps/plugin-store |
| Build | Vite |
| Platform | Status |
|---|---|
| Windows | ✅ Full |
| macOS | ✅ Full (Intel + Apple Silicon) |
| Linux | ✅ Full |
| Android | 🔜 Planned |
| iOS | 🔜 Planned |
# 1. Clone the template
git clone https://github.com/arelove/tauri-app-template
cd tauri-app-template
# 2. Install JS dependencies
npm install
# 3. Start dev server
npm run tauri dev
npm run tauri build
Binaries will be in src-tauri/target/release/bundle/.
tauri-app-template/
├── src/ # Svelte frontend
│ ├── lib/
│ │ ├── components/ # Reusable UI components
│ │ └── stores/ # theme, locale, router
│ ├── routes/ # Pages: Home, Settings, About
│ ├── App.svelte # Root component
│ ├── app.css # Design tokens + global styles
│ └── main.ts # Entry point
├── src-tauri/
│ ├── src/
│ │ ├── lib.rs # App setup, plugin registration
│ │ ├── commands.rs # Custom Rust commands
│ │ └── tray.rs # System tray
│ ├── capabilities/ # Tauri permission scopes
│ └── tauri.conf.json # App config
├── .github/
│ ├── workflows/
│ │ ├── ci.yml # Lint + type check on every PR
│ │ └── release.yml # Build binaries on tag push
│ └── ISSUE_TEMPLATE/
└── uno.config.ts # UnoCSS design system
src/routes/MyPage.sveltesrc/lib/stores/router.tssrc/lib/components/Sidebar.sveltesrc/lib/stores/locale.tssrc-tauri/src/commands.rs:#[tauri::command]
pub async fn my_command(input: String) -> Result<String, String> {
Ok(format!("Hello, {input}!"))
}
src-tauri/src/lib.rs:.invoke_handler(tauri::generate_handler![commands::my_command])
import { invoke } from "@tauri-apps/api/core";
const result = await invoke<string>("my_command", { input: "world" });
Add your locale to src/lib/stores/locale.ts:
export type Locale = "en" | "ru" | "de"; // add your locale
const translations = {
de: { "nav.home": "Startseite", ... }
}
Releases are fully automated. Push a version tag:
git tag v1.0.0
git push origin v1.0.0
GitHub Actions will build installers for Windows, macOS (Intel + ARM), and Linux, then create a draft release.
See CONTRIBUTING.md.
MIT © arelove