Client Layer¶
The Tauri desktop application provides the user interface for AgentX.
Technology Stack¶
- Desktop Framework: Tauri v2
- Frontend: React 19 with TypeScript
- Build Tool: Vite
- Styling: CSS Modules (or your choice)
Project Structure¶
client/
├── src/
│ ├── App.tsx # Main app component
│ ├── components/ # React components
│ │ ├── TabBar.tsx # Tab navigation
│ │ └── tabs/ # Tab components
│ └── main.tsx # Entry point
├── src-tauri/ # Rust/Tauri backend
│ ├── Cargo.toml
│ ├── tauri.conf.json
│ └── src/
└── vite.config.ts
Tab System¶
Four main tabs with persistent state:
- Dashboard - Overview and stats
- Translation - Interactive translation
- Chat - AI conversations
- Tools - Utilities and settings
All tabs remain mounted; visibility controlled via CSS.
Development¶
- Dev server:
http://localhost:1420(Vite) - HMR enabled for fast iteration
- Tauri window wraps the Vite dev server
See Development Setup for more information.