# lazygenius69/vectron architecture

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

- Interactive diagram: https://gitdiagram.com/lazygenius69/vectron
- Repository: https://github.com/lazygenius69/vectron

## Overview

VECTRON turns an uploaded ZIP or public GitHub repository into a typed dependency graph, then supports graph exploration, impact analysis, process detection, AI-assisted queries and reports, and MCP access. The sampled client upload path parses ZIPs locally; the README also documents server-side parsing and GitHub intake. The server API excerpt is partial, so some analysis and provider relationships are shown only where the README documents them.

Main entry points: [`vectron-app/client/src/App.tsx`](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/App.tsx) (Workspace orchestration), [`vectron-app/client/src/lib/api.ts`](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/lib/api.ts) (Client API), [`vectron-app/server/src/index.ts`](https://github.com/lazygenius69/vectron/blob/main/vectron-app/server/src/index.ts) (Server intake and API), [`vectron-app/server/src/graph-store.ts`](https://github.com/lazygenius69/vectron/blob/main/vectron-app/server/src/graph-store.ts) (In-memory graph store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intake["Repository intake"]
  node_zip["ZIP upload<br/>[UploadZone.tsx]"]
  node_api["Client API<br/>[api.ts]"]
  node_server["Server intake and API<br/>[index.ts]"]
end

subgraph group_graph["Graph generation"]
  node_localparse["Local ZIP parser<br/>[local-parser.ts]"]
  node_parser["Source parsers<br/>[parser.ts]"]
  node_builder["Graph builder<br/>[graph-builder.ts]"]
  node_store[("In-memory graph store<br/>[graph-store.ts]")]
  node_graphmodel["Graph model<br/>[graph.ts]"]
end

subgraph group_workspace["Analysis workspace"]
  node_workspace["Workspace orchestration<br/>[App.tsx]"]
  node_renderer["Interactive graph<br/>[GraphView2D.tsx]"]
  node_explorer["Explorer and filters<br/>[ExplorerPanel.tsx]"]
  node_nodeintel["Node intelligence"]
  node_blast["Blast radius<br/>[risk.ts]"]
  node_metrics["Metrics dashboard"]
  node_process["Process detection<br/>[ProcessPanel.tsx]"]
  node_query["AI code query<br/>[QueryPanel.tsx]"]
  node_report["Intelligence reports<br/>[ReportModal.tsx]"]
  node_agents["Multi-agent insights<br/>[AgentPanel.tsx]"]
end

subgraph group_integrations["AI and MCP"]
  node_mcp["MCP server<br/>[mcp-server.ts]"]
  node_llm{{"LLM providers"}}
end

node_user(("Developer"))
node_github["GitHub repository"]
node_assistant(("MCP clients"))

node_user -->|"uploads"| node_zip
node_user -->|"submits URL"| node_github
node_zip -->|"submits ZIP"| node_api
node_api -->|"parses locally"| node_localparse
node_github -->|"downloads repository"| node_server
node_server -->|"parses files"| node_parser
node_parser -->|"provides parsed symbols"| node_builder
node_builder -->|"stores graph"| node_store
node_server -->|"builds graph"| node_builder
node_store -->|"serves graph"| node_workspace
node_workspace -->|"renders"| node_renderer
node_workspace -->|"shows navigation"| node_explorer
node_workspace -->|"shows node details"| node_nodeintel
node_workspace -->|"shows metrics"| node_metrics
node_workspace -->|"shows processes"| node_process
node_workspace -->|"opens query"| node_query
node_workspace -->|"opens reports"| node_report
node_workspace -->|"shows insights"| node_agents
node_workspace -->|"calculates impact"| node_blast
node_query -->|"requests answer"| node_api
node_nodeintel -->|"requests summary"| node_api
node_process -->|"requests processes"| node_api
node_report -->|"requests report"| node_api
node_agents -->|"requests analysis"| node_api
node_query -->|"queries providers"| node_llm
node_report -->|"generates reports"| node_llm
node_agents -->|"generates insights"| node_llm
node_store -->|"exposes graph tools"| node_mcp
node_assistant -->|"calls tools"| node_mcp

click node_zip "https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/UploadZone.tsx"
click node_api "https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/lib/api.ts"
click node_localparse "https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/lib/local-parser.ts"
click node_server "https://github.com/lazygenius69/vectron/blob/main/vectron-app/server/src/index.ts"
click node_parser "https://github.com/lazygenius69/vectron/blob/main/vectron-app/server/src/parser.ts"
click node_builder "https://github.com/lazygenius69/vectron/blob/main/vectron-app/server/src/graph-builder.ts"
click node_store "https://github.com/lazygenius69/vectron/blob/main/vectron-app/server/src/graph-store.ts"
click node_graphmodel "https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/types/graph.ts"
click node_workspace "https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/App.tsx"
click node_renderer "https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/GraphView2D.tsx"
click node_explorer "https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/ExplorerPanel.tsx"
click node_nodeintel "https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/NodeIntelligence.tsx"
click node_blast "https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/lib/risk.ts"
click node_metrics "https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/MetricsDashboard.tsx"
click node_process "https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/ProcessPanel.tsx"
click node_query "https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/QueryPanel.tsx"
click node_report "https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/ReportModal.tsx"
click node_agents "https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/AgentPanel.tsx"
click node_mcp "https://github.com/lazygenius69/vectron/blob/main/vectron-app/server/src/mcp-server.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_zip,node_api,node_server,node_assistant toneBlue
class node_localparse,node_parser,node_builder,node_store,node_graphmodel toneAmber
class node_workspace,node_renderer,node_explorer,node_nodeintel,node_blast,node_metrics,node_process,node_query,node_report,node_agents toneMint
class node_mcp,node_llm toneRose
class node_user,node_github toneIndigo
```

## Components

### Repository intake

- [ZIP upload](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/UploadZone.tsx): `vectron-app/client/src/components/UploadZone.tsx`
- [Client API](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/lib/api.ts): `vectron-app/client/src/lib/api.ts`
- [Server intake and API](https://github.com/lazygenius69/vectron/blob/main/vectron-app/server/src/index.ts): `vectron-app/server/src/index.ts`

### Graph generation

- [Local ZIP parser](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/lib/local-parser.ts): `vectron-app/client/src/lib/local-parser.ts`
- [Source parsers](https://github.com/lazygenius69/vectron/blob/main/vectron-app/server/src/parser.ts): `vectron-app/server/src/parser.ts`
- [Graph builder](https://github.com/lazygenius69/vectron/blob/main/vectron-app/server/src/graph-builder.ts): `vectron-app/server/src/graph-builder.ts`
- [In-memory graph store](https://github.com/lazygenius69/vectron/blob/main/vectron-app/server/src/graph-store.ts): `vectron-app/server/src/graph-store.ts`
- [Graph model](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/types/graph.ts): `vectron-app/client/src/types/graph.ts`

### Analysis workspace

- [Workspace orchestration](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/App.tsx): `vectron-app/client/src/App.tsx`
- [Interactive graph](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/GraphView2D.tsx): `vectron-app/client/src/components/GraphView2D.tsx`
- [Explorer and filters](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/ExplorerPanel.tsx): `vectron-app/client/src/components/ExplorerPanel.tsx`
- [Node intelligence](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/NodeIntelligence.tsx): `vectron-app/client/src/components/NodeIntelligence.tsx`
- [Blast radius](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/lib/risk.ts): `vectron-app/client/src/lib/risk.ts`
- [Metrics dashboard](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/MetricsDashboard.tsx): `vectron-app/client/src/components/MetricsDashboard.tsx`
- [Process detection](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/ProcessPanel.tsx): `vectron-app/client/src/components/ProcessPanel.tsx`
- [AI code query](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/QueryPanel.tsx): `vectron-app/client/src/components/QueryPanel.tsx`
- [Intelligence reports](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/ReportModal.tsx): `vectron-app/client/src/components/ReportModal.tsx`
- [Multi-agent insights](https://github.com/lazygenius69/vectron/blob/main/vectron-app/client/src/components/AgentPanel.tsx): `vectron-app/client/src/components/AgentPanel.tsx`

### AI and MCP

- [MCP server](https://github.com/lazygenius69/vectron/blob/main/vectron-app/server/src/mcp-server.ts): `vectron-app/server/src/mcp-server.ts`
- **LLM providers**

### Other components

- **Developer**
- **GitHub repository**
- **MCP clients**

## Connections

- Developer → ZIP upload: uploads (evidence: `README.md`)
- Developer → GitHub repository: submits URL (evidence: `README.md`)
- ZIP upload → Client API: submits ZIP (evidence: `vectron-app/client/src/components/UploadZone.tsx`)
- Client API → Local ZIP parser: parses locally (evidence: `vectron-app/client/src/lib/api.ts`)
- GitHub repository → Server intake and API: downloads repository (evidence: `README.md`)
- Server intake and API → Source parsers: parses files (evidence: `README.md`)
- Source parsers → Graph builder: provides parsed symbols (evidence: `vectron-app/server/src/graph-builder.ts`)
- Graph builder → In-memory graph store: stores graph (evidence: `README.md`)
- Server intake and API → Graph builder: builds graph (evidence: `README.md`)
- In-memory graph store → Workspace orchestration: serves graph (evidence: `README.md`)
- Workspace orchestration → Interactive graph: renders (evidence: `vectron-app/client/src/App.tsx`)
- Workspace orchestration → Explorer and filters: shows navigation (evidence: `vectron-app/client/src/App.tsx`)
- Workspace orchestration → Node intelligence: shows node details (evidence: `vectron-app/client/src/App.tsx`)
- Workspace orchestration → Metrics dashboard: shows metrics (evidence: `vectron-app/client/src/App.tsx`)
- Workspace orchestration → Process detection: shows processes (evidence: `vectron-app/client/src/App.tsx`)
- Workspace orchestration → AI code query: opens query (evidence: `vectron-app/client/src/App.tsx`)
- Workspace orchestration → Intelligence reports: opens reports (evidence: `vectron-app/client/src/App.tsx`)
- Workspace orchestration → Multi-agent insights: shows insights (evidence: `vectron-app/client/src/App.tsx`)
- Workspace orchestration → Blast radius: calculates impact (evidence: `vectron-app/client/src/App.tsx`)
- AI code query → Client API: requests answer (evidence: `vectron-app/client/src/components/QueryPanel.tsx`)
- Node intelligence → Client API: requests summary (evidence: `vectron-app/client/src/components/NodeIntelligence.tsx`)
- Process detection → Client API: requests processes (evidence: `vectron-app/client/src/lib/api.ts`)
- Intelligence reports → Client API: requests report (evidence: `vectron-app/client/src/lib/api.ts`)
- Multi-agent insights → Client API: requests analysis (evidence: `vectron-app/client/src/lib/api.ts`)
- AI code query → LLM providers: queries providers (evidence: `README.md`)
- Intelligence reports → LLM providers: generates reports (evidence: `README.md`)
- Multi-agent insights → LLM providers: generates insights (evidence: `README.md`)
- In-memory graph store → MCP server: exposes graph tools (evidence: `README.md`)
- MCP clients → MCP server: calls tools (evidence: `README.md`)
