Skip to content

About

Desktop interface for coretrace !

Resources

Contributing

Security policy

Stars

6 stars

Watchers

0 watching

Forks

Repository files navigation

CoreTrace Desktop

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.

Start

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 start

npm 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.

Use

  • 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/repository or 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 or gh 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. Startup checks official releases in the background and prepares the newest compatible stable analyser after verifying its SHA-256 digest. A run started during initial preparation shares the download. Updates keep the previous analyser until a new binary passes its startup check and any active run finishes. The installed version remains usable offline, and a custom ctrace chosen in Settings keeps priority. Desktop updates still require approval.

    Host Current official analyser availability
    Linux x64 v0.85.0 tarball, glibc 2.34+. Install the distribution’s C library headers, such as libc6-dev on Ubuntu.
    macOS Apple Silicon v0.85.0 disk image, macOS 14+.
    Windows x64 The official release needs a Windows x64 ZIP containing coretrace-<version>-windows-amd64/bin/ctrace.exe. Select a compatible local executable in Settings until it ships.
    macOS Intel The official release needs an Intel disk image. Select a compatible local executable in Settings until it ships.

    SARIF findings, stdout/stderr and cancellation are available. Settings also accepts a tool configuration (--config) and the project's compile_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, --static requests all static tools. These choices last for the session. For the Windows CoreTrace distribution, select dist/windows/config/tool-config.json to use its packaged tool selection, and the matching build's compile_commands.json for 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's include directory. Readiness checks follow the selected tools and their configured executable paths. The bundled configuration selects the built-in stack analyser. Desktop can prepare and update flawfinder in its private directory using a verified PyPI wheel, ctrace v0.85.0 or newer, and the machine’s Python 3 venv and pip support. Its working launcher survives an offline or failed update. Cppcheck’s Windows MSI and system packages, TscanCode, and IKOS with its matching LLVM need a user-managed installation. Settings shows the recovery action for each requested tool and provides a retry.

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.

Build and verify

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 dist

Windows 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.

Architecture and current boundaries

  • 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.

About

Desktop interface for coretrace !

Resources

Contributing

Security policy

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages