# seanshaffer88/expunge architecture

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

- Interactive diagram: https://gitdiagram.com/seanshaffer88/expunge
- Repository: https://github.com/seanshaffer88/expunge

## Overview

Expunge is a Windows system-change monitor and precision uninstaller. Its main workflow snapshots the system around an installation, records and filters changes, presents a removal plan, then backs up affected data before undoing those changes. The graph also includes the README’s major companion tools. Several backend modules are unsampled; edges to them are included only where the README or SOURCE INDEX supports the relationship.

Main entry points: [`src/gui/app.rs`](https://github.com/seanshaffer88/expunge/blob/main/src/gui/app.rs) (Expunge UI), [`src/gui/logs.rs`](https://github.com/seanshaffer88/expunge/blob/main/src/gui/logs.rs) (Install logs), [`src/gui/programs.rs`](https://github.com/seanshaffer88/expunge/blob/main/src/gui/programs.rs) (Program catalog), [`src/snapshot.rs`](https://github.com/seanshaffer88/expunge/blob/main/src/snapshot.rs) (System snapshots)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_monitoring["Monitor and logs"]
  node_monitor_ui["Monitor page<br/>[monitor.rs]"]
  node_snapshot["System snapshots<br/>[snapshot.rs]"]
  node_noise["Change filtering<br/>[noise.rs]"]
  node_logs_ui["Install logs<br/>[logs.rs]"]
  node_report["Change exports<br/>[report.rs]"]
end

subgraph group_uninstall["Program removal"]
  node_program_ui["Program catalog<br/>[programs.rs]"]
  node_programs["Installed programs<br/>[programs.rs]"]
  node_leftovers["Leftover scanner<br/>[leftovers.rs]"]
  node_plan_ui["Removal review<br/>[plan.rs]"]
  node_revert["Change reversion<br/>[revert.rs]"]
  node_backup["Removal backups<br/>[backup.rs]"]
end

subgraph group_system_tools["System tools"]
  node_cleaner["Cleaner<br/>[cleaner.rs]"]
  node_startup["Startup manager<br/>[startup.rs]"]
  node_autoruns["Autorun discovery<br/>[autoruns.rs]"]
  node_restore["System Restore<br/>[restore.rs]"]
end

subgraph group_transfer_build["Transfer and build"]
  node_transfer["Program transfer<br/>[transfer.rs]"]
  node_portable_builder["Portable app builder<br/>[pafbuild.rs]"]
end

subgraph group_shared["Shared services"]
  node_app["Expunge UI<br/>[app.rs]"]
  node_model["Change records<br/>[model.rs]"]
  node_platform["Windows access<br/>[windows.rs]"]
  node_settings["Settings<br/>[settings.rs]"]
end

node_user(("Windows user"))

node_user -->|"uses"| node_app
node_app -->|"opens monitor"| node_monitor_ui
node_monitor_ui -->|"records changes"| node_snapshot
node_snapshot -->|"produces records"| node_model
node_snapshot -->|"reads system"| node_platform
node_noise -->|"filters records"| node_model
node_monitor_ui -->|"filters captured noise"| node_noise
node_app -->|"opens logs"| node_logs_ui
node_logs_ui -->|"reviews changes"| node_model
node_logs_ui -->|"exports logs"| node_report
node_app -->|"opens programs"| node_program_ui
node_program_ui -->|"lists programs"| node_programs
node_programs -->|"reads registry"| node_platform
node_program_ui -->|"scans remnants"| node_leftovers
node_program_ui -->|"reviews removal"| node_plan_ui
node_logs_ui -->|"reviews reversion"| node_plan_ui
node_plan_ui -->|"executes plan"| node_revert
node_revert -->|"backs up changes"| node_backup
node_revert -->|"changes system"| node_platform
node_app -->|"offers cleaning"| node_cleaner
node_app -->|"opens startup"| node_startup
node_startup -->|"reads system entries"| node_platform
node_app -->|"manages restore"| node_restore
node_app -->|"starts transfer"| node_transfer
node_app -->|"starts builder"| node_portable_builder
node_portable_builder -->|"uses snapshots"| node_snapshot
node_portable_builder -->|"uses change records"| node_model
node_app -->|"configures features"| node_settings

click node_app "https://github.com/seanshaffer88/expunge/blob/main/src/gui/app.rs"
click node_monitor_ui "https://github.com/seanshaffer88/expunge/blob/main/src/gui/monitor.rs"
click node_snapshot "https://github.com/seanshaffer88/expunge/blob/main/src/snapshot.rs"
click node_noise "https://github.com/seanshaffer88/expunge/blob/main/src/noise.rs"
click node_model "https://github.com/seanshaffer88/expunge/blob/main/src/model.rs"
click node_logs_ui "https://github.com/seanshaffer88/expunge/blob/main/src/gui/logs.rs"
click node_program_ui "https://github.com/seanshaffer88/expunge/blob/main/src/gui/programs.rs"
click node_programs "https://github.com/seanshaffer88/expunge/blob/main/src/programs.rs"
click node_leftovers "https://github.com/seanshaffer88/expunge/blob/main/src/leftovers.rs"
click node_plan_ui "https://github.com/seanshaffer88/expunge/blob/main/src/gui/plan.rs"
click node_revert "https://github.com/seanshaffer88/expunge/blob/main/src/revert.rs"
click node_backup "https://github.com/seanshaffer88/expunge/blob/main/src/backup.rs"
click node_cleaner "https://github.com/seanshaffer88/expunge/blob/main/src/cleaner.rs"
click node_startup "https://github.com/seanshaffer88/expunge/blob/main/src/startup.rs"
click node_autoruns "https://github.com/seanshaffer88/expunge/blob/main/src/autoruns.rs"
click node_restore "https://github.com/seanshaffer88/expunge/blob/main/src/restore.rs"
click node_transfer "https://github.com/seanshaffer88/expunge/blob/main/src/transfer.rs"
click node_portable_builder "https://github.com/seanshaffer88/expunge/blob/main/src/pafbuild.rs"
click node_report "https://github.com/seanshaffer88/expunge/blob/main/src/report.rs"
click node_platform "https://github.com/seanshaffer88/expunge/blob/main/src/platform/windows.rs"
click node_settings "https://github.com/seanshaffer88/expunge/blob/main/src/settings.rs"

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_monitor_ui,node_snapshot,node_noise,node_logs_ui,node_report,node_user toneBlue
class node_program_ui,node_programs,node_leftovers,node_plan_ui,node_revert,node_backup toneAmber
class node_cleaner,node_startup,node_autoruns,node_restore toneMint
class node_transfer,node_portable_builder toneRose
class node_app,node_model,node_platform,node_settings toneIndigo
```

## Components

### Monitor and logs

- [Monitor page](https://github.com/seanshaffer88/expunge/blob/main/src/gui/monitor.rs): `src/gui/monitor.rs`
- [System snapshots](https://github.com/seanshaffer88/expunge/blob/main/src/snapshot.rs): `src/snapshot.rs`
- [Change filtering](https://github.com/seanshaffer88/expunge/blob/main/src/noise.rs): `src/noise.rs`
- [Install logs](https://github.com/seanshaffer88/expunge/blob/main/src/gui/logs.rs): `src/gui/logs.rs`
- [Change exports](https://github.com/seanshaffer88/expunge/blob/main/src/report.rs): `src/report.rs`

### Program removal

- [Program catalog](https://github.com/seanshaffer88/expunge/blob/main/src/gui/programs.rs): `src/gui/programs.rs`
- [Installed programs](https://github.com/seanshaffer88/expunge/blob/main/src/programs.rs): `src/programs.rs`
- [Leftover scanner](https://github.com/seanshaffer88/expunge/blob/main/src/leftovers.rs): `src/leftovers.rs`
- [Removal review](https://github.com/seanshaffer88/expunge/blob/main/src/gui/plan.rs): `src/gui/plan.rs`
- [Change reversion](https://github.com/seanshaffer88/expunge/blob/main/src/revert.rs): `src/revert.rs`
- [Removal backups](https://github.com/seanshaffer88/expunge/blob/main/src/backup.rs): `src/backup.rs`

### System tools

- [Cleaner](https://github.com/seanshaffer88/expunge/blob/main/src/cleaner.rs): `src/cleaner.rs`
- [Startup manager](https://github.com/seanshaffer88/expunge/blob/main/src/startup.rs): `src/startup.rs`
- [Autorun discovery](https://github.com/seanshaffer88/expunge/blob/main/src/autoruns.rs): `src/autoruns.rs`
- [System Restore](https://github.com/seanshaffer88/expunge/blob/main/src/restore.rs): `src/restore.rs`

### Transfer and build

- [Program transfer](https://github.com/seanshaffer88/expunge/blob/main/src/transfer.rs): `src/transfer.rs`
- [Portable app builder](https://github.com/seanshaffer88/expunge/blob/main/src/pafbuild.rs): `src/pafbuild.rs`

### Shared services

- [Expunge UI](https://github.com/seanshaffer88/expunge/blob/main/src/gui/app.rs): `src/gui/app.rs`
- [Change records](https://github.com/seanshaffer88/expunge/blob/main/src/model.rs): `src/model.rs`
- [Windows access](https://github.com/seanshaffer88/expunge/blob/main/src/platform/windows.rs): `src/platform/windows.rs`
- [Settings](https://github.com/seanshaffer88/expunge/blob/main/src/settings.rs): `src/settings.rs`

### Other components

- **Windows user**

## Connections

- Windows user → Expunge UI: uses
- Expunge UI → Monitor page: opens monitor (evidence: `src/gui/monitor.rs`)
- Monitor page → System snapshots: records changes
- System snapshots → Change records: produces records (evidence: `src/snapshot.rs`)
- System snapshots → Windows access: reads system (evidence: `src/snapshot.rs`)
- Change filtering → Change records: filters records (evidence: `src/noise.rs`)
- Monitor page → Change filtering: filters captured noise
- Expunge UI → Install logs: opens logs (evidence: `src/gui/logs.rs`)
- Install logs → Change records: reviews changes
- Install logs → Change exports: exports logs
- Expunge UI → Program catalog: opens programs (evidence: `src/gui/programs.rs`)
- Program catalog → Installed programs: lists programs (evidence: `src/gui/programs.rs`)
- Installed programs → Windows access: reads registry (evidence: `src/programs.rs`)
- Program catalog → Leftover scanner: scans remnants
- Program catalog → Removal review: reviews removal (evidence: `src/gui/programs.rs`)
- Install logs → Removal review: reviews reversion (evidence: `src/gui/logs.rs`)
- Removal review → Change reversion: executes plan
- Change reversion → Removal backups: backs up changes (evidence: `src/revert.rs`)
- Change reversion → Windows access: changes system (evidence: `src/revert.rs`)
- Expunge UI → Cleaner: offers cleaning
- Expunge UI → Startup manager: opens startup
- Startup manager → Windows access: reads system entries (evidence: `src/startup.rs`)
- Expunge UI → System Restore: manages restore
- Expunge UI → Program transfer: starts transfer
- Expunge UI → Portable app builder: starts builder
- Portable app builder → System snapshots: uses snapshots (evidence: `src/pafbuild.rs`)
- Portable app builder → Change records: uses change records (evidence: `src/pafbuild.rs`)
- Expunge UI → Settings: configures features
