# ppmpreetham/vesper architecture

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

- Interactive diagram: https://gitdiagram.com/ppmpreetham/vesper
- Repository: https://github.com/ppmpreetham/vesper

## Overview

Vesper searches a username across the site databases behind WhatsMyName, Sherlock, and Maigret, then reports matches and counts. The CLI parses database and timeout options; the optional TUI collects selections, displays progress, and presents found profiles. Each database runner dispatches site checks concurrently, while shared checker logic makes HTTP requests and classifies responses. README documents all three databases and targeted or combined searches. Source excerpts show these runtime paths; some TUI presentation and site-data details are supported by the SOURCE INDEX rather than inspected excerpts.

Main entry points: [`cmd/runner/runner.go`](https://github.com/ppmpreetham/vesper/blob/main/cmd/runner/runner.go) (Search dispatcher), [`cmd/tui/progress.go`](https://github.com/ppmpreetham/vesper/blob/main/cmd/tui/progress.go) (Progress display), [`main.go`](https://github.com/ppmpreetham/vesper/blob/main/main.go) (Application entry), [`cmd/runner/sherlock.go`](https://github.com/ppmpreetham/vesper/blob/main/cmd/runner/sherlock.go) (Sherlock runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User entry"]
  node_main["Application entry<br/>[main.go]"]
  node_flags["CLI options<br/>[flags.go]"]
  node_tui["Interactive selection<br/>[model.go]"]
end

subgraph group_search["Enumeration"]
  node_config["Search configuration<br/>[types.go]"]
  node_orchestrator["Search dispatcher<br/>[runner.go]"]
  node_sherlock["Sherlock runner<br/>[sherlock.go]"]
  node_whatsmyname["WhatsMyName runner<br/>[whatsmyname.go]"]
  node_maigret["Maigret runner<br/>[maigret.go]"]
end

subgraph group_checks["Site checks"]
  node_sherlockdata["Sherlock sites<br/>[sherlockSites.go]"]
  node_whatsmydata["WhatsMyName sites"]
  node_maigretdata["Maigret sites<br/>[maigretSites.go]"]
  node_httpcheck["HTTP site checks<br/>[checher.go]"]
  node_callbacks["Progress and found callbacks<br/>[callback.go]"]
end

subgraph group_presentation["Results"]
  node_progress["Progress display<br/>[progress.go]"]
  node_table["Found profiles table<br/>[table.go]"]
  node_summary["CLI summary<br/>[output.go]"]
end

node_user(("CLI user"))
node_siteservice(("Profile websites"))

node_user -->|"starts"| node_main
node_main -->|"parses options"| node_flags
node_main -->|"starts TUI"| node_tui
node_flags -->|"creates config"| node_config
node_main -->|"runs search"| node_orchestrator
node_orchestrator -->|"uses config"| node_config
node_orchestrator -->|"dispatches"| node_sherlock
node_orchestrator -->|"dispatches"| node_whatsmyname
node_orchestrator -->|"dispatches"| node_maigret
node_sherlock -->|"loads sites"| node_sherlockdata
node_whatsmyname -->|"loads sites"| node_whatsmydata
node_maigret -->|"loads sites"| node_maigretdata
node_sherlock -->|"checks URLs"| node_httpcheck
node_whatsmyname -->|"checks URLs"| node_httpcheck
node_maigret -->|"checks URLs"| node_httpcheck
node_httpcheck -->|"requests profiles"| node_siteservice
node_sherlock -->|"reports findings"| node_callbacks
node_whatsmyname -->|"reports findings"| node_callbacks
node_maigret -->|"reports findings"| node_callbacks
node_main -->|"prints summary"| node_summary
node_orchestrator -->|"returns counts"| node_summary
node_tui -->|"runs search UI"| node_progress
node_progress -->|"runs database"| node_sherlock
node_progress -->|"runs database"| node_whatsmyname
node_progress -->|"runs database"| node_maigret
node_progress -->|"opens results"| node_table
node_callbacks -->|"sends found results"| node_progress

click node_main "https://github.com/ppmpreetham/vesper/blob/main/main.go"
click node_flags "https://github.com/ppmpreetham/vesper/blob/main/cmd/flags/flags.go"
click node_tui "https://github.com/ppmpreetham/vesper/blob/main/cmd/tui/model.go"
click node_config "https://github.com/ppmpreetham/vesper/blob/main/pkg/types/types.go"
click node_orchestrator "https://github.com/ppmpreetham/vesper/blob/main/cmd/runner/runner.go"
click node_sherlock "https://github.com/ppmpreetham/vesper/blob/main/cmd/runner/sherlock.go"
click node_whatsmyname "https://github.com/ppmpreetham/vesper/blob/main/cmd/runner/whatsmyname.go"
click node_maigret "https://github.com/ppmpreetham/vesper/blob/main/cmd/runner/maigret.go"
click node_sherlockdata "https://github.com/ppmpreetham/vesper/blob/main/sites/sherlockSites.go"
click node_whatsmydata "https://github.com/ppmpreetham/vesper/blob/main/sites/whatsmynameSites.go"
click node_maigretdata "https://github.com/ppmpreetham/vesper/blob/main/sites/maigretSites.go"
click node_httpcheck "https://github.com/ppmpreetham/vesper/blob/main/tools/checher.go"
click node_callbacks "https://github.com/ppmpreetham/vesper/blob/main/tools/callback.go"
click node_progress "https://github.com/ppmpreetham/vesper/blob/main/cmd/tui/progress.go"
click node_table "https://github.com/ppmpreetham/vesper/blob/main/cmd/tui/table.go"
click node_summary "https://github.com/ppmpreetham/vesper/blob/main/cmd/output/output.go"

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_main,node_flags,node_tui,node_user toneBlue
class node_config,node_orchestrator,node_sherlock,node_whatsmyname,node_maigret toneAmber
class node_sherlockdata,node_whatsmydata,node_maigretdata,node_httpcheck,node_callbacks toneMint
class node_progress,node_table,node_summary toneRose
class node_siteservice toneIndigo
```

## Components

### User entry

- [Application entry](https://github.com/ppmpreetham/vesper/blob/main/main.go): `main.go`
- [CLI options](https://github.com/ppmpreetham/vesper/blob/main/cmd/flags/flags.go): `cmd/flags/flags.go`
- [Interactive selection](https://github.com/ppmpreetham/vesper/blob/main/cmd/tui/model.go): `cmd/tui/model.go`

### Enumeration

- [Search configuration](https://github.com/ppmpreetham/vesper/blob/main/pkg/types/types.go): `pkg/types/types.go`
- [Search dispatcher](https://github.com/ppmpreetham/vesper/blob/main/cmd/runner/runner.go): `cmd/runner/runner.go`
- [Sherlock runner](https://github.com/ppmpreetham/vesper/blob/main/cmd/runner/sherlock.go): `cmd/runner/sherlock.go`
- [WhatsMyName runner](https://github.com/ppmpreetham/vesper/blob/main/cmd/runner/whatsmyname.go): `cmd/runner/whatsmyname.go`
- [Maigret runner](https://github.com/ppmpreetham/vesper/blob/main/cmd/runner/maigret.go): `cmd/runner/maigret.go`

### Site checks

- [Sherlock sites](https://github.com/ppmpreetham/vesper/blob/main/sites/sherlockSites.go): `sites/sherlockSites.go`
- [WhatsMyName sites](https://github.com/ppmpreetham/vesper/blob/main/sites/whatsmynameSites.go): `sites/whatsmynameSites.go`
- [Maigret sites](https://github.com/ppmpreetham/vesper/blob/main/sites/maigretSites.go): `sites/maigretSites.go`
- [HTTP site checks](https://github.com/ppmpreetham/vesper/blob/main/tools/checher.go): `tools/checher.go`
- [Progress and found callbacks](https://github.com/ppmpreetham/vesper/blob/main/tools/callback.go): `tools/callback.go`

### Results

- [Progress display](https://github.com/ppmpreetham/vesper/blob/main/cmd/tui/progress.go): `cmd/tui/progress.go`
- [Found profiles table](https://github.com/ppmpreetham/vesper/blob/main/cmd/tui/table.go): `cmd/tui/table.go`
- [CLI summary](https://github.com/ppmpreetham/vesper/blob/main/cmd/output/output.go): `cmd/output/output.go`

### Other components

- **CLI user**
- **Profile websites**

## Connections

- CLI user → Application entry: starts (evidence: `main.go`)
- Application entry → CLI options: parses options (evidence: `main.go`)
- Application entry → Interactive selection: starts TUI (evidence: `main.go`)
- CLI options → Search configuration: creates config (evidence: `cmd/flags/flags.go`)
- Application entry → Search dispatcher: runs search (evidence: `main.go`)
- Search dispatcher → Search configuration: uses config (evidence: `cmd/runner/runner.go`)
- Search dispatcher → Sherlock runner: dispatches (evidence: `cmd/runner/runner.go`)
- Search dispatcher → WhatsMyName runner: dispatches (evidence: `cmd/runner/runner.go`)
- Search dispatcher → Maigret runner: dispatches (evidence: `cmd/runner/runner.go`)
- Sherlock runner → Sherlock sites: loads sites (evidence: `cmd/runner/sherlock.go`)
- WhatsMyName runner → WhatsMyName sites: loads sites (evidence: `cmd/runner/whatsmyname.go`)
- Maigret runner → Maigret sites: loads sites (evidence: `cmd/runner/maigret.go`)
- Sherlock runner → HTTP site checks: checks URLs (evidence: `cmd/runner/sherlock.go`)
- WhatsMyName runner → HTTP site checks: checks URLs (evidence: `cmd/runner/whatsmyname.go`)
- Maigret runner → HTTP site checks: checks URLs (evidence: `cmd/runner/maigret.go`)
- HTTP site checks → Profile websites: requests profiles (evidence: `tools/checher.go`)
- Sherlock runner → Progress and found callbacks: reports findings (evidence: `cmd/runner/sherlock.go`)
- WhatsMyName runner → Progress and found callbacks: reports findings (evidence: `cmd/runner/whatsmyname.go`)
- Maigret runner → Progress and found callbacks: reports findings (evidence: `cmd/runner/maigret.go`)
- Application entry → CLI summary: prints summary (evidence: `main.go`)
- Search dispatcher → CLI summary: returns counts
- Interactive selection → Progress display: runs search UI
- Progress display → Sherlock runner: runs database (evidence: `cmd/tui/progress.go`)
- Progress display → WhatsMyName runner: runs database (evidence: `cmd/tui/progress.go`)
- Progress display → Maigret runner: runs database (evidence: `cmd/tui/progress.go`)
- Progress display → Found profiles table: opens results
- Progress and found callbacks → Progress display: sends found results
