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

PrimeTrace v1.0.0

πŸ•΅οΈβ€β™‚οΈ PrimeTrace (PrimeBoard)

Next-Generation Detective Investigation Board & Infinite Visual Analysis Studio
PrimeTrace Hero Banner
Platform React TypeScript Vite License Engine
Engineered & Designed by DETHA BY AKSHIT TYAGI

Transform scattered clues, media evidence, suspect profiles, and complex timeline events into a living, interconnected case board powered by dynamic thread physics, 46 specialized domain tools, and cinematic playback presentation.


πŸ” Overview

PrimeTrace (also known as PrimeBoard) is an ultra-high fidelity visual intelligence and investigation workspace designed to merge the tactile, analog atmosphere of a classic detective corkboard with the infinite capabilities of modern web and desktop computing.

Whether tracking criminal syndicates, mapping architectural software subsystems, analyzing legal precedents, diagnosing clinical cases, or planning complex scientific research, PrimeTrace provides:

  1. Infinite 2D Studio Canvas: Smooth sub-pixel affine matrix transformations with zero latency, zooming from 10% macro constellation graphs up to 220% forensic close-ups.
  2. Dynamic Physics-Inspired Thread Connections: Authentic "red yarn" connections with 5 mathematical curve styles (Dynamic Bezier, Sagging Arc, Sawtooth Zigzag, Organic Handmade Wool, and Direct Taut Line) across 5 line stroke patterns.
  3. Comprehensive Evidence Modalities: Native support for live streaming audio tracks with transcripts, embedded video clips, polaroid photographs with custom borders, aged evidence documents, and tactical field maps.
  4. 46 Domain-Specific Tools: Pre-configured nodes spanning Software Engineering, Law Enforcement, Medical/Hospital, Legal, Construction, Education, Farming, and Creative Arts.
  5. Cinematic Storytelling & Sequence Playback: Step-by-step automated camera walkthrough with variable playback speeds, dwell timings, and spotlighting for courtroom presentations, project retrospectives, or case briefings.
  6. Proprietary .ptcase Binary Container: High-speed, Gzip-compressed, CRC32-verified binary file format with automatic Windows shell association.

⚑ Key Highlights & Visual Showcase

Feature Description Screenshot Reference
Tactile Corkboard Aesthetic Rich dark studio palette, physical pushpins, realistic drop shadows, and yarn fibers. Screenshot (1109).png
Interactive Thread System Multi-point anchor pins (Top, Right, Bottom, Left) with custom color, sag, and width. Screenshot (1114).png, (1151).png
Multimedia Nodes Integrated audio playback with transcripts, video players, and taped polaroid photos. Screenshot (1112).png, (1153).png, (1155).png
Suspect & Threat Profiling Forensic suspect dossiers with live risk assessment sliders and armed status flags. Screenshot (1113).png
46 Domain Tools Catalog Searchable tools drawer with quick-dock pinning and custom profession layouts. Screenshot (1111).png
Autonomous Sequence Playback Director-grade camera tracking across connected nodes with timeline scrubber controls. Screenshot (1163).png
Multi-Format Export Hub Instant export to high-DPI PNG, vector SVG, crisp WebP, print PDF, and .ptcase. Screenshot (1110).png


πŸ—οΈ Technical Architecture & System Design

Architectural Topology

graph TD
    subgraph Client Runtime [Electron 35 / Web Browser]
        A[index.html] --> B[main.tsx - Bootstrapper]
        B --> C[RuntimeErrorBoundary]
        B --> G[Ghost Signature Engine]
        C --> D[App.tsx]
        D --> E[DetectiveBoardPreset.tsx]
    end

    subgraph Infinite Canvas Layer
        E --> F[DetectiveBoardCanvas.tsx]
        F --> H[useInfiniteCamera Hook]
        H --> I[Matrix2D Math Engine]
        F --> J[Infinite Background Layer]
    end

    subgraph Visual Nodes & Connectors Layer
        E --> K[BoardConnectionsProvider]
        K --> L[BoardConnectionsLayer - SVG Renderer]
        K --> M[DraggableNode Wrapper]
        M --> N[46 Core & Profession Card Nodes]
    end

    subgraph Cinematic Storytelling
        E --> O[sequencePlayback.ts]
        O --> P[SequencePlaybackControls.tsx]
        O --> Q[SequencePlaybackOverlay.tsx]
    end

    subgraph Persistent Storage & Export
        E --> R[boardStorage.ts]
        R --> S[(IndexedDB - Media Blobs)]
        R --> T[(LocalStorage - Scoped Keys)]
        E --> U[ptcaseFormat.ts - Binary Encoder/Decoder]
        E --> V[boardExport.ts - PNG/SVG/PDF/WEBP]
    end
            

Coordinate System & 2D Affine Matrix

The canvas operates on an arbitrary 2D coordinate space powered by a 6-element affine transformation matrix:

$$\begin{bmatrix} x' \\ y' \\ 1 \end{bmatrix} = \begin{bmatrix} a & c & t_x \\ b & d & t_y \\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} x \\ y \\ 1 \end{bmatrix}$$
  • State Representation: Stored in Matrix2D = [a, b, c, d, tx, ty] where a and d represent scale, and tx and ty represent world translation.
  • Screen to World Mapping:
    $$\vec{P}_{world} = M^{-1} \cdot \vec{P}_{screen}$$
    Calculated by computing the scalar determinant $\det = a \cdot d - b \cdot c$ and applying the adjugate matrix.
  • World to Screen Mapping:
    $$\vec{P}_{screen} = M \cdot \vec{P}_{world}$$
  • Zoom Anchoring: Zooms preserve cursor-centric focus so the point directly beneath the pointer remains stationary in world space.

The Thread Engine & Mathematical Physics

Connections between nodes are rendered dynamically within an SVG layer positioned behind the interactive cards (zIndex: 0).

graph LR
    SourcePin[Source Pin] -->|Start Coord| ThreadEngine[Thread Path Generator]
    TargetPin[Target Pin] -->|End Coord| ThreadEngine
    Style{Style Selector} --> ThreadEngine
    ThreadEngine -->|curve| Bezier[Cubic Bezier Path]
    ThreadEngine -->|straight| Linear[Direct Line Path]
    ThreadEngine -->|arc| QuadArc[Quadratic Droop Arc]
    ThreadEngine -->|zigzag| Jagged[Sawtooth Normal Offset]
    ThreadEngine -->|handmade| Organic[Harmonic Wool Wave]
            
  1. Cubic Bezier (curve): Evaluates departure normal vectors based on the origin pin anchor (top, bottom, left, right) and computes smooth tangent control points.
  2. Quadratic Arc (arc): Simulates physical gravity on loose twine:
    $$C_x = \frac{x_1 + x_2}{2}, \quad C_y = \frac{y_1 + y_2}{2} - \min\left(120, \|\Delta\vec{P}\| \cdot 0.28\right)$$
  3. Sawtooth Zigzag (zigzag): Calculates normal unit vector $\hat{n} = (-\sin\theta, \cos\theta)$ perpendicular to the chord and alternates positive and negative offsets across evenly spaced intervals.
  4. Handmade Fiber (handmade): Adds high-frequency sinusoidal harmonic variation to evoke realistic twisted wool yarn:
    $$\text{offset}(t) = \sin(4\pi t) \cdot 7 + \cos(6\pi t) \cdot 3$$

Node Anatomy & Interactive Layer

Every item on the canvas is wrapped by DraggableNode.tsx, granting it universal forensic properties:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                       [Top Pin]                             β”‚
β”‚                     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                           β”‚
β”‚                     β”‚ Rotate ⟲  β”‚                           β”‚
β”‚                     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                           β”‚
β”‚  [Left Pin]     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”        [Right Pin]    β”‚
β”‚                 β”‚                   β”‚                       β”‚
β”‚                 β”‚   Specific Node   β”‚                       β”‚
β”‚                 β”‚     Component     β”‚                       β”‚
β”‚                 β”‚  (Audio, Photo,   β”‚                       β”‚
β”‚                 β”‚   Suspect, etc.)  β”‚                       β”‚
β”‚                 β”‚                   β”‚                       β”‚
β”‚                 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                       β”‚
β”‚                       [Bottom Pin]              [Resize β†˜]  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  • Selective Event Propagation: Textareas, inputs, sliders, and audio players retain full interactive pointer events via [data-node-interactive='true'], while dragging outside interactive controls moves the entire card.
  • Sub-Pixel Precision: Coordinates are stored as floating-point world numbers, decoupling node positions from client viewport pixel densities.
  • Dynamic Transforms:
    • Rotation: Free $360^\circ$ circular rotation handle.
    • Scale: $40\%$ to $220\%$ uniform zoom scaling.
    • Opacity: $20\%$ to $100\%$ ghost transparency.
    • Brightness: $40\%$ to $180\%$ forensic light filter.
    • Proportional Resizing: Diagonal resize handles with minimum size boundaries.

🧰 Tool & Evidence Catalog (46 Specialized Tools)

PrimeTrace comes packed with 46 built-in tools organized into core detective nodes and multi-disciplinary cards:

Core Detective Tools (14)

Tool ID Name Glyph Description
sticky-note Add Note NT Quick handwritten memo with color accents and paper fold styling.
photo-drop Add Photo PH Polaroid evidence photo with tape border, auto-crop, and color tinting.
evidence-document Add Document DC Official dossier sheet with typewriter font and confidential watermark.
audio-evidence Add Audio AU Audio player with waveform indicator, loop mode, and transcript log.
video-evidence Add Video VD Video playback card with scene timestamping and observation notes.
suspect-profile Add Profile PF Forensic suspect dossier with surveillance status and risk level slider.
thread-hub Add Thread Hub HB Central thesis card with lead checklist and active thread counter radar.
map-node Add Map MP Tactical field map with custom incident marker pins and route notes.
timeline-event Add Timeline TM Chronological event card with date/time selectors and witness records.
poll-node Add Poll PL Hypothesis consensus card with vote counters and percentage bars.
checklist-board Add Checklist CK Multi-item investigation checklist with progress tracking.
interrogation-log Add Log LG Dialogue record tracking interviewer questions and suspect replies.
shape-node Add Shape SH Geometric diagramming marker (Rectangle, Circle, Triangle, Diamond).
gif-node Add GIF GF Animated GIF evidence viewer for surveillance loop analysis.

Professional & Domain-Specific Tools (32)

PrimeTrace adapts beyond crime scenes to 11 distinct professional domains:

πŸ’» Software Engineering & Architecture

  • Project Brief Card (EN): Scope, constraints, technical risks, and expected deliverable milestones.
  • Requirement Spec Card (SE): Acceptance criteria, edge cases, and API contracts.
  • Milestone Tracker (MS): Multi-phase software delivery roadmap with QA gates.
  • Bug Tracker Board (BG): Defect logs with severity ratings, reproduction steps, and stack traces.
  • API Contract Card (AP): REST/GraphQL route definitions, schemas, and error codes.
  • System Design Block (SD): Subsystem architecture, data flow diagrams, and capacity calculations.
  • Architecture Blueprint (AR): Structural layout, materials checklist, and code approval stamps.

βš–οΈ Law Enforcement & Legal Practice

  • Case Brief Card (LW): Legal arguments, applicable statutes, facts, and hearing preparation.
  • Court Hearing Timeline (CT): Hearing dates, filing deadlines, and judge rulings.
  • Evidence Chain Log (EC): Chain of custody log tracking item transfer, tags, and timestamps.
  • Witness Statement Card (WS): Witness testimony, credibility check, and contradiction logs.
  • Incident Report (IR): First-responder emergency summary and escalation records.
  • Patrol Route Planner (PR): Patrol sectors, officer shift checkpoints, and perimeter safety notes.

πŸ₯ Medical, Hospital & Healthcare

  • Patient Summary (PS): Chief complaints, vitals summary, triage level, and treatment plan.
  • Vitals Monitor (VM): Heart rate, SpO2, blood pressure, and alarm threshold logging.
  • Prescription Plan (RX): Drug administration plan, dosage schedules, and contraindications.
  • Medication Schedule (MS): Shift-by-shift nursing medication rounds and side effect tracking.
  • Nursing Care Plan (NC): Nursing interventions, patient education goals, and handover notes.

πŸŽ“ Education & Academic Research

  • Lesson Planner (LP): Educational session objectives, lecture flow, activities, and evaluations.
  • Attendance Tracker (AT): Class attendance grid, absence reasons, and guardian follow-up notes.
  • Assignment Tracker (AS): Task deadlines, rubric criteria, and draft submission tracking.
  • Study Timetable (ST): Spaced-repetition revision schedule and focus blocks.
  • Exam Revision Board (EX): Mock test metrics, weakness review, and confidence scoring.

πŸ”¨ Construction, Trade & Maintenance

  • Material Estimate Sheet (MT): Material takeoff quantities, unit rates, and vendor lead times.
  • Labour Shift Roster (LR): On-site workforce shift allocation and safety briefings.
  • Maintenance Checklist (PM): Preventative fixture inspection and replacement logging.
  • Plumbing Job Sheet (PJ): Service call diagnostic, parts breakdown, and customer sign-off.

🌾 Agriculture & Household Operations

  • Crop Cycle Planner (CR): Sowing schedule, irrigation cycles, and harvest windows.
  • Field Operations Card (FO): Crew deployment, tractor/equipment fuel tracking, and weather notes.
  • Household Chore Planner (HC): Weekly domestic responsibilities and task ownership.

🎨 Creative Arts & Production

  • Art Concept Moodboard (AR): Visual theme direction, palette swatches, and reference links.
  • Creative Production Card (CP): Creative pipeline milestones (Draft, Peer Review, Final Cut, Publish).

πŸ’Ύ Storage, Persistence & The .ptcase Binary Format

Storage Subsystem Architecture

PrimeTrace implements a dual-tier storage strategy to ensure fast initialization and zero data loss:

graph TD
    BoardState[Board State Change] --> Splitter{Data Type Classifier}
    Splitter -->|Lightweight Meta & Layout| LS[Scoped LocalStorage Engine]
    Splitter -->|Heavy Media Blobs| IDB[IndexedDB Blob Vault]
    LS --> OriginPrefix["Key: detective-board:node:{id}@origin-{hash}"]
    IDB --> BlobStore["ObjectStore: 'blobs' in 'detective-board' DB"]
            
  1. Origin Scoping: All storage keys are partitioned using an origin token (e.g., @origin-localhost-5173 or @origin-desktop), completely preventing namespace collisions between projects or environments.
  2. Media Blob Vault: Large images, audio clips, and video files are cached in IndexedDB as raw binary Blob instances, keeping localStorage lightweight and fast.
  3. Image Compression Pipeline: Uploaded photos are automatically compressed via HTML5 Canvas using progressive JPEG/WebP compression to prevent memory exhaustion.

The .ptcase Binary Specification

PrimeTrace defines its own proprietary, single-file binary container format (.ptcase):

+---------------------------------------------------------------------------------+
| Offset (Bytes) | Field Name            | Data Type     | Value / Description    |
+----------------+-----------------------+---------------+------------------------+
| 0 .. 5         | Magic ASCII Header    | 6 bytes       | "PTCASE" (0x50..0x45)  |
| 6              | Format Version        | uint8         | 0x01                   |
| 7              | Flags                 | uint8         | 0x00 (Reserved)        |
| 8 .. 15        | Timestamp             | uint64 (BE)   | Milliseconds since epoch|
| 16 .. 19       | Compressed Payload Len| uint32 (BE)   | Length of Gzip stream  |
| 20 .. (N-4)    | Payload Data          | Binary (var)  | Gzip-compressed JSON   |
| (N-3) .. N     | Checksum              | uint32 (BE)   | CRC-32 (ISO 3309)      |
+----------------+-----------------------+---------------+------------------------+
  • Integrity Verification: Decoders validate the PTCASE magic bytes and calculate a CRC-32 checksum across the payload. If corrupted, import fails with an explicit integrity warning.
  • Streaming Compression: Uses the native Web Stream APIs (CompressionStream("gzip") and DecompressionStream("gzip")) for compression speed without external dependencies.
  • Windows File Association: Registered in Windows through NSIS installer configuration (electron-builder.yml), giving .ptcase files dedicated system icons and double-click opening capability.

πŸ‘» Ghost Signatureβ„’ Deterministic Identity

PrimeTrace features Ghost Signatureβ„’, a zero-cookie client identification technology that gives each workstation a unique investigative persona:

  1. Entropy Harvester: Collects an 11-factor deterministic device vector:
    • Screen resolution, color depth, pixel depth, and device pixel ratio.
    • Hardware concurrency (CPU core count) and approximate device memory.
    • System timezone and user preferred language arrays.
    • Font Canvas Probe: Measures subtle character rendering differences across 23 candidate fonts (Inter, JetBrains Mono, Consolas, Bahnschrift, Garamond, etc.) to detect OS typography fingerprints.
  2. Cryptographic Hashing: Hashes the vector via crypto.subtle.SHA-256 (falling back to 32-bit FNV-1a when SubtleCrypto is blocked).
  3. Ghost Identity & Charcoal Personality:
    • Generates a formatted Ghost ID: xxxx-xxxx (e.g., 4a2f-9b10).
    • Evaluates hash parity:
      • Even Parity: Assigns blue-grey-charcoal (#3b4653).
      • Odd Parity: Assigns warm-black-charcoal (#3c3028).
    • Injects the theme directly into the DOM document element (--ghost-charcoal), giving each device an ambient visual identity.

πŸ“‚ Project Structure & File Tree

PrimeBoard-main/
β”œβ”€β”€ README.md                          # Master Project Documentation & Visual Guide
β”œβ”€β”€ Screenshots/                       # 14 Full-Resolution UI Screenshots
β”‚   β”œβ”€β”€ Screenshot (1109).png          # Main Investigation Board Overview
β”‚   β”œβ”€β”€ Screenshot (1110).png          # Canvas Operations & Multi-Format Export Sidebar
β”‚   β”œβ”€β”€ Screenshot (1111).png          # 46-Tool Multi-Disciplinary Catalog & Quick Dock
β”‚   β”œβ”€β”€ Screenshot (1112).png          # Zoomed-In Audio Evidence & Thread Hub Node
β”‚   β”œβ”€β”€ Screenshot (1113).png          # Suspect Profile & Threat Assessment Dossier
β”‚   β”œβ”€β”€ Screenshot (1114).png          # Sticky Note & Sawtooth Zigzag String
β”‚   β”œβ”€β”€ Screenshot (1151).png          # Real-World Case ("Phot Audio Test") Overview
β”‚   β”œβ”€β”€ Screenshot (1152).png          # Micro-Inspection of Notes & Typewriter Parchment
β”‚   β”œβ”€β”€ Screenshot (1153).png          # Polaroid Photo Node with Border Swatch
β”‚   β”œβ”€β”€ Screenshot (1155).png          # Video Evidence Node with Mute Toggle & Notes
β”‚   β”œβ”€β”€ Screenshot (1156).png          # Parchment Texture & Dashed Cyan Thread Close-up
β”‚   β”œβ”€β”€ Screenshot (1163).png          # Cinematic Sequence Playback Engine & Floating Dock
β”‚   β”œβ”€β”€ Screenshot (1164).png          # Macro Constellation Graph (19% Zoom)
β”‚   └── Screenshot (1165).png          # Orthogonal Sequence Preview & Step Badges
β”‚
└── Main_App/                          # Production Application Source Code
    β”œβ”€β”€ build/                         # Windows Desktop Build Assets (icon.ico)
    β”œβ”€β”€ build-win.cjs                  # Windows Packaging Orchestration Script
    β”œβ”€β”€ png-to-ico.cjs                 # High-Resolution Icon Conversion Utility
    β”œβ”€β”€ electron-builder.yml           # NSIS Windows Installer Configuration
    β”œβ”€β”€ wrangler.toml                  # Cloudflare Pages Deployment Config
    β”œβ”€β”€ package.json                   # Project Manifest & NPM Scripts
    β”œβ”€β”€ tsconfig.json                  # TypeScript 6 Strict Compiler Options
    β”œβ”€β”€ vite.config.ts                 # Vite 8 Build Configuration
    β”œβ”€β”€ index.html                     # HTML5 Entry Document & Preload Meta
    β”‚
    β”œβ”€β”€ electron/                      # Electron 35 Desktop Shell
    β”‚   β”œβ”€β”€ main.cjs                   # Native Window Lifecycle, IPC & File Handlers
    β”‚   └── preload.cjs                # Secure Preload Context Bridge
    β”‚
    └── src/                           # React 19 Frontend Codebase
        β”œβ”€β”€ main.tsx                   # Bootstrapper & RuntimeErrorBoundary
        β”œβ”€β”€ App.tsx                    # Root Component Container
        β”‚
        β”œβ”€β”€ canvas/                    # Infinite 2D Vector Canvas Core
        β”‚   β”œβ”€β”€ InfiniteCanvas.tsx     # Viewport Container & Pan/Zoom Event Loop
        β”‚   β”œβ”€β”€ background/            # Canvas Background Modes (Grid vs. Studio Plane)
        β”‚   β”œβ”€β”€ hooks/
        β”‚   β”‚   β”œβ”€β”€ useInfiniteCamera.ts # Affine Matrix Camera Controller
        β”‚   β”‚   └── useElementSize.ts    # ResizeObserver Viewport Hook
        β”‚   └── math/
        β”‚       └── matrix2d.ts        # 6-Tuple Affine Math, Inversion & Screen-to-World
        β”‚
        β”œβ”€β”€ board/                     # Detective Board Preset & Logic
        β”‚   β”œβ”€β”€ DetectiveBoardCanvas.tsx # Canvas Provider & Event Bridge
        β”‚   β”œβ”€β”€ DetectiveBoardPreset.tsx # Master State Coordinator (109KB of Logic)
        β”‚   β”œβ”€β”€ theme.css              # Dark Detective Design System & Glassmorphism
        β”‚   β”œβ”€β”€ toolCatalog.ts         # 46 Tools Definitions & Category Registry
        β”‚   β”œβ”€β”€ sequencePlayback.ts    # Cinematic Storytelling State Machine
        β”‚   β”œβ”€β”€ SequencePlaybackControls.tsx # Floating Playback Controller Dock
        β”‚   β”œβ”€β”€ SequencePlaybackOverlay.tsx  # Playback Badges & Focus Highlight Layer
        β”‚   β”‚
        β”‚   β”œβ”€β”€ components/            # 14 Forensic Node UI Components
        β”‚   β”‚   β”œβ”€β”€ DraggableNode.tsx          # Universal Transform & Pin Wrapper
        β”‚   β”‚   β”œβ”€β”€ AudioEvidenceNode.tsx      # Audio Player & Transcript Card
        β”‚   β”‚   β”œβ”€β”€ VideoEvidenceNode.tsx      # Video Evidence Player Card
        β”‚   β”‚   β”œβ”€β”€ PhotoDropNode.tsx          # Polaroid Evidence Card
        β”‚   β”‚   β”œβ”€β”€ EvidenceDocumentNode.tsx   # Aged Parchment Dossier Card
        β”‚   β”‚   β”œβ”€β”€ SuspectProfileNode.tsx     # Suspect Dossier & Risk Slider Card
        β”‚   β”‚   β”œβ”€β”€ ThreadHubNode.tsx          # Central Hypothesis & Radar Counter
        β”‚   β”‚   β”œβ”€β”€ StickyNoteNode.tsx         # Handwritten Sticky Note Card
        β”‚   β”‚   β”œβ”€β”€ ChecklistBoardNode.tsx     # Investigation Task Checklist Card
        β”‚   β”‚   β”œβ”€β”€ TimelineEventNode.tsx      # Chronological Incident Card
        β”‚   β”‚   β”œβ”€β”€ MapNode.tsx                # Tactical Field Map & Pin Markers
        β”‚   β”‚   β”œβ”€β”€ PollNode.tsx               # Hypothesis Voting & Motive Card
        β”‚   β”‚   β”œβ”€β”€ InterrogationLogNode.tsx   # Witness/Suspect Q&A Transcript
        β”‚   β”‚   β”œβ”€β”€ ShapeNode.tsx              # Geometric Forensic Diagramming
        β”‚   β”‚   β”œβ”€β”€ GifNode.tsx                # Surveillance Animated Loop Card
        β”‚   β”‚   β”œβ”€β”€ ProfessionTemplateNode.tsx # Adaptable 32-Profession Card
        β”‚   β”‚   └── Icons.tsx                  # Custom High-Contrast SVG Icons
        β”‚   β”‚
        β”‚   β”œβ”€β”€ connections/           # Physical Thread System
        β”‚   β”‚   β”œβ”€β”€ BoardConnectionsContext.tsx # Threads State & Anchor Drag Context
        β”‚   β”‚   β”œβ”€β”€ BoardConnectionsLayer.tsx   # Real-Time SVG Thread Path Renderer
        β”‚   β”‚   └── connectionMath.ts           # Dynamic Bezier & Sag Calculations
        β”‚   β”‚
        β”‚   └── utils/                 # Utility Libraries
        β”‚       β”œβ”€β”€ ptcaseFormat.ts    # .ptcase Binary Container Encoder/Decoder
        β”‚       β”œβ”€β”€ boardExport.ts     # PNG, SVG, WEBP, and PDF Generators
        β”‚       β”œβ”€β”€ imageCompression.ts# Canvas Progressive Image Compression
        β”‚       └── zIndex.ts          # Z-Index Elevation Manager
        β”‚
        β”œβ”€β”€ ghost/                     # Workstation Identity
        β”‚   └── ghostSignature.ts      # Zero-Cookie Hardware & Font Fingerprinting
        β”‚
        └── storage/                   # Multi-Tier Persistence
            └── boardStorage.ts        # Scoped IndexedDB + LocalStorage Wrapper

πŸ’» Technology Stack

Layer Technology Version Purpose
Runtime Framework React ^19.2.4 Component state, deferred rendering & UI tree
Language TypeScript ^6.0.2 Strict type safety, interface contracts
Desktop Wrapper Electron ^35.2.1 Native desktop window, Windows file associations
Desktop Bundler Electron-Builder ^26.0.12 Production NSIS x64 installer generation
Frontend Tooling Vite ^8.0.5 Instant HMR development server & ES rollup
Icons & Glyphs Lucide React ^1.7.0 Modern, clean vector interface iconography
Media Database IndexedDB Native / idb-keyval Local caching of high-resolution media blobs
Identity Engine @fingerprintjs ^5.1.0 Browser hardware entropy collection
Edge Deployment Cloudflare Pages 2026 Compatible Static distribution & serverless hosting

πŸš€ Installation, Build & Deployment Guide

Prerequisites

  • Node.js: Version >= 20.19.0 required.
  • NPM: Version >= 10.0.0.
  • Operating System: Windows 10/11 (for desktop installer generation), macOS or Linux (for web development).

Web Development

To run the web version locally in your browser with hot module replacement:

# 1. Navigate to the application directory
cd e:/PrimeBoard-main/Main_App

# 2. Install all dependencies
npm install

# 3. Start the Vite development server
npm run dev

Open your browser and navigate to: http://localhost:5173.

Desktop App (Electron)

To run the full native desktop version with Electron IPC bridges and desktop window management:

cd e:/PrimeBoard-main/Main_App

# Launches Vite in background and opens the Electron native window
npm run electron:dev

Production Packaging (Windows NSIS x64)

To build a standalone, distributable Windows .exe installer complete with desktop shortcuts, Start Menu integration, and .ptcase file associations:

cd e:/PrimeBoard-main/Main_App

# Generates production bundle and creates the NSIS installer
npm run electron:build

The compiled installer will be saved to:
e:/PrimeBoard-main/Main_App/release/PrimeTrace Setup 1.0.0.exe

Cloudflare Pages Deployment

PrimeTrace is edge-ready and includes a configured wrangler.toml:

cd e:/PrimeBoard-main/Main_App

# 1. Build the production web bundle
npm run build

# 2. Deploy to Cloudflare Pages
npx wrangler pages deploy dist --project-name=primetrace

⌨️ Keyboard Shortcuts & Gestures

Key Combination Action Context
Space + Drag Pan Canvas Anywhere on the canvas viewport
Mouse Wheel Zoom In / Zoom Out Focused at current cursor coordinate
Middle Click + Drag Fast Viewport Pan Pan without needing to press Space
Ctrl + Z Undo Undo last node or connection modification
Ctrl + Y / Ctrl+Shift+Z Redo Redo previously undone action
Escape Cancel / Exit Dismiss active connection drag, exit playback
Right Click (on library tool) Pin / Unpin Toggle tool visibility in bottom quick dock
Click on Metallic Pin Initiate Thread Drag to another node's pin to link them

πŸ“œ License & Credits

Author & Engineering

  • Architect & Developer: DETHA BY AKSHIT TYAGI
  • Project Repository: PrimeBoard-main / PrimeTrace
  • Application Identification: com.primetrace.app
  • File Format: PrimeTrace Case File (.ptcase)

License

This project is licensed under the ISC License. You are free to inspect, modify, and build upon this software for personal and professional investigative workspaces.


PrimeTrace β€” Where every thread leads to the truth.

⬆ Back to Top