Skip to content

Repository files navigation

ThreadTrace Logo

πŸ•΅οΈβ€β™‚οΈ THREAD_TRACE

Spatial Code Investigation Canvas & Low-Memory Evidence Board

Release Tauri v2 React 19 Memory Footprint License: MIT GitHub Stars

A blazing fast, local-first 2D workspace for diagnosing complex race conditions, multi-file security vulnerabilities, and architectural bugs using detective-style curved red strings.

⚑ One-Line Install β€’ πŸ“¦ Direct Standalone Binaries β€’ ✨ Key Features β€’ πŸ“Έ Visual Proofs β€’ πŸ“‘ How Git Watcher Works β€’ ⚑ Memory Benchmarks β€’ ⌨️ Shortcuts


⚑ Quick Install & Uninstall

πŸͺŸ Windows (PowerShell)

Install (One-Line Command):

irm "https://raw.githubusercontent.com/ALL-FOR-ONE-TECH/ThreadTrace/main/install.ps1?v=1.0.4" | iex

Uninstall (One-Line Command):

irm "https://raw.githubusercontent.com/ALL-FOR-ONE-TECH/ThreadTrace/main/uninstall.ps1?v=1.0.4" | iex

Note: Uninstall cleanly deletes the executable, shortcuts, and PATH entries while safely keeping your project files and databases intact.


🐧 Linux & 🍎 macOS (Bash)

Install (One-Line Command):

curl -fsSL https://raw.githubusercontent.com/ALL-FOR-ONE-TECH/ThreadTrace/main/install.sh | bash

Uninstall (One-Line Command):

curl -fsSL https://raw.githubusercontent.com/ALL-FOR-ONE-TECH/ThreadTrace/main/uninstall.sh | bash

Note: Removes binaries (~/.local/bin/threadtrace or /Applications/ThreadTrace.app) while safely keeping all project files and investigation databases intact.


πŸ“¦ Direct Standalone Binaries

Download pre-built standalone binaries from the Latest GitHub Releases:

Platform Format Download Link Description
Windows x64 Portable .exe Download ThreadTrace.exe Single standalone file (~11.2 MB, zero install required)
Windows x64 Setup .exe Download ThreadTrace_Setup.exe Standard NSIS Windows Installer with uninstaller
Windows x64 MSI Package Download ThreadTrace.msi Windows Enterprise MSI installer
macOS Universal .dmg Download ThreadTrace.dmg Intel & Apple Silicon (M1/M2/M3/M4)
Linux AppImage Download ThreadTrace.AppImage Universal Linux standalone executable

🎯 The Problem & The Vision

When investigating complex distributed race conditions, multi-file CVEs, or regression cascades, developers are forced to context-switch across dozens of editor tabs, ticket trackers, and terminal logs.

ThreadTrace brings the physical detective evidence board to your desktop workspace:

  • Pin snippets, logs, and notes anywhere on an infinite 2D plane.
  • Draw red evidence strings between connected clues with quadratic BΓ©zier droop physics.
  • Live Git Watcher streams commit hashes and diff stats directly to the canvas in real time.
  • Runs on ~18MB RAMβ€”so lightweight you can keep it open 24/7 next to your IDE without consuming system resources.
β”Œβ”€β”€[0x01:BUG]──┐        β”Œβ”€β”€[0x02:EVIDENCE]──┐
β”‚ AUTH_RACE    β”œβ”€β”€β”€β”€β”€β”€β”€β–Ίβ”‚ PROD_LOGS_409     β”‚
β””β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜        β””β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    β–Ό                       β–Ό
β”Œβ”€β”€[0x03:FIX]───────────────┴───────────────┐
β”‚ INFLIGHT_MUTEX_QUEUE_DEDUPLICATION        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“Έ Visual Proofs & Interactive States

1. Main Canvas with Curved Red String Clue Linking

ThreadTrace Main Canvas Spatial evidence board showing custom security tags (SECURITY:1, LEAK:1), dynamic radar minimap, and curved red evidence links.


2. Live System Resource Telemetry Dashboard

System Resource Telemetry Modal Real-time diagnostics displaying live JS Heap memory sparklines, FPS render speeds, DOM node counts, and zero idle editor memory leaks.


3. Dynamic Custom Tag Engine

Custom Tag Engine Create custom classification tags with 8 phosphor color swatches, sub-labels, and instant preview badges.


4. Tag-Based Clue Isolation & Filtering

Custom Tag Filtering Instant tag filtering to isolate critical CVE clues and sensitive evidence.


πŸ“‘ How Git Watcher Works

ThreadTrace includes an active Git Watcher daemon built directly into the Rust backend (git_watcher.rs):

flowchart LR
    A[Local Git Repo] -->|notify crate / inotify| B[Rust Git Watcher Daemon]
    B -->|transient cli: git log -1| C[Latest Commit Info]
    B -->|transient cli: git diff --stat| D[Active Diff Summary]
    C & D -->|Tauri Event Bridge| E[React Masthead Ticker]
    E -->|Live UI Update| F[Investigator HUD Banner]
Loading
  1. Filesystem Monitor: Uses the Rust notify crate to watch .git/HEAD, .git/refs/heads/, and working tree files for modifications.
  2. Non-Blocking Shell Exec: On file touch, executes lightweight non-blocking subprocesses (git log -1 --oneline and git diff --stat) to extract the latest commit message, hash, and modified files.
  3. Zero-Latency Event Dispatch: Streams updates through the Tauri IPC event channel to the React masthead without polling.
  4. Offline / Web Fallback: Seamlessly switches to web local storage persistence when running in standard browser mode.

⚑ Memory Benchmarks & Performance

ThreadTrace is specifically engineered to eliminate the memory bloat of Electron-based apps:

Metric Electron-Based Tools Standard Web App ThreadTrace (Rust + React 19)
Base RAM Usage 300MB – 650MB 80MB – 150MB ~18MB – 35MB ⚑
Active Editor Strategy N instances mounted N instances mounted Single Active Mount (Prism read mode for idle cards)
Startup Time 2.5s – 4.0s 1.5s < 250ms πŸš€
Persistence Remote Cloud / Heavy DB LocalStorage only Native SQLite (ACID) + LocalStorage Sync
Binary Size 120MB+ N/A 11.2 MB Standalone Executable

✨ Key Features

  • πŸ•΅οΈ Spatial Clue Canvas: Infinite panning (Alt + Drag), zoom (Ctrl + Wheel / HUD), and auto-relayout.
  • 🧡 BΓ©zier Red Strings: Connect cards with curved, drooping evidence threads.
  • 🏷️ Dynamic Custom Tag Engine: Register custom tags (e.g. SECURITY, LEAK, PERF, API) with 8 phosphor color swatches.
  • πŸ“‘ Auto-Bounding Radar Minimap: Real-time spatial radar that automatically scales to card coordinates with drag-navigation.
  • πŸ“Š Real-Time Telemetry Monitor: Live memory, JS heap sparklines, FPS counter, and editor isolation.
  • πŸ“ Markdown Dossier Export: Generate one-click investigation markdown dossiers complete with Mermaid flowchart diagrams.
  • πŸ’Ύ ACID SQLite Persistence: All nodes, links, and tags are stored locally in snippet_board.db with instant zero-server persistence.

πŸ› οΈ Build From Source

# 1. Clone the repository
git clone https://github.com/ALL-FOR-ONE-TECH/ThreadTrace.git
cd ThreadTrace

# 2. Install dependencies
npm install

# 3. Run in Desktop Dev Mode
npm run tauri dev

# 4. Build Standalone Release
npm run build
npm run tauri build

⌨️ Keyboard Shortcuts

Shortcut Action
N Add new snippet clue card
E Open Project File Explorer & Source Slicer Drawer
T Open Custom Tag Engine & Color Palette
Space + Drag / Left-Click Canvas Fluid infinite canvas pan
Ctrl + Wheel Smooth cursor-centered canvas zoom ($0.50\times - 1.50\times$)
0 Reset filter (Show all cards)
1 .. 4 Quick-filter by BUG, TASK, FIX, EVIDENCE
Ctrl + Z / Ctrl + Y Undo / Redo board actions
Ctrl + K / / Command Palette
Esc Cancel evidence linking / Close active drawers
? Toggle Interactive Shortcuts Cheatsheet

πŸ“„ License

Distributed under the MIT Open Source License. See LICENSE for complete details. Free for both personal and commercial use.

Maintained with ⚑ by ALL-FOR-ONE-TECH & Karthikeyan.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages