CoreTrace 6 uses Tauri 2 / Rust, React / TypeScript and an embedded Monaco editor. A desktop sidebar connects the personal home, organisation dashboard, repositories, analyses and code workspace.
Install Node.js 22.19+, Rust 1.95+ and the platform's Tauri prerequisites. Windows requires Microsoft C++ Build Tools and WebView2 Runtime.
npm ci
npm startnpm start launches the native application. npm run dev is a browser preview;
filesystem, Git and account actions deliberately require Tauri. No demo data or
production credentials are embedded in the preview.
- Local code: Open a folder. Browse the tree, edit files, search with Ctrl/Cmd+F, save with Ctrl/Cmd+S. Tabs retain drafts while navigating. Closing dirty tabs, switching folders and closing the desktop asks before discarding. Save conflicts preserve external edits and your in-memory draft; copy the draft before reopening.
- GitHub: Enter
owner/repositoryor its HTTPS GitHub URL and choose a parent folder. Git clones into a new child directory; existing destinations are never overwritten. Private repositories use Git Credential Manager orgh auth setup-git. CoreTrace does not launch builds or install dependencies while opening or cloning; Git uses your existing local configuration. - Account: Approve the device code in your browser. Rust keeps access tokens in memory and refresh tokens in the OS credential manager, separated by API URL. Credentials never enter React, localStorage or config files. Select the organisation in the top bar. Dashboards show its quotas, reported period spend, plan and jobs. Missing figures remain unknown. Account settings list members subject to permissions.
- Cloud analysis: Select an enabled connected GitHub repository and branch, tag or commit, then confirm CTU spending. The repository configuration determines the tools. Follow progress, cancel, inspect verified reports and open findings in the matching workspace. Retrying an uncertain submission keeps its idempotency key until inputs change or submission succeeds. Local edits are not uploaded by this workflow.
- Local analysis: Open a C/C++ folder and choose Analyser in the code
workspace. On supported systems the first local run offers to download the
official CoreTrace analyser and shows the version and size before it starts.
Managed downloads cover Linux x64 (glibc 2.34+) and Apple Silicon (macOS 14+).
You can also choose an installed native
ctraceexecutable in Settings. Linux needs the system C library headers (for examplelibc6-devon Ubuntu). The analyser runs locally and the installed version works offline. Desktop and analyser updates each require approval before downloading or installing. SARIF findings, stdout/stderr and cancellation are available. Settings also accepts a tool configuration (--config) and the project'scompile_commands.json(--compile-commands). The packaged configuration is selected automatically next to a CoreTrace distribution. With a configuration, its tool selection is respected; without one,--staticrequests all static tools. These choices last for the session. For the Windows CoreTrace distribution, selectdist/windows/config/tool-config.jsonto use its packaged tool selection, and the matching build'scompile_commands.jsonfor compiler options. When none is selected, the desktop searches for a database containing the active file and otherwise generates a temporary entry with clang and the workspace'sincludedirectory. Missing tools must be installed or excluded in the chosen configuration.
The API defaults to https://api.coretrace.fr/v1. Set CORETRACE_BASE_URL before launch
for another deployment; /v1 is added if absent. HTTPS is required except for loopback
API development addresses. Device-browser and signed report URLs require HTTPS.
Web account management links target app.coretrace.fr.
npm run check
npm test
npm run format:check
cargo fmt --manifest-path src-tauri/Cargo.toml --check
cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets -- -D warnings
npm run test:native
npm run tauri -- build --no-bundle
npm run distWindows executable: src-tauri/target/release/coretrace-desktop.exe.
npm run dist builds installers. CI validates Windows, macOS and Linux. Version
tags build and publish installers and signed update artifacts to GitHub Releases.
desktop/: React features, typed native bridge, platform projections and tests.src-tauri/src/: workspace, GitHub, cloud authentication/API and local process services.desktop/platform-schema.d.ts: generated contract snapshot from Coretrace-Entreprise/coretrace-web, matching the control plane OpenAPI schema.- Editing is confined to the chosen workspace, excludes Git metadata and path escapes, and accepts UTF-8 text up to 4 MiB. Atomic saves check the on-disk revision. Directory listing omits links and dependency/build folders, with a 5,000-entry limit per folder.
- Reports are capped at 10 MiB, output at 1 MiB per stream, local runs at 15 minutes, clones at five minutes and cloud history at 200 jobs. Inspect incomplete clone folders before retrying. Workspace tabs and the analyser choice last for the session.
- The IDE includes exploration, syntax colouring, tabs, search, editing and findings navigation. Terminal, debugger, LSP, extensions, Git commit/push UI, WSL bridging and local LLM integrations are not included. Local analysis can run on the active file or open folder. Cloud analysis can run on a connected GitHub commit or on an open folder you choose to upload. The CTU quote requires your approval before the analysis starts.
See the migration and rollback guide for the Electron archive and the original validation report.