# ashish7802/ghostprint architecture

> Architecture diagram of the GitHub repository ashish7802/ghostprint, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ashish7802/ghostprint
- Repository: https://github.com/ashish7802/ghostprint

## Overview

GhostPrint v2 is a browser-based digital-forensics attribution workspace. An analyst selects a seeded case, submits an artifact through the RAM safety gate, examines forensic signals and identity links, reviews custody records, and exports STIX or a signed PDF dossier. The app coordinates the views and case state; forensic modules provide analysis and hashing. The graph follows shown imports and calls; unsampled subsystem behavior and external collection services are not inferred.

Main entry points: [`src/App.tsx`](https://github.com/ashish7802/ghostprint/blob/main/src/App.tsx) (Workspace Coordinator), [`src/components/ForensicLabView.tsx`](https://github.com/ashish7802/ghostprint/blob/main/src/components/ForensicLabView.tsx) (Forensic Lab), [`src/forensics/bayesian.ts`](https://github.com/ashish7802/ghostprint/blob/main/src/forensics/bayesian.ts) (Bayesian Fusion), [`src/utils/pdfDossier.ts`](https://github.com/ashish7802/ghostprint/blob/main/src/utils/pdfDossier.ts) (Signed PDF Dossier)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Analyst Workspace"]
  node_app["Workspace Coordinator<br/>[App.tsx]"]
  node_sidebar["Workspace Navigation<br/>[Sidebar.tsx]"]
  node_topbar["Workspace Header<br/>[TopBar.tsx]"]
  node_architecture_view["Architecture Explorer"]
end

subgraph group_intake["Intake And Custody"]
  node_ingestion_gate["Artifact Safety Gate"]
  node_audit_log["Custody Audit Log<br/>[AuditLogView.tsx]"]
end

subgraph group_analysis["Forensic Analysis"]
  node_forensic_lab["Forensic Lab"]
  node_identity_graph["Identity Graph"]
  node_prnu_pdq["PRNU And PDQ<br/>[prnuPdq.ts]"]
  node_bayesian["Bayesian Fusion<br/>[bayesian.ts]"]
  node_gnn["Multi-Hop Graph Search<br/>[gnnGraphRag.ts]"]
  node_circadian["Circadian Analysis<br/>[circadian.ts]"]
  node_crypto["Crypto Bridge Analysis<br/>[cryptoBridge.ts]"]
  node_logistics["Logistics OPSEC Analysis<br/>[logisticsOpsec.ts]"]
  node_stylometry["Stylometry Analysis<br/>[stylometry.ts]"]
end

subgraph group_case_data["Case And Architecture Data"]
  node_seed_cases["Seed Case Records<br/>[seedCases.ts]"]
  node_case_types["Forensic Case Types<br/>[types.ts]"]
  node_architecture_spec["Architecture Specification"]
end

subgraph group_reporting["Reporting And Export"]
  node_dossier_view["Dossier Export View"]
  node_stix_exporter["STIX Exporter<br/>[stixExporter.ts]"]
  node_pdf_dossier["Signed PDF Dossier<br/>[pdfDossier.ts]"]
end

node_analyst(("Analyst"))

node_analyst -.->|"uses"| node_app
node_app -->|"renders"| node_sidebar
node_app -->|"renders"| node_topbar
node_app -->|"routes to"| node_forensic_lab
node_app -->|"routes to"| node_identity_graph
node_app -->|"routes to"| node_ingestion_gate
node_app -->|"routes to"| node_audit_log
node_app -->|"routes to"| node_dossier_view
node_app -->|"routes to"| node_architecture_view
node_app -->|"loads cases"| node_seed_cases
node_app -->|"computes fusion"| node_bayesian
node_app -->|"quick exports"| node_pdf_dossier
node_ingestion_gate -->|"checks artifact"| node_prnu_pdq
node_forensic_lab -->|"analyzes media"| node_prnu_pdq
node_forensic_lab -->|"analyzes timing"| node_circadian
node_forensic_lab -->|"analyzes crypto"| node_crypto
node_forensic_lab -->|"searches graph"| node_gnn
node_forensic_lab -->|"analyzes logistics"| node_logistics
node_forensic_lab -->|"analyzes text"| node_stylometry
node_identity_graph -->|"scores links"| node_bayesian
node_identity_graph -->|"predicts links"| node_gnn
node_architecture_view -->|"reads specification"| node_architecture_spec
node_architecture_view -->|"reads signals"| node_bayesian
node_dossier_view -->|"computes fusion"| node_bayesian
node_dossier_view -->|"builds STIX"| node_stix_exporter
node_dossier_view -->|"generates PDF"| node_pdf_dossier
node_audit_log -->|"uses exporter"| node_stix_exporter
node_seed_cases -->|"hashes custody"| node_stix_exporter
node_stix_exporter -->|"computes fusion"| node_bayesian
node_pdf_dossier -->|"computes fusion"| node_bayesian
node_pdf_dossier -->|"predicts links"| node_gnn
node_pdf_dossier -->|"hashes manifest"| node_stix_exporter

click node_app "https://github.com/ashish7802/ghostprint/blob/main/src/App.tsx"
click node_sidebar "https://github.com/ashish7802/ghostprint/blob/main/src/components/Sidebar.tsx"
click node_topbar "https://github.com/ashish7802/ghostprint/blob/main/src/components/TopBar.tsx"
click node_forensic_lab "https://github.com/ashish7802/ghostprint/blob/main/src/components/ForensicLabView.tsx"
click node_identity_graph "https://github.com/ashish7802/ghostprint/blob/main/src/components/IdentityGraphView.tsx"
click node_ingestion_gate "https://github.com/ashish7802/ghostprint/blob/main/src/components/IngestionGateView.tsx"
click node_audit_log "https://github.com/ashish7802/ghostprint/blob/main/src/components/AuditLogView.tsx"
click node_prnu_pdq "https://github.com/ashish7802/ghostprint/blob/main/src/forensics/prnuPdq.ts"
click node_bayesian "https://github.com/ashish7802/ghostprint/blob/main/src/forensics/bayesian.ts"
click node_gnn "https://github.com/ashish7802/ghostprint/blob/main/src/forensics/gnnGraphRag.ts"
click node_circadian "https://github.com/ashish7802/ghostprint/blob/main/src/forensics/circadian.ts"
click node_crypto "https://github.com/ashish7802/ghostprint/blob/main/src/forensics/cryptoBridge.ts"
click node_logistics "https://github.com/ashish7802/ghostprint/blob/main/src/forensics/logisticsOpsec.ts"
click node_stylometry "https://github.com/ashish7802/ghostprint/blob/main/src/forensics/stylometry.ts"
click node_seed_cases "https://github.com/ashish7802/ghostprint/blob/main/src/data/seedCases.ts"
click node_case_types "https://github.com/ashish7802/ghostprint/blob/main/src/forensics/types.ts"
click node_architecture_view "https://github.com/ashish7802/ghostprint/blob/main/src/components/ArchitectureView.tsx"
click node_architecture_spec "https://github.com/ashish7802/ghostprint/blob/main/src/data/architectureSpec.ts"
click node_dossier_view "https://github.com/ashish7802/ghostprint/blob/main/src/components/DossierExportView.tsx"
click node_stix_exporter "https://github.com/ashish7802/ghostprint/blob/main/src/forensics/stixExporter.ts"
click node_pdf_dossier "https://github.com/ashish7802/ghostprint/blob/main/src/utils/pdfDossier.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_sidebar,node_topbar,node_architecture_view toneBlue
class node_ingestion_gate,node_audit_log toneAmber
class node_forensic_lab,node_identity_graph,node_prnu_pdq,node_bayesian,node_gnn,node_circadian,node_crypto,node_logistics,node_stylometry toneMint
class node_seed_cases,node_case_types,node_architecture_spec toneRose
class node_dossier_view,node_stix_exporter,node_pdf_dossier,node_analyst toneIndigo
```

## Components

### Analyst Workspace

- [Workspace Coordinator](https://github.com/ashish7802/ghostprint/blob/main/src/App.tsx): `src/App.tsx`
- [Workspace Navigation](https://github.com/ashish7802/ghostprint/blob/main/src/components/Sidebar.tsx): `src/components/Sidebar.tsx`
- [Workspace Header](https://github.com/ashish7802/ghostprint/blob/main/src/components/TopBar.tsx): `src/components/TopBar.tsx`
- [Architecture Explorer](https://github.com/ashish7802/ghostprint/blob/main/src/components/ArchitectureView.tsx): `src/components/ArchitectureView.tsx`

### Intake And Custody

- [Artifact Safety Gate](https://github.com/ashish7802/ghostprint/blob/main/src/components/IngestionGateView.tsx): `src/components/IngestionGateView.tsx`
- [Custody Audit Log](https://github.com/ashish7802/ghostprint/blob/main/src/components/AuditLogView.tsx): `src/components/AuditLogView.tsx`

### Forensic Analysis

- [Forensic Lab](https://github.com/ashish7802/ghostprint/blob/main/src/components/ForensicLabView.tsx): `src/components/ForensicLabView.tsx`
- [Identity Graph](https://github.com/ashish7802/ghostprint/blob/main/src/components/IdentityGraphView.tsx): `src/components/IdentityGraphView.tsx`
- [PRNU And PDQ](https://github.com/ashish7802/ghostprint/blob/main/src/forensics/prnuPdq.ts): `src/forensics/prnuPdq.ts`
- [Bayesian Fusion](https://github.com/ashish7802/ghostprint/blob/main/src/forensics/bayesian.ts): `src/forensics/bayesian.ts`
- [Multi-Hop Graph Search](https://github.com/ashish7802/ghostprint/blob/main/src/forensics/gnnGraphRag.ts): `src/forensics/gnnGraphRag.ts`
- [Circadian Analysis](https://github.com/ashish7802/ghostprint/blob/main/src/forensics/circadian.ts): `src/forensics/circadian.ts`
- [Crypto Bridge Analysis](https://github.com/ashish7802/ghostprint/blob/main/src/forensics/cryptoBridge.ts): `src/forensics/cryptoBridge.ts`
- [Logistics OPSEC Analysis](https://github.com/ashish7802/ghostprint/blob/main/src/forensics/logisticsOpsec.ts): `src/forensics/logisticsOpsec.ts`
- [Stylometry Analysis](https://github.com/ashish7802/ghostprint/blob/main/src/forensics/stylometry.ts): `src/forensics/stylometry.ts`

### Case And Architecture Data

- [Seed Case Records](https://github.com/ashish7802/ghostprint/blob/main/src/data/seedCases.ts): `src/data/seedCases.ts`
- [Forensic Case Types](https://github.com/ashish7802/ghostprint/blob/main/src/forensics/types.ts): `src/forensics/types.ts`
- [Architecture Specification](https://github.com/ashish7802/ghostprint/blob/main/src/data/architectureSpec.ts): `src/data/architectureSpec.ts`

### Reporting And Export

- [Dossier Export View](https://github.com/ashish7802/ghostprint/blob/main/src/components/DossierExportView.tsx): `src/components/DossierExportView.tsx`
- [STIX Exporter](https://github.com/ashish7802/ghostprint/blob/main/src/forensics/stixExporter.ts): `src/forensics/stixExporter.ts`
- [Signed PDF Dossier](https://github.com/ashish7802/ghostprint/blob/main/src/utils/pdfDossier.ts): `src/utils/pdfDossier.ts`

### Other components

- **Analyst**

## Connections

- Analyst → Workspace Coordinator: uses
- Workspace Coordinator → Workspace Navigation: renders (evidence: `src/App.tsx`)
- Workspace Coordinator → Workspace Header: renders (evidence: `src/App.tsx`)
- Workspace Coordinator → Forensic Lab: routes to (evidence: `src/App.tsx`)
- Workspace Coordinator → Identity Graph: routes to (evidence: `src/App.tsx`)
- Workspace Coordinator → Artifact Safety Gate: routes to (evidence: `src/App.tsx`)
- Workspace Coordinator → Custody Audit Log: routes to (evidence: `src/App.tsx`)
- Workspace Coordinator → Dossier Export View: routes to (evidence: `src/App.tsx`)
- Workspace Coordinator → Architecture Explorer: routes to (evidence: `src/App.tsx`)
- Workspace Coordinator → Seed Case Records: loads cases (evidence: `src/App.tsx`)
- Workspace Coordinator → Bayesian Fusion: computes fusion (evidence: `src/App.tsx`)
- Workspace Coordinator → Signed PDF Dossier: quick exports (evidence: `src/App.tsx`)
- Artifact Safety Gate → PRNU And PDQ: checks artifact (evidence: `src/components/IngestionGateView.tsx`)
- Forensic Lab → PRNU And PDQ: analyzes media (evidence: `src/components/ForensicLabView.tsx`)
- Forensic Lab → Circadian Analysis: analyzes timing (evidence: `src/components/ForensicLabView.tsx`)
- Forensic Lab → Crypto Bridge Analysis: analyzes crypto (evidence: `src/components/ForensicLabView.tsx`)
- Forensic Lab → Multi-Hop Graph Search: searches graph (evidence: `src/components/ForensicLabView.tsx`)
- Forensic Lab → Logistics OPSEC Analysis: analyzes logistics (evidence: `src/components/ForensicLabView.tsx`)
- Forensic Lab → Stylometry Analysis: analyzes text (evidence: `src/components/ForensicLabView.tsx`)
- Identity Graph → Bayesian Fusion: scores links (evidence: `src/components/IdentityGraphView.tsx`)
- Identity Graph → Multi-Hop Graph Search: predicts links (evidence: `src/components/IdentityGraphView.tsx`)
- Architecture Explorer → Architecture Specification: reads specification (evidence: `src/components/ArchitectureView.tsx`)
- Architecture Explorer → Bayesian Fusion: reads signals (evidence: `src/components/ArchitectureView.tsx`)
- Dossier Export View → Bayesian Fusion: computes fusion (evidence: `src/components/DossierExportView.tsx`)
- Dossier Export View → STIX Exporter: builds STIX (evidence: `src/components/DossierExportView.tsx`)
- Dossier Export View → Signed PDF Dossier: generates PDF (evidence: `src/components/DossierExportView.tsx`)
- Custody Audit Log → STIX Exporter: uses exporter (evidence: `src/components/AuditLogView.tsx`)
- Seed Case Records → STIX Exporter: hashes custody (evidence: `src/data/seedCases.ts`)
- STIX Exporter → Bayesian Fusion: computes fusion (evidence: `src/forensics/stixExporter.ts`)
- Signed PDF Dossier → Bayesian Fusion: computes fusion (evidence: `src/utils/pdfDossier.ts`)
- Signed PDF Dossier → Multi-Hop Graph Search: predicts links (evidence: `src/utils/pdfDossier.ts`)
- Signed PDF Dossier → STIX Exporter: hashes manifest (evidence: `src/utils/pdfDossier.ts`)
