# 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/`). The app lives in `desktop/` of the radicle-gui monorepo. It is its own npm package and Cargo workspace: run every command here from `desktop/`, and all paths in this file are relative to it. The repository root holds the Radicle web explorer, which has its own `CLAUDE.md`. Release tags are `releases/desktop/`. ## Tech stack - Svelte 5 with runes syntax (`$state`, `$derived`, `$props`, `$effect`) - TypeScript, Vite, Vitest, Playwright - 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 # test-http-api backend on :8081 (no Tauri runtime) npm start # Vite dev server; in a browser it talks to test-http-api ``` 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 ```sh npm run check # svelte-check, eslint, prettier, then scripts/check-rs 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): `