# rootdr-backup/reconner architecture

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

- Interactive diagram: https://gitdiagram.com/rootdr-backup/reconner
- Repository: https://github.com/rootdr-backup/reconner

## Overview

Reconner is a self-hosted attack-surface intelligence and verification-first DAST product. Operators define authorized scope, choose web or network scan plans, monitor persistent tasks, and review candidates, evidence, and confirmed findings. The React dashboard calls a Go API; the scheduler coordinates scanner phases and persistence, while live updates and reporting expose results. README documents capabilities beyond the sampled code; those branches are represented at supported directory paths, and their internal wiring is not inferred where source was not sampled.

Main entry points: [`internal/api/router.go`](https://github.com/rootdr-backup/reconner/blob/main/internal/api/router.go) (HTTP API router), [`frontend/src/App.tsx`](https://github.com/rootdr-backup/reconner/blob/main/frontend/src/App.tsx) (Dashboard app), [`internal/scheduler/scheduler.go`](https://github.com/rootdr-backup/reconner/blob/main/internal/scheduler/scheduler.go) (Task scheduler), [`frontend/src/lib/api.ts`](https://github.com/rootdr-backup/reconner/blob/main/frontend/src/lib/api.ts) (API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Operator dashboard"]
  node_dashboard["Dashboard app<br/>[App.tsx]"]
  node_scopeui["Scope and programs<br/>[Targets.tsx]"]
  node_scanui["Scan planning<br/>[ScanModal.tsx]"]
  node_networkui["Network scans<br/>[NetworkScanner.tsx]"]
  node_findingsui["Findings review<br/>[Findings.tsx]"]
  node_tasksui["Task monitoring<br/>[Tasks.tsx]"]
  node_api_client["API client<br/>[api.ts]"]
  node_live_updates["Live updates<br/>[websocket.ts]"]
end

subgraph group_service["Service and API"]
  node_entry["Service bootstrap<br/>[main.go]"]
  node_http_api["HTTP API router<br/>[router.go]"]
  node_auth["Authentication<br/>[auth.go]"]
  node_bounty["Program scope import<br/>[service.go]"]
end

subgraph group_operations["Scan operations"]
  node_scheduler["Task scheduler<br/>[scheduler.go]"]
  node_telegram["Telegram controls<br/>[telegram_bot.go]"]
  node_websocket_hub["WebSocket hub<br/>[hub.go]"]
end

subgraph group_intelligence["Discovery and verification"]
  node_scanner["Web and network scanners"]
  node_browser["Browser capture<br/>[capture.go]"]
  node_external_tools["Tool execution<br/>[executor.go]"]
end

subgraph group_results["Evidence and state"]
  node_evidence["Capture and evidence"]
  node_database[("SQLite persistence<br/>[database.go]")]
  node_reports["Reports and exports"]
end

node_operator(("Security operator"))
node_target(("Authorized assets"))

node_operator -->|"uses"| node_dashboard
node_dashboard -->|"routes to"| node_scopeui
node_dashboard -->|"routes to"| node_scanui
node_dashboard -->|"routes to"| node_networkui
node_dashboard -->|"routes to"| node_findingsui
node_dashboard -->|"routes to"| node_tasksui
node_scopeui -->|"requests scope"| node_api_client
node_scanui -->|"requests scans"| node_api_client
node_networkui -->|"requests scans"| node_api_client
node_findingsui -->|"loads findings"| node_api_client
node_tasksui -->|"loads tasks"| node_api_client
node_dashboard -->|"connects"| node_live_updates
node_api_client -.->|"calls"| node_http_api
node_entry -->|"configures"| node_http_api
node_entry -->|"starts"| node_scheduler
node_entry -->|"starts"| node_websocket_hub
node_http_api -->|"uses"| node_auth
node_http_api -->|"uses"| node_bounty
node_http_api -->|"dispatches tasks"| node_scheduler
node_scheduler -->|"runs phases"| node_scanner
node_scheduler -->|"persists tasks"| node_database
node_scheduler -->|"broadcasts updates"| node_websocket_hub
node_scanner -->|"executes tools"| node_external_tools
node_http_api -->|"captures pages"| node_browser
node_http_api -.->|"reads and writes"| node_database
node_http_api -->|"serves reports"| node_reports
node_operator -->|"controls scans"| node_telegram
node_telegram -.->|"controls tasks"| node_scheduler
node_target -->|"declares scope"| node_scopeui
node_scanner -->|"records proof"| node_evidence
node_evidence -.->|"stores evidence"| node_database
node_scheduler -->|"publishes progress"| node_websocket_hub
node_websocket_hub -.->|"streams events"| node_live_updates

click node_dashboard "https://github.com/rootdr-backup/reconner/blob/main/frontend/src/App.tsx"
click node_scopeui "https://github.com/rootdr-backup/reconner/blob/main/frontend/src/pages/Targets.tsx"
click node_scanui "https://github.com/rootdr-backup/reconner/blob/main/frontend/src/components/targets/ScanModal.tsx"
click node_networkui "https://github.com/rootdr-backup/reconner/blob/main/frontend/src/pages/NetworkScanner.tsx"
click node_findingsui "https://github.com/rootdr-backup/reconner/blob/main/frontend/src/pages/Findings.tsx"
click node_tasksui "https://github.com/rootdr-backup/reconner/blob/main/frontend/src/pages/Tasks.tsx"
click node_api_client "https://github.com/rootdr-backup/reconner/blob/main/frontend/src/lib/api.ts"
click node_live_updates "https://github.com/rootdr-backup/reconner/blob/main/frontend/src/lib/websocket.ts"
click node_entry "https://github.com/rootdr-backup/reconner/blob/main/cmd/reconner/main.go"
click node_http_api "https://github.com/rootdr-backup/reconner/blob/main/internal/api/router.go"
click node_auth "https://github.com/rootdr-backup/reconner/blob/main/internal/auth/auth.go"
click node_bounty "https://github.com/rootdr-backup/reconner/blob/main/internal/bounty/service.go"
click node_scheduler "https://github.com/rootdr-backup/reconner/blob/main/internal/scheduler/scheduler.go"
click node_scanner "https://github.com/rootdr-backup/reconner/tree/main/internal/scanner"
click node_browser "https://github.com/rootdr-backup/reconner/blob/main/internal/browser/capture.go"
click node_external_tools "https://github.com/rootdr-backup/reconner/blob/main/internal/tools/executor.go"
click node_evidence "https://github.com/rootdr-backup/reconner/tree/main/internal/capture"
click node_database "https://github.com/rootdr-backup/reconner/blob/main/internal/database/database.go"
click node_reports "https://github.com/rootdr-backup/reconner/tree/main/internal/api"
click node_telegram "https://github.com/rootdr-backup/reconner/blob/main/internal/api/telegram_bot.go"
click node_websocket_hub "https://github.com/rootdr-backup/reconner/blob/main/internal/websocket/hub.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_dashboard,node_scopeui,node_scanui,node_networkui,node_findingsui,node_tasksui,node_api_client,node_live_updates toneBlue
class node_entry,node_http_api,node_auth,node_bounty toneAmber
class node_scheduler,node_telegram,node_websocket_hub toneMint
class node_scanner,node_browser,node_external_tools toneRose
class node_evidence,node_database,node_reports,node_operator,node_target toneIndigo
```

## Components

### Operator dashboard

- [Dashboard app](https://github.com/rootdr-backup/reconner/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Scope and programs](https://github.com/rootdr-backup/reconner/blob/main/frontend/src/pages/Targets.tsx): `frontend/src/pages/Targets.tsx`
- [Scan planning](https://github.com/rootdr-backup/reconner/blob/main/frontend/src/components/targets/ScanModal.tsx): `frontend/src/components/targets/ScanModal.tsx`
- [Network scans](https://github.com/rootdr-backup/reconner/blob/main/frontend/src/pages/NetworkScanner.tsx): `frontend/src/pages/NetworkScanner.tsx`
- [Findings review](https://github.com/rootdr-backup/reconner/blob/main/frontend/src/pages/Findings.tsx): `frontend/src/pages/Findings.tsx`
- [Task monitoring](https://github.com/rootdr-backup/reconner/blob/main/frontend/src/pages/Tasks.tsx): `frontend/src/pages/Tasks.tsx`
- [API client](https://github.com/rootdr-backup/reconner/blob/main/frontend/src/lib/api.ts): `frontend/src/lib/api.ts`
- [Live updates](https://github.com/rootdr-backup/reconner/blob/main/frontend/src/lib/websocket.ts): `frontend/src/lib/websocket.ts`

### Service and API

- [Service bootstrap](https://github.com/rootdr-backup/reconner/blob/main/cmd/reconner/main.go): `cmd/reconner/main.go`
- [HTTP API router](https://github.com/rootdr-backup/reconner/blob/main/internal/api/router.go): `internal/api/router.go`
- [Authentication](https://github.com/rootdr-backup/reconner/blob/main/internal/auth/auth.go): `internal/auth/auth.go`
- [Program scope import](https://github.com/rootdr-backup/reconner/blob/main/internal/bounty/service.go): `internal/bounty/service.go`

### Scan operations

- [Task scheduler](https://github.com/rootdr-backup/reconner/blob/main/internal/scheduler/scheduler.go): `internal/scheduler/scheduler.go`
- [Telegram controls](https://github.com/rootdr-backup/reconner/blob/main/internal/api/telegram_bot.go): `internal/api/telegram_bot.go`
- [WebSocket hub](https://github.com/rootdr-backup/reconner/blob/main/internal/websocket/hub.go): `internal/websocket/hub.go`

### Discovery and verification

- [Web and network scanners](https://github.com/rootdr-backup/reconner/tree/main/internal/scanner): `internal/scanner`
- [Browser capture](https://github.com/rootdr-backup/reconner/blob/main/internal/browser/capture.go): `internal/browser/capture.go`
- [Tool execution](https://github.com/rootdr-backup/reconner/blob/main/internal/tools/executor.go): `internal/tools/executor.go`

### Evidence and state

- [Capture and evidence](https://github.com/rootdr-backup/reconner/tree/main/internal/capture): `internal/capture`
- [SQLite persistence](https://github.com/rootdr-backup/reconner/blob/main/internal/database/database.go): `internal/database/database.go`
- [Reports and exports](https://github.com/rootdr-backup/reconner/tree/main/internal/api): `internal/api`

### Other components

- **Security operator**
- **Authorized assets**

## Connections

- Security operator → Dashboard app: uses (evidence: `README.md`)
- Dashboard app → Scope and programs: routes to (evidence: `frontend/src/App.tsx`)
- Dashboard app → Scan planning: routes to (evidence: `frontend/src/App.tsx`)
- Dashboard app → Network scans: routes to (evidence: `frontend/src/App.tsx`)
- Dashboard app → Findings review: routes to (evidence: `frontend/src/App.tsx`)
- Dashboard app → Task monitoring: routes to (evidence: `frontend/src/App.tsx`)
- Scope and programs → API client: requests scope
- Scan planning → API client: requests scans (evidence: `frontend/src/pages/TargetDetail.tsx`)
- Network scans → API client: requests scans (evidence: `frontend/src/pages/NetworkScanner.tsx`)
- Findings review → API client: loads findings (evidence: `frontend/src/pages/Findings.tsx`)
- Task monitoring → API client: loads tasks (evidence: `frontend/src/pages/Tasks.tsx`)
- Dashboard app → Live updates: connects (evidence: `frontend/src/App.tsx`)
- API client → HTTP API router: calls
- Service bootstrap → HTTP API router: configures (evidence: `cmd/reconner/main.go`)
- Service bootstrap → Task scheduler: starts (evidence: `cmd/reconner/main.go`)
- Service bootstrap → WebSocket hub: starts (evidence: `cmd/reconner/main.go`)
- HTTP API router → Authentication: uses (evidence: `internal/api/router.go`)
- HTTP API router → Program scope import: uses (evidence: `internal/api/router.go`)
- HTTP API router → Task scheduler: dispatches tasks
- Task scheduler → Web and network scanners: runs phases (evidence: `internal/scheduler/scheduler.go`)
- Task scheduler → SQLite persistence: persists tasks (evidence: `internal/scheduler/scheduler.go`)
- Task scheduler → WebSocket hub: broadcasts updates (evidence: `internal/scheduler/scheduler.go`)
- Web and network scanners → Tool execution: executes tools (evidence: `internal/scanner/authz_engine.go`)
- HTTP API router → Browser capture: captures pages
- HTTP API router → SQLite persistence: reads and writes
- HTTP API router → Reports and exports: serves reports (evidence: `README.md`)
- Security operator → Telegram controls: controls scans (evidence: `README.md`)
- Telegram controls → Task scheduler: controls tasks
- Authorized assets → Scope and programs: declares scope (evidence: `README.md`)
- Web and network scanners → Capture and evidence: records proof (evidence: `README.md`)
- Capture and evidence → SQLite persistence: stores evidence
- Task scheduler → WebSocket hub: publishes progress (evidence: `internal/scheduler/scheduler.go`)
- WebSocket hub → Live updates: streams events
