> Tauri App Setup
Bootstrap Tauri v2 desktop apps with Rust backend and web frontend. Cross-platform desktop development.
fetch
$
curl "https://skillshub.wtf/skillshub-team/catalog-batch5/tauri-setup?format=md"SKILL.md•Tauri App Setup
Tauri App Setup
Build cross-platform desktop apps with Tauri v2.
Quick Start
npm create tauri-app@latest my-app -- --template react-ts
cd my-app && npm install && npm run tauri dev
Project Structure
src-tauri/src/lib.rs # Rust commands
src-tauri/tauri.conf.json # App config
src/ # Web frontend
Rust Commands (IPC)
#[tauri::command]
fn greet(name: &str) -> String { format!("Hello, {}!", name) }
pub fn run() {
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![greet])
.run(tauri::generate_context!()).expect("error");
}
import { invoke } from "@tauri-apps/api/core";
const msg = await invoke<string>("greet", { name: "World" });
Config (tauri.conf.json)
{ "productName": "MyApp", "version": "0.1.0", "identifier": "com.myapp",
"app": { "windows": [{ "title": "My App", "width": 1024, "height": 768 }] },
"bundle": { "active": true, "targets": "all" } }
Build
npm run tauri build # Output in src-tauri/target/release/bundle/
- Tauri v2 supports desktop + mobile (iOS/Android)
- ~600KB bundle vs Electron's ~150MB
- Use capabilities/ for security permissions
> related_skills --same-repo
> Nix Dev Shells with direnv
Auto-activate reproducible dev environments with Nix flakes and direnv.
> Dagger with GitHub Actions
Run Dagger CI/CD pipelines in GitHub Actions for portable, testable builds.
> Bun + Hono API
Build fast APIs with Bun runtime and Hono framework.
> Deno Fresh Framework
Build full-stack web apps with Fresh on Deno. Islands, routes, and zero runtime overhead.