# 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 a package in the root npm workspace and its own Cargo workspace: install npm dependencies at the repository root with `npm ci -w desktop`, and run every other command here from `desktop/`. All paths in this file are relative to it. Conventions shared with explorer are in the root `AGENTS.md`, and UI code shared with it lives in `shared/ui/`. ## Svelte syntax and aliases - Svelte 5 with runes syntax (`$state`, `$derived`, `$props`, `$effect`) - Path aliases: `@app` (src), `@bindings` (crates/radicle-types/bindings), `@tests` ## Commands ### Development ```sh npm run dev # full Tauri dev build with hot reload and devtools 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): `