How agmmnn/tauri-ui works
Main Components Overview
A. Core Components (Top Level):
┌─────────────────────────────────────────────┐
• Tauri UI Templates │
• ┬─────────────┬───────────────┘
• ┌───────────┴─────────────┴───────────┐
• Shared Components │
• ┘
B. Template Variations (Middle Level):
┌─────────┐ ┌──────────┐ ┌─────────┐
• Next.js│ │SvelteKit │ │ Vite │
• ┬────┘ └────┬─────┘ └────┬────┘
Component Relationships
┌─────────────────── Frontend Layer ───────────────────┐
• ┌─────────┐ ┌──────────┐ ┌─────────┐ │
• UI │ │ State │ │ Router │ │
• Components│ │Management│ │ │ │
• ┘ └──────────┘ └─────────┘ │
• ┬───────────────────────────┘
┌───────────────────────┼───────────────────────────┐
• Tauri Bridge Layer │
• ┌─────────────────────────────────────────┐ │
• IPC Communication │ │
• ┘ │
• ┬───────────────────────────┘
┌───────────────────────┼───────────────────────────┐
• Rust Backend Layer │
• ┌─────────┐ ┌──────────┐ ┌─────────┐ │
• File │ │ System │ │ Window │ │
• System │ │ APIs │ │Controls │ │
• ┘ └──────────┘ └─────────┘ │
• ┘
Key Components to Highlight
• Blue: Frontend frameworks (Next.js, SvelteKit, Vite)
• Green: Shared UI components (shadcn/ui)
• Orange: Tauri backend services
• Purple: System integration points
Technical Details
┌─────────── Technology Stack ──────────┐
• • Frontend: TypeScript, React/Svelte │
• • UI: shadcn/ui, Radix UI │
• • Backend: Rust, Tauri │
• • Build: pnpm, cargo │
• ┘
Flow Indicators
• → User interaction flow
• ⇄ Data exchange between frontend and backend
• ⇢ Build and deployment processes
Additional Elements
┌─────────── Development Tools ─────────┐
• • Tauri CLI │
• • Package Managers │
• • Build Scripts │
• ┘
• ⬡ Component │
• → Data Flow │
• ⬢ External Service │
• ⬣ Core Feature │
• ┘