# lindblum/process-streamgraph architecture

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

- Interactive diagram: https://gitdiagram.com/lindblum/process-streamgraph
- Repository: https://github.com/lindblum/process-streamgraph
- Video tour (about a minute): https://gitdiagram.com/lindblum/process-streamgraph/video

## Overview

ProcessStreamgraph is a Windows desktop process and network monitor. The user-facing workflow starts in the WinForms application, which samples live processes and traffic, presents process metrics and history, and opens process or connection details. A separate safety-assessment capability rates programs and remote hosts using local file facts and external reputation or threat sources. The README is empty, so capability and call-flow evidence comes from the source index and sampled excerpts; unsampled modules are included where the index identifies them, but uncertain links are omitted.

Main entry points: [`MainForm.cs`](https://github.com/lindblum/process-streamgraph/blob/master/MainForm.cs) (Main window), [`SafetyService.cs`](https://github.com/lindblum/process-streamgraph/blob/master/SafetyService.cs) (Safety assessor), [`ProcessMonitor.cs`](https://github.com/lindblum/process-streamgraph/blob/master/ProcessMonitor.cs) (Process sampler), [`ConnectionsForm.cs`](https://github.com/lindblum/process-streamgraph/blob/master/ConnectionsForm.cs) (Connection window)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_entry["Application entry<br/>[Program.cs]"]
  node_main["Main window<br/>[MainForm.cs]"]
  node_tree["Process tree<br/>[ProcessTreeView.cs]"]
  node_graphs["Metric graphs"]
  node_theme["Theme styling<br/>[Theme.cs]"]
  node_menu["Process actions<br/>[ProcessMenu.cs]"]
end

subgraph group_monitor["Process monitoring"]
  node_monitor["Process sampler<br/>[ProcessMonitor.cs]"]
  node_details["Process details<br/>[ProcessDetails.cs]"]
end

subgraph group_network["Network inspection"]
  node_networkmon["Traffic capture<br/>[NetworkMonitor.cs]"]
  node_connections["Connection model<br/>[Connections.cs]"]
  node_connform["Connection window<br/>[ConnectionsForm.cs]"]
end

subgraph group_safety["Safety assessment"]
  node_safetyservice["Safety assessor<br/>[SafetyService.cs]"]
  node_safetyreport["Safety reports<br/>[Safety.cs]"]
  node_safetysources["File reputation<br/>[SafetySources.cs]"]
  node_hostsources["Host reputation<br/>[HostSources.cs]"]
  node_signature["File signatures<br/>[FileSignature.cs]"]
  node_ratings["Application ratings<br/>[AppRatings.cs]"]
  node_safetyforms["Safety dialogs<br/>[SafetyForms.cs]"]
end

subgraph group_platform["Windows support"]
  node_native["Windows APIs<br/>[NativeMethods.cs]"]
  node_icons["Icon cache<br/>[IconCache.cs]"]
  node_format["Display formatting<br/>[Format.cs]"]
  node_favicons["Host favicons<br/>[Favicons.cs]"]
end

node_user(("Desktop user"))

node_user -->|"launches"| node_entry
node_entry -->|"runs"| node_main
node_main -->|"samples"| node_monitor
node_main -->|"displays"| node_graphs
node_main -->|"opens actions"| node_menu
node_main -->|"opens connections"| node_connform
node_monitor -->|"drains traffic"| node_networkmon
node_monitor -->|"records flows"| node_connections
node_graphs -->|"reads history"| node_monitor
node_monitor -->|"queries processes"| node_native
node_connform -->|"reads processes"| node_monitor
node_connform -->|"shows endpoints"| node_connections
node_menu -->|"reads process"| node_monitor
node_main -->|"loads icons"| node_icons
node_icons -->|"gets file icons"| node_native
node_connform -->|"loads favicons"| node_favicons
node_connform -->|"formats values"| node_format
node_main -->|"requests ratings"| node_safetyservice
node_safetyservice -->|"queries sources"| node_safetysources
node_safetyservice -->|"checks hosts"| node_hostsources
node_safetyservice -->|"checks signatures"| node_signature
node_safetyservice -->|"loads ratings"| node_ratings
node_safetyservice -->|"updates reports"| node_safetyreport
node_connform -->|"requests host checks"| node_safetyservice
node_connform -->|"shows verdicts"| node_safetyreport
node_safetyforms -->|"uses assessments"| node_safetyservice
node_safetyforms -->|"shows sources"| node_safetysources
node_details -->|"uses process data"| node_monitor
node_details -->|"queries process"| node_native
node_tree -->|"shows ratings"| node_safetyreport
node_tree -->|"formats cells"| node_format
node_graphs -->|"formats rates"| node_format
node_graphs -->|"uses colors"| node_theme
node_main -->|"applies theme"| node_theme

click node_entry "https://github.com/lindblum/process-streamgraph/blob/master/Program.cs"
click node_main "https://github.com/lindblum/process-streamgraph/blob/master/MainForm.cs"
click node_tree "https://github.com/lindblum/process-streamgraph/blob/master/ProcessTreeView.cs"
click node_graphs "https://github.com/lindblum/process-streamgraph/blob/master/StreamGraphControl.cs"
click node_theme "https://github.com/lindblum/process-streamgraph/blob/master/Theme.cs"
click node_monitor "https://github.com/lindblum/process-streamgraph/blob/master/ProcessMonitor.cs"
click node_details "https://github.com/lindblum/process-streamgraph/blob/master/ProcessDetails.cs"
click node_networkmon "https://github.com/lindblum/process-streamgraph/blob/master/NetworkMonitor.cs"
click node_connections "https://github.com/lindblum/process-streamgraph/blob/master/Connections.cs"
click node_connform "https://github.com/lindblum/process-streamgraph/blob/master/ConnectionsForm.cs"
click node_menu "https://github.com/lindblum/process-streamgraph/blob/master/ProcessMenu.cs"
click node_safetyservice "https://github.com/lindblum/process-streamgraph/blob/master/SafetyService.cs"
click node_safetyreport "https://github.com/lindblum/process-streamgraph/blob/master/Safety.cs"
click node_safetysources "https://github.com/lindblum/process-streamgraph/blob/master/SafetySources.cs"
click node_hostsources "https://github.com/lindblum/process-streamgraph/blob/master/HostSources.cs"
click node_signature "https://github.com/lindblum/process-streamgraph/blob/master/FileSignature.cs"
click node_ratings "https://github.com/lindblum/process-streamgraph/blob/master/AppRatings.cs"
click node_safetyforms "https://github.com/lindblum/process-streamgraph/blob/master/SafetyForms.cs"
click node_native "https://github.com/lindblum/process-streamgraph/blob/master/NativeMethods.cs"
click node_icons "https://github.com/lindblum/process-streamgraph/blob/master/IconCache.cs"
click node_format "https://github.com/lindblum/process-streamgraph/blob/master/Format.cs"
click node_favicons "https://github.com/lindblum/process-streamgraph/blob/master/Favicons.cs"

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_entry,node_main,node_tree,node_graphs,node_theme,node_menu,node_user toneBlue
class node_monitor,node_details toneAmber
class node_networkmon,node_connections,node_connform toneMint
class node_safetyservice,node_safetyreport,node_safetysources,node_hostsources,node_signature,node_ratings,node_safetyforms toneRose
class node_native,node_icons,node_format,node_favicons toneIndigo
```

## Components

### Desktop interface

- [Application entry](https://github.com/lindblum/process-streamgraph/blob/master/Program.cs): `Program.cs`
- [Main window](https://github.com/lindblum/process-streamgraph/blob/master/MainForm.cs): `MainForm.cs`
- [Process tree](https://github.com/lindblum/process-streamgraph/blob/master/ProcessTreeView.cs): `ProcessTreeView.cs`
- [Metric graphs](https://github.com/lindblum/process-streamgraph/blob/master/StreamGraphControl.cs): `StreamGraphControl.cs`
- [Theme styling](https://github.com/lindblum/process-streamgraph/blob/master/Theme.cs): `Theme.cs`
- [Process actions](https://github.com/lindblum/process-streamgraph/blob/master/ProcessMenu.cs): `ProcessMenu.cs`

### Process monitoring

- [Process sampler](https://github.com/lindblum/process-streamgraph/blob/master/ProcessMonitor.cs): `ProcessMonitor.cs`
- [Process details](https://github.com/lindblum/process-streamgraph/blob/master/ProcessDetails.cs): `ProcessDetails.cs`

### Network inspection

- [Traffic capture](https://github.com/lindblum/process-streamgraph/blob/master/NetworkMonitor.cs): `NetworkMonitor.cs`
- [Connection model](https://github.com/lindblum/process-streamgraph/blob/master/Connections.cs): `Connections.cs`
- [Connection window](https://github.com/lindblum/process-streamgraph/blob/master/ConnectionsForm.cs): `ConnectionsForm.cs`

### Safety assessment

- [Safety assessor](https://github.com/lindblum/process-streamgraph/blob/master/SafetyService.cs): `SafetyService.cs`
- [Safety reports](https://github.com/lindblum/process-streamgraph/blob/master/Safety.cs): `Safety.cs`
- [File reputation](https://github.com/lindblum/process-streamgraph/blob/master/SafetySources.cs): `SafetySources.cs`
- [Host reputation](https://github.com/lindblum/process-streamgraph/blob/master/HostSources.cs): `HostSources.cs`
- [File signatures](https://github.com/lindblum/process-streamgraph/blob/master/FileSignature.cs): `FileSignature.cs`
- [Application ratings](https://github.com/lindblum/process-streamgraph/blob/master/AppRatings.cs): `AppRatings.cs`
- [Safety dialogs](https://github.com/lindblum/process-streamgraph/blob/master/SafetyForms.cs): `SafetyForms.cs`

### Windows support

- [Windows APIs](https://github.com/lindblum/process-streamgraph/blob/master/NativeMethods.cs): `NativeMethods.cs`
- [Icon cache](https://github.com/lindblum/process-streamgraph/blob/master/IconCache.cs): `IconCache.cs`
- [Display formatting](https://github.com/lindblum/process-streamgraph/blob/master/Format.cs): `Format.cs`
- [Host favicons](https://github.com/lindblum/process-streamgraph/blob/master/Favicons.cs): `Favicons.cs`

### Other components

- **Desktop user**

## Connections

- Desktop user → Application entry: launches
- Application entry → Main window: runs (evidence: `Program.cs`)
- Main window → Process sampler: samples (evidence: `MainForm.cs`)
- Main window → Metric graphs: displays (evidence: `MainForm.cs`)
- Main window → Process actions: opens actions (evidence: `MainForm.cs`)
- Main window → Connection window: opens connections (evidence: `MainForm.cs`)
- Process sampler → Traffic capture: drains traffic (evidence: `ProcessMonitor.cs`)
- Process sampler → Connection model: records flows (evidence: `ProcessMonitor.cs`)
- Metric graphs → Process sampler: reads history (evidence: `StreamGraphControl.cs`)
- Process sampler → Windows APIs: queries processes (evidence: `ProcessMonitor.cs`)
- Connection window → Process sampler: reads processes (evidence: `ConnectionsForm.cs`)
- Connection window → Connection model: shows endpoints (evidence: `ConnectionsForm.cs`)
- Process actions → Process sampler: reads process (evidence: `ProcessMenu.cs`)
- Main window → Icon cache: loads icons (evidence: `MainForm.cs`)
- Icon cache → Windows APIs: gets file icons (evidence: `IconCache.cs`)
- Connection window → Host favicons: loads favicons (evidence: `ConnectionsForm.cs`)
- Connection window → Display formatting: formats values (evidence: `ConnectionsForm.cs`)
- Main window → Safety assessor: requests ratings (evidence: `MainForm.cs`)
- Safety assessor → File reputation: queries sources (evidence: `SafetyService.cs`)
- Safety assessor → Host reputation: checks hosts (evidence: `SafetyService.cs`)
- Safety assessor → File signatures: checks signatures (evidence: `SafetyService.cs`)
- Safety assessor → Application ratings: loads ratings (evidence: `SafetyService.cs`)
- Safety assessor → Safety reports: updates reports (evidence: `SafetyService.cs`)
- Connection window → Safety assessor: requests host checks (evidence: `ConnectionsForm.cs`)
- Connection window → Safety reports: shows verdicts (evidence: `ConnectionsForm.cs`)
- Safety dialogs → Safety assessor: uses assessments (evidence: `SafetyForms.cs`)
- Safety dialogs → File reputation: shows sources (evidence: `SafetyForms.cs`)
- Process details → Process sampler: uses process data (evidence: `ProcessDetails.cs`)
- Process details → Windows APIs: queries process (evidence: `ProcessDetails.cs`)
- Process tree → Safety reports: shows ratings (evidence: `ProcessTreeView.cs`)
- Process tree → Display formatting: formats cells (evidence: `ProcessTreeView.cs`)
- Metric graphs → Display formatting: formats rates (evidence: `StreamGraphControl.cs`)
- Metric graphs → Theme styling: uses colors (evidence: `StreamGraphControl.cs`)
- Main window → Theme styling: applies theme (evidence: `MainForm.cs`)
