# radicle-desktop Tauri desktop app for Radicle. Svelte 5 frontend communicates with a Rust backend via Tauri IPC commands. TypeScript types are generated from Rust structs using ts-rs (`crates/radicle-types/`). ## Plan mode - Propose the minimal MVP first — no tests, no docs, no speculative extras - Tests are added only when explicitly requested after MVP review - Keep plans concise: short bullet points listing what changes and where - Skip obvious details and boilerplate explanations ## Tech stack - Svelte 5 with runes syntax (`$state`, `$derived`, `$props`, `$effect`) - TypeScript, Vite, Vitest, Playwright - Rust backend: Tauri commands in `crates/radicle-tauri/` - Types generated by ts-rs: `crates/radicle-types/` → `crates/radicle-types/bindings/` - Path aliases: `@app` (src), `@bindings` (crates/radicle-types/bindings), `@tests` ## Commands ### Development ```sh npm run tauri dev # full Tauri dev build with hot reload npm run start:http # Vite dev server backed by test-http-api (no Tauri runtime) ``` Set `VITE_LOG_INVOKE_TIMINGS=true` to log each command's duration (`[invoke] ms`) to the browser console. It is off by default. ### Checks and linting (svelte-check, eslint, prettier) ```sh npm run check npm run format # auto-fix prettier issues ``` ### Unit tests ```sh npm run test:unit ``` DOMPurify does not sanitize under happy-dom (the unit-test environment): `