# mytechnotalent/pixelproof architecture

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

- Interactive diagram: https://gitdiagram.com/mytechnotalent/pixelproof
- Repository: https://github.com/mytechnotalent/pixelproof

## Overview

PixelProof is a command-line image-forensics toolkit. Users can run a quick metadata scan, a deep multi-pass analysis, or dedicated steganography operations; deep analysis combines forensic engines and can produce a Markdown/PDF report and provenance manifest. The README documents the principal detection capabilities, while the sampled excerpts do not show all deep-analysis orchestration details, so edges to imported subsystems rely on the SOURCE INDEX and documented behavior.

Main entry points: [`deep_analysis.py`](https://github.com/mytechnotalent/pixelproof/blob/main/deep_analysis.py) (Deep analysis), [`stego.py`](https://github.com/mytechnotalent/pixelproof/blob/main/stego.py) (Stego commands), [`pixelproof.py`](https://github.com/mytechnotalent/pixelproof/blob/main/pixelproof.py) (Quick scan), [`forensic_engine.py`](https://github.com/mytechnotalent/pixelproof/blob/main/forensic_engine.py) (Forensic engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["CLI entry points"]
  node_quick["Quick scan<br/>[pixelproof.py]"]
  node_deep["Deep analysis<br/>[deep_analysis.py]"]
  node_stego_cli["Stego commands<br/>[stego.py]"]
end

subgraph group_analysis["Image forensics"]
  node_basic_checks["Metadata checks<br/>[pixelproof.py]"]
  node_forensic["Forensic engine<br/>[forensic_engine.py]"]
  node_nation["Advanced passes"]
  node_signals["Forensic signals<br/>[deep_analysis.py]"]
end

subgraph group_outputs["Reports and provenance"]
  node_markdown["Markdown report<br/>[deep_analysis.py]"]
  node_pdf["PDF report<br/>[generate_pdf.py]"]
  node_provenance["Artifact manifest<br/>[provenance.py]"]
end

subgraph group_stego["Steganography"]
  node_stego_analysis["Stego detection<br/>[stego.py]"]
  node_stego_embed["Message encoding<br/>[stego.py]"]
  node_stego_extract["Message decoding<br/>[stego.py]"]
end

node_user(("Image analyst"))
node_analyst_result["Scan findings"]

node_user -->|"runs scan"| node_quick
node_quick -->|"checks metadata"| node_basic_checks
node_basic_checks -->|"prints verdict"| node_analyst_result
node_user -->|"runs analysis"| node_deep
node_deep -->|"uses engine"| node_forensic
node_deep -->|"runs passes"| node_nation
node_deep -->|"scans image"| node_stego_analysis
node_forensic -->|"contributes scores"| node_signals
node_nation -->|"contributes scores"| node_signals
node_signals -->|"reports assessment"| node_analyst_result
node_deep -->|"writes report"| node_markdown
node_deep -->|"generates PDF"| node_pdf
node_deep -->|"creates manifest"| node_provenance
node_user -->|"runs command"| node_stego_cli
node_stego_cli -->|"encodes payload"| node_stego_embed
node_stego_cli -->|"decodes payload"| node_stego_extract
node_stego_cli -->|"runs detection"| node_stego_analysis
node_stego_analysis -->|"reports verdict"| node_analyst_result

click node_quick "https://github.com/mytechnotalent/pixelproof/blob/main/pixelproof.py"
click node_deep "https://github.com/mytechnotalent/pixelproof/blob/main/deep_analysis.py"
click node_stego_cli "https://github.com/mytechnotalent/pixelproof/blob/main/stego.py"
click node_basic_checks "https://github.com/mytechnotalent/pixelproof/blob/main/pixelproof.py"
click node_forensic "https://github.com/mytechnotalent/pixelproof/blob/main/forensic_engine.py"
click node_nation "https://github.com/mytechnotalent/pixelproof/blob/main/nation_state_engine.py"
click node_signals "https://github.com/mytechnotalent/pixelproof/blob/main/deep_analysis.py"
click node_stego_analysis "https://github.com/mytechnotalent/pixelproof/blob/main/stego.py"
click node_stego_embed "https://github.com/mytechnotalent/pixelproof/blob/main/stego.py"
click node_stego_extract "https://github.com/mytechnotalent/pixelproof/blob/main/stego.py"
click node_markdown "https://github.com/mytechnotalent/pixelproof/blob/main/deep_analysis.py"
click node_pdf "https://github.com/mytechnotalent/pixelproof/blob/main/generate_pdf.py"
click node_provenance "https://github.com/mytechnotalent/pixelproof/blob/main/provenance.py"

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_quick,node_deep,node_stego_cli toneBlue
class node_basic_checks,node_forensic,node_nation,node_signals toneAmber
class node_markdown,node_pdf,node_provenance toneMint
class node_stego_analysis,node_stego_embed,node_stego_extract toneRose
class node_user,node_analyst_result toneIndigo
```

## Components

### CLI entry points

- [Quick scan](https://github.com/mytechnotalent/pixelproof/blob/main/pixelproof.py): `pixelproof.py`
- [Deep analysis](https://github.com/mytechnotalent/pixelproof/blob/main/deep_analysis.py): `deep_analysis.py`
- [Stego commands](https://github.com/mytechnotalent/pixelproof/blob/main/stego.py): `stego.py`

### Image forensics

- [Metadata checks](https://github.com/mytechnotalent/pixelproof/blob/main/pixelproof.py): `pixelproof.py`
- [Forensic engine](https://github.com/mytechnotalent/pixelproof/blob/main/forensic_engine.py): `forensic_engine.py`
- [Advanced passes](https://github.com/mytechnotalent/pixelproof/blob/main/nation_state_engine.py): `nation_state_engine.py`
- [Forensic signals](https://github.com/mytechnotalent/pixelproof/blob/main/deep_analysis.py): `deep_analysis.py`

### Reports and provenance

- [Markdown report](https://github.com/mytechnotalent/pixelproof/blob/main/deep_analysis.py): `deep_analysis.py`
- [PDF report](https://github.com/mytechnotalent/pixelproof/blob/main/generate_pdf.py): `generate_pdf.py`
- [Artifact manifest](https://github.com/mytechnotalent/pixelproof/blob/main/provenance.py): `provenance.py`

### Steganography

- [Stego detection](https://github.com/mytechnotalent/pixelproof/blob/main/stego.py): `stego.py`
- [Message encoding](https://github.com/mytechnotalent/pixelproof/blob/main/stego.py): `stego.py`
- [Message decoding](https://github.com/mytechnotalent/pixelproof/blob/main/stego.py): `stego.py`

### Other components

- **Image analyst**
- **Scan findings**

## Connections

- Image analyst → Quick scan: runs scan (evidence: `README.md`)
- Quick scan → Metadata checks: checks metadata (evidence: `pixelproof.py`)
- Metadata checks → Scan findings: prints verdict (evidence: `pixelproof.py`)
- Image analyst → Deep analysis: runs analysis (evidence: `README.md`)
- Deep analysis → Forensic engine: uses engine (evidence: `deep_analysis.py`)
- Deep analysis → Advanced passes: runs passes (evidence: `deep_analysis.py`)
- Deep analysis → Stego detection: scans image (evidence: `deep_analysis.py`)
- Forensic engine → Forensic signals: contributes scores (evidence: `forensic_engine.py`)
- Advanced passes → Forensic signals: contributes scores (evidence: `deep_analysis.py`)
- Forensic signals → Scan findings: reports assessment (evidence: `README.md`)
- Deep analysis → Markdown report: writes report (evidence: `README.md`)
- Deep analysis → PDF report: generates PDF (evidence: `deep_analysis.py`)
- Deep analysis → Artifact manifest: creates manifest (evidence: `deep_analysis.py`)
- Image analyst → Stego commands: runs command (evidence: `README.md`)
- Stego commands → Message encoding: encodes payload (evidence: `README.md`)
- Stego commands → Message decoding: decodes payload (evidence: `README.md`)
- Stego commands → Stego detection: runs detection (evidence: `README.md`)
- Stego detection → Scan findings: reports verdict (evidence: `README.md`)
