# cyberviewtools/cyberview architecture

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

- Interactive diagram: https://gitdiagram.com/cyberviewtools/cyberview
- Repository: https://github.com/cyberviewtools/cyberview

## Overview

CyberView combines a public cyber-threat intelligence site and its automated research and review pipeline with a separately downloadable, authorization-gated network scanner. The main visitor workflow is to explore verified events, exploited vulnerabilities and context in the site, then optionally match them against a locally held environment profile. README documents several browser-only and optional features; source excerpts are strongest for the scanner’s command flow and selected data/review helpers, so unshown internal links are omitted.

Main entry points: [`scripts/lib/store.mjs`](https://github.com/cyberviewtools/cyberview/blob/main/scripts/lib/store.mjs) (Threat data), [`scanner/cyberview-scan.mjs`](https://github.com/cyberviewtools/cyberview/blob/main/scanner/cyberview-scan.mjs) (Scanner CLI), [`scanner/lib/scan.mjs`](https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/scan.mjs) (Scan orchestration), [`scanner/lib/probe.mjs`](https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/probe.mjs) (Network probing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pipeline["Threat data pipeline"]
  node_research["Scheduled research<br/>[run-job.mjs]"]
  node_review["Event review<br/>[review.mjs]"]
  node_library["Threat library<br/>[library-review.mjs]"]
  node_matching["Product matching<br/>[match-gold.mjs]"]
  node_data[("Threat data<br/>[store.mjs]")]
  node_validation["Record validation<br/>[validate.mjs]"]
end

subgraph group_site["Threat intelligence site"]
  node_siteapp["Map and timeline<br/>[app.js]"]
  node_archive["Archive search<br/>[archive.js]"]
  node_trends["Threat trends<br/>[trends.js]"]
  node_vulns["Vulnerability feed<br/>[vulnerabilities.js]"]
  node_profile["Local environment<br/>[workbench-lib.js]"]
  node_status["Context layers<br/>[status.js]"]
  node_cams["Traffic cameras<br/>[index.mjs]"]
end

subgraph group_scanner["Authorized scanner"]
  node_scannercli["Scanner CLI<br/>[cyberview-scan.mjs]"]
  node_scope["Scope authorization<br/>[scope.mjs]"]
  node_discovery["Host discovery<br/>[discover.mjs]"]
  node_scan["Scan orchestration<br/>[scan.mjs]"]
  node_probe["Network probing<br/>[probe.mjs]"]
  node_limits["Scan limits<br/>[limits.mjs]"]
  node_fingerprints["Service fingerprinting<br/>[fingerprint.mjs]"]
  node_researchfp["Research fingerprints<br/>[fp-research.mjs]"]
  node_paths["HTTP path rail<br/>[paths.mjs]"]
  node_scanreports["Scan reports<br/>[report.mjs]"]
  node_scanhtml["HTML report<br/>[html-report.mjs]"]
  node_offline["Offline commands<br/>[offline-cmds.mjs]"]
  node_coverage["KEV coverage<br/>[kev-coverage.mjs]"]
end

subgraph group_optional["Optional services"]
  node_contextservices["IODA and GDACS"]
  node_cameraapis["Camera sources"]
  node_account["Optional account<br/>[account.js]"]
  node_hoot["Hoot assistant<br/>[hoot-engine.js]"]
end

node_visitor(("Visitor"))

node_research -->|"commits leads"| node_data
node_review -->|"reviews events"| node_data
node_library -->|"reads and writes"| node_data
node_matching -->|"uses stored data"| node_data
node_data -->|"validated for builds"| node_validation
node_data -->|"feeds site bundle"| node_siteapp
node_visitor -->|"explores threats"| node_siteapp
node_visitor -->|"searches history"| node_archive
node_visitor -->|"compares trends"| node_trends
node_visitor -->|"checks exploited flaws"| node_vulns
node_visitor -->|"adds environment"| node_profile
node_profile -->|"matches locally"| node_siteapp
node_visitor -->|"opens context layers"| node_status
node_status -.->|"shows context from"| node_contextservices
node_visitor -->|"opens camera view"| node_cams
node_cams -->|"fetches images"| node_cameraapis
node_visitor -->|"opts into sync"| node_account
node_visitor -->|"asks locally"| node_hoot
node_scannercli -->|"checks authorization"| node_scope
node_scannercli -->|"runs discovery"| node_discovery
node_scannercli -->|"resolves scan scope"| node_scan
node_scannercli -->|"checks KEV coverage"| node_coverage
node_scannercli -->|"dispatches offline commands"| node_offline
node_scan -->|"probes targets"| node_probe
node_scan -->|"identifies services"| node_fingerprints
node_scan -->|"builds findings"| node_scanreports
node_probe -->|"acquires budgets"| node_limits
node_probe -.->|"checks approved paths"| node_paths
node_fingerprints -.->|"uses research rules"| node_researchfp
node_scanreports -.->|"renders report"| node_scanhtml

click node_research "https://github.com/cyberviewtools/cyberview/blob/main/scripts/run-job.mjs"
click node_review "https://github.com/cyberviewtools/cyberview/blob/main/scripts/review.mjs"
click node_library "https://github.com/cyberviewtools/cyberview/blob/main/scripts/library-review.mjs"
click node_matching "https://github.com/cyberviewtools/cyberview/blob/main/scripts/lib/match-gold.mjs"
click node_data "https://github.com/cyberviewtools/cyberview/blob/main/scripts/lib/store.mjs"
click node_validation "https://github.com/cyberviewtools/cyberview/blob/main/scripts/lib/validate.mjs"
click node_siteapp "https://github.com/cyberviewtools/cyberview/blob/main/site/app.js"
click node_archive "https://github.com/cyberviewtools/cyberview/blob/main/site/archive.js"
click node_trends "https://github.com/cyberviewtools/cyberview/blob/main/site/trends.js"
click node_vulns "https://github.com/cyberviewtools/cyberview/blob/main/site/vulnerabilities.js"
click node_profile "https://github.com/cyberviewtools/cyberview/blob/main/site/workbench-lib.js"
click node_status "https://github.com/cyberviewtools/cyberview/blob/main/site/status.js"
click node_cams "https://github.com/cyberviewtools/cyberview/blob/main/workers/cams/src/index.mjs"
click node_scannercli "https://github.com/cyberviewtools/cyberview/blob/main/scanner/cyberview-scan.mjs"
click node_scope "https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/scope.mjs"
click node_discovery "https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/discover.mjs"
click node_scan "https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/scan.mjs"
click node_probe "https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/probe.mjs"
click node_limits "https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/limits.mjs"
click node_fingerprints "https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/fingerprint.mjs"
click node_researchfp "https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/fp-research.mjs"
click node_paths "https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/paths.mjs"
click node_scanreports "https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/report.mjs"
click node_scanhtml "https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/html-report.mjs"
click node_offline "https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/offline-cmds.mjs"
click node_coverage "https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/kev-coverage.mjs"
click node_account "https://github.com/cyberviewtools/cyberview/blob/main/site/account.js"
click node_hoot "https://github.com/cyberviewtools/cyberview/blob/main/site/hoot-engine.js"

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_research,node_review,node_library,node_matching,node_data,node_validation toneBlue
class node_siteapp,node_archive,node_trends,node_vulns,node_profile,node_status,node_cams toneAmber
class node_scannercli,node_scope,node_discovery,node_scan,node_probe,node_limits,node_fingerprints,node_researchfp,node_paths,node_scanreports,node_scanhtml,node_offline,node_coverage toneMint
class node_contextservices,node_cameraapis,node_account,node_hoot toneRose
class node_visitor toneIndigo
```

## Components

### Threat data pipeline

- [Scheduled research](https://github.com/cyberviewtools/cyberview/blob/main/scripts/run-job.mjs): `scripts/run-job.mjs`
- [Event review](https://github.com/cyberviewtools/cyberview/blob/main/scripts/review.mjs): `scripts/review.mjs`
- [Threat library](https://github.com/cyberviewtools/cyberview/blob/main/scripts/library-review.mjs): `scripts/library-review.mjs`
- [Product matching](https://github.com/cyberviewtools/cyberview/blob/main/scripts/lib/match-gold.mjs): `scripts/lib/match-gold.mjs`
- [Threat data](https://github.com/cyberviewtools/cyberview/blob/main/scripts/lib/store.mjs): `scripts/lib/store.mjs`
- [Record validation](https://github.com/cyberviewtools/cyberview/blob/main/scripts/lib/validate.mjs): `scripts/lib/validate.mjs`

### Threat intelligence site

- [Map and timeline](https://github.com/cyberviewtools/cyberview/blob/main/site/app.js): `site/app.js`
- [Archive search](https://github.com/cyberviewtools/cyberview/blob/main/site/archive.js): `site/archive.js`
- [Threat trends](https://github.com/cyberviewtools/cyberview/blob/main/site/trends.js): `site/trends.js`
- [Vulnerability feed](https://github.com/cyberviewtools/cyberview/blob/main/site/vulnerabilities.js): `site/vulnerabilities.js`
- [Local environment](https://github.com/cyberviewtools/cyberview/blob/main/site/workbench-lib.js): `site/workbench-lib.js`
- [Context layers](https://github.com/cyberviewtools/cyberview/blob/main/site/status.js): `site/status.js`
- [Traffic cameras](https://github.com/cyberviewtools/cyberview/blob/main/workers/cams/src/index.mjs): `workers/cams/src/index.mjs`

### Authorized scanner

- [Scanner CLI](https://github.com/cyberviewtools/cyberview/blob/main/scanner/cyberview-scan.mjs): `scanner/cyberview-scan.mjs`
- [Scope authorization](https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/scope.mjs): `scanner/lib/scope.mjs`
- [Host discovery](https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/discover.mjs): `scanner/lib/discover.mjs`
- [Scan orchestration](https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/scan.mjs): `scanner/lib/scan.mjs`
- [Network probing](https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/probe.mjs): `scanner/lib/probe.mjs`
- [Scan limits](https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/limits.mjs): `scanner/lib/limits.mjs`
- [Service fingerprinting](https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/fingerprint.mjs): `scanner/lib/fingerprint.mjs`
- [Research fingerprints](https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/fp-research.mjs): `scanner/lib/fp-research.mjs`
- [HTTP path rail](https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/paths.mjs): `scanner/lib/paths.mjs`
- [Scan reports](https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/report.mjs): `scanner/lib/report.mjs`
- [HTML report](https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/html-report.mjs): `scanner/lib/html-report.mjs`
- [Offline commands](https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/offline-cmds.mjs): `scanner/lib/offline-cmds.mjs`
- [KEV coverage](https://github.com/cyberviewtools/cyberview/blob/main/scanner/lib/kev-coverage.mjs): `scanner/lib/kev-coverage.mjs`

### Optional services

- **IODA and GDACS**
- **Camera sources**
- [Optional account](https://github.com/cyberviewtools/cyberview/blob/main/site/account.js): `site/account.js`
- [Hoot assistant](https://github.com/cyberviewtools/cyberview/blob/main/site/hoot-engine.js): `site/hoot-engine.js`

### Other components

- **Visitor**

## Connections

- Scheduled research → Threat data: commits leads (evidence: `README.md`)
- Event review → Threat data: reviews events (evidence: `scripts/review.mjs`)
- Threat library → Threat data: reads and writes (evidence: `scripts/library-review.mjs`)
- Product matching → Threat data: uses stored data (evidence: `scripts/lib/match-gold.mjs`)
- Threat data → Record validation: validated for builds (evidence: `scripts/lib/validate.mjs`)
- Threat data → Map and timeline: feeds site bundle (evidence: `README.md`)
- Visitor → Map and timeline: explores threats (evidence: `README.md`)
- Visitor → Archive search: searches history (evidence: `README.md`)
- Visitor → Threat trends: compares trends (evidence: `README.md`)
- Visitor → Vulnerability feed: checks exploited flaws (evidence: `README.md`)
- Visitor → Local environment: adds environment (evidence: `README.md`)
- Local environment → Map and timeline: matches locally (evidence: `README.md`)
- Visitor → Context layers: opens context layers (evidence: `README.md`)
- Context layers → IODA and GDACS: shows context from (evidence: `README.md`)
- Visitor → Traffic cameras: opens camera view (evidence: `README.md`)
- Traffic cameras → Camera sources: fetches images (evidence: `README.md`)
- Visitor → Optional account: opts into sync (evidence: `README.md`)
- Visitor → Hoot assistant: asks locally (evidence: `README.md`)
- Scanner CLI → Scope authorization: checks authorization (evidence: `scanner/cyberview-scan.mjs`)
- Scanner CLI → Host discovery: runs discovery (evidence: `scanner/cyberview-scan.mjs`)
- Scanner CLI → Scan orchestration: resolves scan scope (evidence: `scanner/cyberview-scan.mjs`)
- Scanner CLI → KEV coverage: checks KEV coverage (evidence: `scanner/cyberview-scan.mjs`)
- Scanner CLI → Offline commands: dispatches offline commands (evidence: `scanner/cyberview-scan.mjs`)
- Scan orchestration → Network probing: probes targets (evidence: `scanner/lib/scan.mjs`)
- Scan orchestration → Service fingerprinting: identifies services (evidence: `scanner/lib/scan.mjs`)
- Scan orchestration → Scan reports: builds findings (evidence: `scanner/lib/scan.mjs`)
- Network probing → Scan limits: acquires budgets (evidence: `scanner/lib/probe.mjs`)
- Network probing → HTTP path rail: checks approved paths (evidence: `scanner/lib/probe.mjs`)
- Service fingerprinting → Research fingerprints: uses research rules (evidence: `scanner/lib/fp-research.mjs`)
- Scan reports → HTML report: renders report (evidence: `scanner/lib/html-report.mjs`)
