# shroudy-bit32/nist-live-cvt1-feed architecture

> Architecture diagram of the GitHub repository shroudy-bit32/nist-live-cvt1-feed, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shroudy-bit32/nist-live-cvt1-feed
- Repository: https://github.com/shroudy-bit32/nist-live-cvt1-feed

## Overview

This repository builds and distributes exact-unique MD5, SHA-1, and SHA-256 feeds from the NIST NSRL Modern database. The main workflow resolves and streams the upstream archive, inflates it in memory, carves SQLite pages, checkpoints sorted digest parts, merges those parts, and packages binary and DFIR text releases. The README documents the overall workflow and daily refresh; sampled source confirms the native carving components and packaging tools. Some orchestration and compatibility-layer details are documented but not fully sampled.

Main entry points: [`tools/stream_http_hash_filter.py`](https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/stream_http_hash_filter.py) (Stream and inflate), [`native/include/cvt/carve_engine.hpp`](https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/native/include/cvt/carve_engine.hpp) (Carve engine), [`tools/pack_release_assets.py`](https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/pack_release_assets.py) (Asset splitter), [`tools/speed_probe.py`](https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/speed_probe.py) (Speed probe)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Acquisition"]
  node_probe["Speed probe<br/>[speed_probe.py]"]
  node_stream["Stream and inflate"]
end

subgraph group_carve["Carving"]
  node_binding["Python binding<br/>[module.cpp]"]
  node_engine["Carve engine<br/>[carve_engine.hpp]"]
  node_sqlite["SQLite page parser<br/>[sqlite_carve.hpp]"]
  node_sink["Shard sink<br/>[shard_sink.hpp]"]
  node_parts["Checkpoint parts"]
end

subgraph group_outputs["Feed preparation"]
  node_merge["Part merger"]
  node_packs["CVT1 packs"]
  node_text["DFIR text export<br/>[cvt1_to_text.py]"]
  node_splitter["Asset splitter"]
end

subgraph group_delivery["Distribution"]
  node_assets["Release assets"]
  node_notes["Release notes"]
end

node_scheduler(("Daily pipeline"))
node_nist["NIST archive"]
node_github["GitHub Releases"]
node_dfir(("DFIR consumers"))

node_scheduler -->|"runs preflight"| node_probe
node_probe -->|"measures throughput"| node_nist
node_scheduler -->|"starts carve"| node_stream
node_stream -->|"streams archive"| node_nist
node_stream -->|"uses native engine"| node_binding
node_binding -->|"exposes"| node_engine
node_engine -->|"carves pages"| node_sqlite
node_engine -->|"offers digests"| node_sink
node_engine -->|"writes checkpoints"| node_parts
node_parts -->|"feeds merge"| node_merge
node_merge -->|"writes unique packs"| node_packs
node_stream -->|"writes CVT1 packs"| node_packs
node_packs -->|"converts to text"| node_text
node_packs -->|"packages binary"| node_splitter
node_text -->|"packages text"| node_splitter
node_splitter -->|"creates parts"| node_assets
node_assets -->|"publishes"| node_github
node_github -->|"provides asset list"| node_notes
node_notes -->|"updates notes"| node_github
node_github -->|"serves text feeds"| node_dfir

click node_probe "https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/speed_probe.py"
click node_stream "https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/stream_http_hash_filter.py"
click node_binding "https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/native/src/module.cpp"
click node_engine "https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/native/include/cvt/carve_engine.hpp"
click node_sqlite "https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/native/include/cvt/sqlite_carve.hpp"
click node_sink "https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/native/include/cvt/shard_sink.hpp"
click node_merge "https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/merge_cvt1_parts.py"
click node_text "https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/cvt1_to_text.py"
click node_splitter "https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/pack_release_assets.py"
click node_notes "https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/render_release_notes.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_probe,node_stream toneBlue
class node_binding,node_engine,node_sqlite,node_sink,node_parts toneAmber
class node_merge,node_packs,node_text,node_splitter toneMint
class node_assets,node_notes toneRose
class node_scheduler,node_nist,node_github,node_dfir toneIndigo
```

## Components

### Acquisition

- [Speed probe](https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/speed_probe.py): `tools/speed_probe.py`
- [Stream and inflate](https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/stream_http_hash_filter.py): `tools/stream_http_hash_filter.py`

### Carving

- [Python binding](https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/native/src/module.cpp): `native/src/module.cpp`
- [Carve engine](https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/native/include/cvt/carve_engine.hpp): `native/include/cvt/carve_engine.hpp`
- [SQLite page parser](https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/native/include/cvt/sqlite_carve.hpp): `native/include/cvt/sqlite_carve.hpp`
- [Shard sink](https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/native/include/cvt/shard_sink.hpp): `native/include/cvt/shard_sink.hpp`
- **Checkpoint parts**

### Feed preparation

- [Part merger](https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/merge_cvt1_parts.py): `tools/merge_cvt1_parts.py`
- **CVT1 packs**
- [DFIR text export](https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/cvt1_to_text.py): `tools/cvt1_to_text.py`
- [Asset splitter](https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/pack_release_assets.py): `tools/pack_release_assets.py`

### Distribution

- **Release assets**
- [Release notes](https://github.com/shroudy-bit32/nist-live-cvt1-feed/blob/main/tools/render_release_notes.py): `tools/render_release_notes.py`

### Other components

- **Daily pipeline**
- **NIST archive**
- **GitHub Releases**
- **DFIR consumers**

## Connections

- Daily pipeline → Speed probe: runs preflight (evidence: `README.md`)
- Speed probe → NIST archive: measures throughput (evidence: `tools/speed_probe.py`)
- Daily pipeline → Stream and inflate: starts carve (evidence: `README.md`)
- Stream and inflate → NIST archive: streams archive (evidence: `README.md`)
- Stream and inflate → Python binding: uses native engine (evidence: `tools/stream_http_hash_filter.py`)
- Python binding → Carve engine: exposes (evidence: `native/src/module.cpp`)
- Carve engine → SQLite page parser: carves pages (evidence: `native/include/cvt/carve_engine.hpp`)
- Carve engine → Shard sink: offers digests (evidence: `native/include/cvt/carve_engine.hpp`)
- Carve engine → Checkpoint parts: writes checkpoints (evidence: `README.md`)
- Checkpoint parts → Part merger: feeds merge (evidence: `tools/merge_cvt1_parts.py`)
- Part merger → CVT1 packs: writes unique packs (evidence: `tools/merge_cvt1_parts.py`)
- Stream and inflate → CVT1 packs: writes CVT1 packs (evidence: `README.md`)
- CVT1 packs → DFIR text export: converts to text (evidence: `tools/cvt1_to_text.py`)
- CVT1 packs → Asset splitter: packages binary (evidence: `README.md`)
- DFIR text export → Asset splitter: packages text (evidence: `README.md`)
- Asset splitter → Release assets: creates parts (evidence: `tools/pack_release_assets.py`)
- Release assets → GitHub Releases: publishes (evidence: `README.md`)
- GitHub Releases → Release notes: provides asset list (evidence: `tools/render_release_notes.py`)
- Release notes → GitHub Releases: updates notes (evidence: `README.md`)
- GitHub Releases → DFIR consumers: serves text feeds (evidence: `README.md`)
