# dalavaihemanth/recon-thereverseengineeringlab architecture

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

- Interactive diagram: https://gitdiagram.com/dalavaihemanth/recon-thereverseengineeringlab
- Repository: https://github.com/dalavaihemanth/recon-thereverseengineeringlab

## Overview

RECON is an autonomous software investigation platform. Users start an investigation from a repository, website, runtime endpoint, binary, or visual capture; the system gathers evidence, verifies findings, and presents a report with graphs and recommended next steps. The architecture separates the authenticated product interface, investigation orchestration, target-specific analysis, and evidence/report presentation. Several server-function and persistence internals are unsampled, so uncertain implementation links are omitted or shown as unverified.

Main entry points: [`src/lib/recon/payload.ts`](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/payload.ts) (Target payload handling), [`src/routes/_authenticated/investigations.$id.tsx`](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/routes/_authenticated/investigations.%24id.tsx) (Investigation detail), [`src/routes/_authenticated/new.tsx`](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/routes/_authenticated/new.tsx) (New investigation), [`src/lib/recon/agent.server.ts`](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/agent.server.ts) (Investigation agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_product["Product interface"]
  node_new_route["New investigation<br/>[new.tsx]"]
  node_auth_route["Authentication<br/>[auth.tsx]"]
  node_auth_guard["Authenticated workspace<br/>[route.tsx]"]
  node_dashboard["Investigation dashboard<br/>[dashboard.tsx]"]
  node_settings["Settings<br/>[settings.tsx]"]
  node_investigation_route["Investigation detail"]
end

subgraph group_orchestration["Investigation orchestration"]
  node_investigation_functions["Investigation server functions"]
  node_agent["Investigation agent<br/>[agent.server.ts]"]
  node_tools["Analysis tool dispatch<br/>[tools.ts]"]
  node_payload["Target payload handling<br/>[payload.ts]"]
end

subgraph group_analysis["Target analysis"]
  node_scanner["Repository scanner<br/>[scanner.ts]"]
  node_web["Website crawler<br/>[web.ts]"]
  node_runtime["Runtime probe<br/>[runtime.ts]"]
  node_binary["Binary inspection<br/>[binary.ts]"]
  node_visual["Visual analysis<br/>[visual.ts]"]
  node_visual_capture["Capture and frame review<br/>[visual-capture.ts]"]
  node_media_review["Media review<br/>[media-review.ts]"]
end

subgraph group_reporting["Evidence and reporting"]
  node_confidence["Deterministic confidence<br/>[confidence.ts]"]
  node_product_model["Product analysis<br/>[product.ts]"]
  node_recommendations["Next-step recommendations<br/>[recommendations.ts]"]
  node_report_workspace["Report and follow-up workspace"]
  node_visuals["Evidence and finding views"]
  node_evidence_graph["Evidence graph"]
  node_shared_types["Investigation data types<br/>[types.ts]"]
end

node_user(("Investigator"))
node_supabase[("Supabase auth and database")]

node_user -->|"signs in"| node_auth_route
node_auth_route -->|"authenticates"| node_supabase
node_auth_guard -->|"checks session"| node_supabase
node_user -.->|"configures target"| node_new_route
node_new_route -->|"loads repository"| node_scanner
node_new_route -->|"inspects binary"| node_binary
node_new_route -->|"submits visual input"| node_visual
node_new_route -.->|"starts investigation"| node_investigation_functions
node_investigation_route -->|"advances investigation"| node_investigation_functions
node_investigation_functions -.->|"runs agent"| node_agent
node_agent -->|"dispatches tools"| node_tools
node_agent -->|"uses scanner"| node_scanner
node_agent -->|"verifies claims"| node_confidence
node_tools -->|"handles payloads"| node_payload
node_payload -->|"routes repository target"| node_scanner
node_payload -->|"routes website target"| node_web
node_payload -->|"routes runtime target"| node_runtime
node_payload -->|"routes binary target"| node_binary
node_payload -->|"routes visual target"| node_visual
node_visual_capture -->|"reviews media"| node_media_review
node_investigation_route -->|"renders findings"| node_visuals
node_investigation_route -->|"renders report"| node_report_workspace
node_investigation_route -->|"renders graph"| node_evidence_graph
node_report_workspace -->|"shows suggestions"| node_recommendations
node_report_workspace -->|"loads saved data"| node_supabase
node_investigation_route -->|"uses product data"| node_product_model
node_visuals -->|"displays evidence"| node_shared_types
node_dashboard -.->|"opens investigation"| node_investigation_route

click node_new_route "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/routes/_authenticated/new.tsx"
click node_auth_route "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/routes/auth.tsx"
click node_auth_guard "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/routes/_authenticated/route.tsx"
click node_dashboard "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/routes/_authenticated/dashboard.tsx"
click node_settings "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/routes/_authenticated/settings.tsx"
click node_investigation_route "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/routes/_authenticated/investigations.%24id.tsx"
click node_investigation_functions "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/investigations.functions.ts"
click node_agent "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/agent.server.ts"
click node_tools "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/tools.ts"
click node_payload "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/payload.ts"
click node_scanner "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/scanner.ts"
click node_web "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/web.ts"
click node_runtime "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/runtime.ts"
click node_binary "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/binary.ts"
click node_visual "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/visual.ts"
click node_visual_capture "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/visual-capture.ts"
click node_media_review "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/media-review.ts"
click node_confidence "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/confidence.ts"
click node_product_model "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/product.ts"
click node_recommendations "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/recommendations.ts"
click node_report_workspace "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/components/recon/ReportWorkspace.tsx"
click node_visuals "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/components/recon/InvestigationVisuals.tsx"
click node_evidence_graph "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/components/recon/FilteredEvidenceGraph.tsx"
click node_shared_types "https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/types.ts"

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_new_route,node_auth_route,node_auth_guard,node_dashboard,node_settings,node_investigation_route toneBlue
class node_investigation_functions,node_agent,node_tools,node_payload,node_supabase toneAmber
class node_scanner,node_web,node_runtime,node_binary,node_visual,node_visual_capture,node_media_review toneMint
class node_confidence,node_product_model,node_recommendations,node_report_workspace,node_visuals,node_evidence_graph,node_shared_types toneRose
class node_user toneIndigo
```

## Components

### Product interface

- [New investigation](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/routes/_authenticated/new.tsx): `src/routes/_authenticated/new.tsx`
- [Authentication](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/routes/auth.tsx): `src/routes/auth.tsx`
- [Authenticated workspace](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/routes/_authenticated/route.tsx): `src/routes/_authenticated/route.tsx`
- [Investigation dashboard](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/routes/_authenticated/dashboard.tsx): `src/routes/_authenticated/dashboard.tsx`
- [Settings](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/routes/_authenticated/settings.tsx): `src/routes/_authenticated/settings.tsx`
- [Investigation detail](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/routes/_authenticated/investigations.%24id.tsx): `src/routes/_authenticated/investigations.$id.tsx`

### Investigation orchestration

- [Investigation server functions](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/investigations.functions.ts): `src/lib/recon/investigations.functions.ts`
- [Investigation agent](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/agent.server.ts): `src/lib/recon/agent.server.ts`
- [Analysis tool dispatch](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/tools.ts): `src/lib/recon/tools.ts`
- [Target payload handling](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/payload.ts): `src/lib/recon/payload.ts`

### Target analysis

- [Repository scanner](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/scanner.ts): `src/lib/recon/scanner.ts`
- [Website crawler](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/web.ts): `src/lib/recon/web.ts`
- [Runtime probe](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/runtime.ts): `src/lib/recon/runtime.ts`
- [Binary inspection](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/binary.ts): `src/lib/recon/binary.ts`
- [Visual analysis](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/visual.ts): `src/lib/recon/visual.ts`
- [Capture and frame review](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/visual-capture.ts): `src/lib/recon/visual-capture.ts`
- [Media review](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/media-review.ts): `src/lib/recon/media-review.ts`

### Evidence and reporting

- [Deterministic confidence](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/confidence.ts): `src/lib/recon/confidence.ts`
- [Product analysis](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/product.ts): `src/lib/recon/product.ts`
- [Next-step recommendations](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/recommendations.ts): `src/lib/recon/recommendations.ts`
- [Report and follow-up workspace](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/components/recon/ReportWorkspace.tsx): `src/components/recon/ReportWorkspace.tsx`
- [Evidence and finding views](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/components/recon/InvestigationVisuals.tsx): `src/components/recon/InvestigationVisuals.tsx`
- [Evidence graph](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/components/recon/FilteredEvidenceGraph.tsx): `src/components/recon/FilteredEvidenceGraph.tsx`
- [Investigation data types](https://github.com/dalavaihemanth/recon-thereverseengineeringlab/blob/main/src/lib/recon/types.ts): `src/lib/recon/types.ts`

### Other components

- **Investigator**
- **Supabase auth and database**

## Connections

- Investigator → Authentication: signs in (evidence: `src/routes/auth.tsx`)
- Authentication → Supabase auth and database: authenticates (evidence: `src/routes/auth.tsx`)
- Authenticated workspace → Supabase auth and database: checks session (evidence: `src/routes/_authenticated/route.tsx`)
- Investigator → New investigation: configures target
- New investigation → Repository scanner: loads repository (evidence: `src/routes/_authenticated/new.tsx`)
- New investigation → Binary inspection: inspects binary (evidence: `src/routes/_authenticated/new.tsx`)
- New investigation → Visual analysis: submits visual input (evidence: `src/routes/_authenticated/new.tsx`)
- New investigation → Investigation server functions: starts investigation (evidence: `src/routes/_authenticated/new.tsx`)
- Investigation detail → Investigation server functions: advances investigation (evidence: `src/routes/_authenticated/investigations.$id.tsx`)
- Investigation server functions → Investigation agent: runs agent
- Investigation agent → Analysis tool dispatch: dispatches tools (evidence: `src/lib/recon/agent.server.ts`)
- Investigation agent → Repository scanner: uses scanner (evidence: `src/lib/recon/agent.server.ts`)
- Investigation agent → Deterministic confidence: verifies claims (evidence: `src/lib/recon/agent.server.ts`)
- Analysis tool dispatch → Target payload handling: handles payloads (evidence: `src/lib/recon/tools.ts`)
- Target payload handling → Repository scanner: routes repository target (evidence: `src/lib/recon/payload.ts`)
- Target payload handling → Website crawler: routes website target (evidence: `src/lib/recon/payload.ts`)
- Target payload handling → Runtime probe: routes runtime target (evidence: `src/lib/recon/payload.ts`)
- Target payload handling → Binary inspection: routes binary target (evidence: `src/lib/recon/payload.ts`)
- Target payload handling → Visual analysis: routes visual target (evidence: `src/lib/recon/payload.ts`)
- Capture and frame review → Media review: reviews media (evidence: `src/lib/recon/media-review.ts`)
- Investigation detail → Evidence and finding views: renders findings (evidence: `src/routes/_authenticated/investigations.$id.tsx`)
- Investigation detail → Report and follow-up workspace: renders report (evidence: `src/routes/_authenticated/investigations.$id.tsx`)
- Investigation detail → Evidence graph: renders graph (evidence: `src/routes/_authenticated/investigations.$id.tsx`)
- Report and follow-up workspace → Next-step recommendations: shows suggestions (evidence: `src/components/recon/ReportWorkspace.tsx`)
- Report and follow-up workspace → Supabase auth and database: loads saved data (evidence: `src/components/recon/ReportWorkspace.tsx`)
- Investigation detail → Product analysis: uses product data (evidence: `src/routes/_authenticated/investigations.$id.tsx`)
- Evidence and finding views → Investigation data types: displays evidence (evidence: `src/components/recon/InvestigationVisuals.tsx`)
- Investigation dashboard → Investigation detail: opens investigation
