Prerequisites
Before you begin, install the following tools:| Tool | Version | Notes |
|---|---|---|
| Node.js | LTS recommended | Required by the Vue 3 frontend |
| pnpm | 10.26.2 | Specified in package.json as packageManager |
| Rust toolchain | stable | Install via rustup |
| Tauri platform deps | — | Platform-specific system libraries |
Tauri requires additional platform dependencies (WebView2 on Windows, webkit2gtk on Linux). Refer to the Tauri prerequisites guide for the full list.
Setup
Install prerequisites
Install Rust via Install pnpm:Then follow the Tauri prerequisites guide for your operating system.
rustup:Install dependencies
Run the development server
http://localhost:1420 and launches the Tauri application with hot-module replacement.The main window starts hidden. It becomes visible when triggered via the global shortcut or system tray.
Development modes
MCP Bridge mode
Start the app with the optionalmcp-bridge Cargo feature enabled for automated MCP testing:
tauri dev --features mcp-bridge and conditionally includes tauri-plugin-mcp-bridge.
Frontend only
Run just the Vite dev server without launching the Tauri shell:Database
TouchAI uses Drizzle ORM with SQLite (data/touchai.db). The schema lives in src/database/schema.ts and migrations are output to drizzle/.
Testing
test:run passes with no tests (--passWithNoTests), so CI does not fail on a clean checkout.
Linting and formatting
format:fix runs Prettier on all tracked file types and then cargo fmt on the Rust sources in one command.
Rust checks
cargo check --all-targets against src-tauri/Cargo.toml without producing a binary — useful for fast compile-error feedback.