# dvdemon/giturizer architecture

> Architecture diagram of the GitHub repository dvdemon/giturizer, 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/dvdemon/giturizer
- Repository: https://github.com/dvdemon/giturizer

## Overview

ArchDiscovery accepts GitHub/GitLab projects, queues analysis runs, clones and analyzes repository contents, then stores and serves a unified architecture report through an API and web UI. The main analysis stages include technology detection, code/API analysis, deployment extraction, data-model and call-chain reconstruction, and report assembly. The README documents capabilities beyond the sampled source; links for those are cited to it, and unsampled implementation details are not inferred.

Main entry points: [`backend/src/archdiscovery/services/pipeline.py`](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/services/pipeline.py) (Analysis pipeline), [`backend/src/archdiscovery/api/main.py`](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/api/main.py) (HTTP API), [`backend/src/archdiscovery/pipeline/report.py`](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/pipeline/report.py) (Report assembly), [`backend/src/archdiscovery/api/routes/results.py`](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/api/routes/results.py) (Result and report routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["User access"]
end

subgraph group_orchestration["Run orchestration"]
  node_api["HTTP API<br/>[main.py]"]
  node_project_routes["Project routes<br/>[projects.py]"]
  node_run_routes["Run routes<br/>[runs.py]"]
  node_queue["Run queue<br/>[worker.py]"]
  node_pipeline["Analysis pipeline<br/>[pipeline.py]"]
end

subgraph group_analysis["Repository analysis"]
  node_clone["Repository clone<br/>[clone.py]"]
  node_technology["Technology detection<br/>[tech_detect.py]"]
  node_archguard["ArchGuard analysis<br/>[archguard.py]"]
  node_cpp["C++ analysis<br/>[cpp.py]"]
  node_syntax["Syntax analysis"]
  node_frontend_analysis["Frontend analysis"]
  node_api_extract["API extraction"]
  node_annotation_extract["Annotation extraction"]
  node_deployment["Deployment extraction"]
  node_data_models["Data-model analysis"]
  node_chains["Call-chain building<br/>[chains.py]"]
  node_report["Report assembly<br/>[report.py]"]
end

subgraph group_persistence["Results and storage"]
  node_database[("PostgreSQL")]
  node_db_models["Run and result records<br/>[models.py]"]
  node_session["Database sessions<br/>[session.py]"]
  node_result_routes["Result and report routes<br/>[results.py]"]
end

subgraph group_presentation["Web experience"]
  node_web_app["Web application<br/>[App.tsx]"]
  node_projects_page["Projects view<br/>[index.tsx]"]
  node_scan_page["Scan and report views<br/>[index.tsx]"]
  node_flows_panel["API-flow views<br/>[ApiFlowsPanel.tsx]"]
  node_sequence["Sequence diagram"]
  node_web_api["Web API client<br/>[Api.ts]"]
end

node_user(("Engineer"))

node_user -->|"uses"| node_web_app
node_web_app -.->|"routes to"| node_projects_page
node_projects_page -.->|"requests"| node_web_api
node_web_api -->|"calls"| node_api
node_api -->|"registers"| node_project_routes
node_api -->|"registers"| node_run_routes
node_api -->|"registers"| node_result_routes
node_project_routes -->|"starts runs"| node_run_routes
node_run_routes -->|"queues run"| node_queue
node_api -->|"starts worker"| node_queue
node_queue -->|"executes"| node_pipeline
node_pipeline -->|"clones repository"| node_clone
node_pipeline -->|"detects technologies"| node_technology
node_pipeline -->|"dispatches analysis"| node_archguard
node_pipeline -->|"dispatches analysis"| node_cpp
node_pipeline -->|"dispatches analysis"| node_syntax
node_pipeline -->|"dispatches analysis"| node_frontend_analysis
node_pipeline -->|"extracts API specs"| node_api_extract
node_pipeline -->|"extracts annotations"| node_annotation_extract
node_pipeline -->|"extracts deployment"| node_deployment
node_pipeline -->|"builds data models"| node_data_models
node_pipeline -->|"builds chains"| node_chains
node_pipeline -->|"builds report"| node_report
node_report -->|"uses"| node_chains
node_report -->|"uses"| node_data_models
node_pipeline -->|"persists results"| node_db_models
node_db_models -->|"stores records"| node_database
node_session -->|"connects"| node_database
node_result_routes -->|"reads results"| node_database
node_result_routes -->|"serves report data"| node_scan_page
node_scan_page -.->|"requests results"| node_web_api
node_scan_page -->|"shows flows"| node_flows_panel
node_flows_panel -->|"renders diagram"| node_sequence

click node_api "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/api/main.py"
click node_project_routes "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/api/routes/projects.py"
click node_run_routes "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/api/routes/runs.py"
click node_queue "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/queue/worker.py"
click node_pipeline "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/services/pipeline.py"
click node_clone "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/vcs/clone.py"
click node_technology "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/pipeline/tech_detect.py"
click node_archguard "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/analyzer/archguard.py"
click node_cpp "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/analyzer/cpp.py"
click node_syntax "https://github.com/dvdemon/giturizer/tree/main/backend/src/archdiscovery/analyzer/syntax"
click node_frontend_analysis "https://github.com/dvdemon/giturizer/tree/main/backend/src/archdiscovery/analyzer/frontend"
click node_api_extract "https://github.com/dvdemon/giturizer/tree/main/backend/src/archdiscovery/pipeline"
click node_annotation_extract "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/pipeline/annotations_extract.py"
click node_deployment "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/pipeline/deployment_extract.py"
click node_data_models "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/pipeline/schema_datamodel.py"
click node_chains "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/pipeline/chains.py"
click node_report "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/pipeline/report.py"
click node_db_models "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/db/models.py"
click node_session "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/db/session.py"
click node_result_routes "https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/api/routes/results.py"
click node_web_app "https://github.com/dvdemon/giturizer/blob/main/web/src/App.tsx"
click node_projects_page "https://github.com/dvdemon/giturizer/blob/main/web/src/pages/ProjectsPage/index.tsx"
click node_scan_page "https://github.com/dvdemon/giturizer/blob/main/web/src/pages/ScanPage/index.tsx"
click node_flows_panel "https://github.com/dvdemon/giturizer/blob/main/web/src/features/scan/components/ApiFlowsPanel.tsx"
click node_sequence "https://github.com/dvdemon/giturizer/blob/main/web/src/features/scan/components/SequenceDiagram.tsx"
click node_web_api "https://github.com/dvdemon/giturizer/blob/main/web/src/utils/api/Api.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_api,node_project_routes,node_run_routes,node_queue,node_pipeline toneAmber
class node_clone,node_technology,node_archguard,node_cpp,node_syntax,node_frontend_analysis,node_api_extract,node_annotation_extract,node_deployment,node_data_models,node_chains,node_report toneMint
class node_database,node_db_models,node_session,node_result_routes toneRose
class node_web_app,node_projects_page,node_scan_page,node_flows_panel,node_sequence,node_web_api,node_user toneIndigo
```

## Components

### Run orchestration

- [HTTP API](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/api/main.py): `backend/src/archdiscovery/api/main.py`
- [Project routes](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/api/routes/projects.py): `backend/src/archdiscovery/api/routes/projects.py`
- [Run routes](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/api/routes/runs.py): `backend/src/archdiscovery/api/routes/runs.py`
- [Run queue](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/queue/worker.py): `backend/src/archdiscovery/queue/worker.py`
- [Analysis pipeline](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/services/pipeline.py): `backend/src/archdiscovery/services/pipeline.py`

### Repository analysis

- [Repository clone](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/vcs/clone.py): `backend/src/archdiscovery/vcs/clone.py`
- [Technology detection](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/pipeline/tech_detect.py): `backend/src/archdiscovery/pipeline/tech_detect.py`
- [ArchGuard analysis](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/analyzer/archguard.py): `backend/src/archdiscovery/analyzer/archguard.py`
- [C++ analysis](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/analyzer/cpp.py): `backend/src/archdiscovery/analyzer/cpp.py`
- [Syntax analysis](https://github.com/dvdemon/giturizer/tree/main/backend/src/archdiscovery/analyzer/syntax): `backend/src/archdiscovery/analyzer/syntax`
- [Frontend analysis](https://github.com/dvdemon/giturizer/tree/main/backend/src/archdiscovery/analyzer/frontend): `backend/src/archdiscovery/analyzer/frontend`
- [API extraction](https://github.com/dvdemon/giturizer/tree/main/backend/src/archdiscovery/pipeline): `backend/src/archdiscovery/pipeline`
- [Annotation extraction](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/pipeline/annotations_extract.py): `backend/src/archdiscovery/pipeline/annotations_extract.py`
- [Deployment extraction](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/pipeline/deployment_extract.py): `backend/src/archdiscovery/pipeline/deployment_extract.py`
- [Data-model analysis](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/pipeline/schema_datamodel.py): `backend/src/archdiscovery/pipeline/schema_datamodel.py`
- [Call-chain building](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/pipeline/chains.py): `backend/src/archdiscovery/pipeline/chains.py`
- [Report assembly](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/pipeline/report.py): `backend/src/archdiscovery/pipeline/report.py`

### Results and storage

- **PostgreSQL**
- [Run and result records](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/db/models.py): `backend/src/archdiscovery/db/models.py`
- [Database sessions](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/db/session.py): `backend/src/archdiscovery/db/session.py`
- [Result and report routes](https://github.com/dvdemon/giturizer/blob/main/backend/src/archdiscovery/api/routes/results.py): `backend/src/archdiscovery/api/routes/results.py`

### Web experience

- [Web application](https://github.com/dvdemon/giturizer/blob/main/web/src/App.tsx): `web/src/App.tsx`
- [Projects view](https://github.com/dvdemon/giturizer/blob/main/web/src/pages/ProjectsPage/index.tsx): `web/src/pages/ProjectsPage/index.tsx`
- [Scan and report views](https://github.com/dvdemon/giturizer/blob/main/web/src/pages/ScanPage/index.tsx): `web/src/pages/ScanPage/index.tsx`
- [API-flow views](https://github.com/dvdemon/giturizer/blob/main/web/src/features/scan/components/ApiFlowsPanel.tsx): `web/src/features/scan/components/ApiFlowsPanel.tsx`
- [Sequence diagram](https://github.com/dvdemon/giturizer/blob/main/web/src/features/scan/components/SequenceDiagram.tsx): `web/src/features/scan/components/SequenceDiagram.tsx`
- [Web API client](https://github.com/dvdemon/giturizer/blob/main/web/src/utils/api/Api.ts): `web/src/utils/api/Api.ts`

### Other components

- **Engineer**

## Connections

- Engineer → Web application: uses (evidence: `README.md`)
- Web application → Projects view: routes to
- Projects view → Web API client: requests
- Web API client → HTTP API: calls (evidence: `README.md`)
- HTTP API → Project routes: registers (evidence: `backend/src/archdiscovery/api/main.py`)
- HTTP API → Run routes: registers (evidence: `backend/src/archdiscovery/api/main.py`)
- HTTP API → Result and report routes: registers (evidence: `backend/src/archdiscovery/api/main.py`)
- Project routes → Run routes: starts runs (evidence: `README.md`)
- Run routes → Run queue: queues run (evidence: `README.md`)
- HTTP API → Run queue: starts worker (evidence: `backend/src/archdiscovery/api/main.py`)
- Run queue → Analysis pipeline: executes (evidence: `backend/src/archdiscovery/queue/worker.py`)
- Analysis pipeline → Repository clone: clones repository (evidence: `backend/src/archdiscovery/services/pipeline.py`)
- Analysis pipeline → Technology detection: detects technologies (evidence: `backend/src/archdiscovery/services/pipeline.py`)
- Analysis pipeline → ArchGuard analysis: dispatches analysis (evidence: `backend/src/archdiscovery/services/pipeline.py`)
- Analysis pipeline → C++ analysis: dispatches analysis (evidence: `backend/src/archdiscovery/services/pipeline.py`)
- Analysis pipeline → Syntax analysis: dispatches analysis (evidence: `backend/src/archdiscovery/services/pipeline.py`)
- Analysis pipeline → Frontend analysis: dispatches analysis (evidence: `backend/src/archdiscovery/services/pipeline.py`)
- Analysis pipeline → API extraction: extracts API specs (evidence: `backend/src/archdiscovery/services/pipeline.py`)
- Analysis pipeline → Annotation extraction: extracts annotations (evidence: `backend/src/archdiscovery/services/pipeline.py`)
- Analysis pipeline → Deployment extraction: extracts deployment (evidence: `README.md`)
- Analysis pipeline → Data-model analysis: builds data models (evidence: `README.md`)
- Analysis pipeline → Call-chain building: builds chains
- Analysis pipeline → Report assembly: builds report (evidence: `backend/src/archdiscovery/services/pipeline.py`)
- Report assembly → Call-chain building: uses (evidence: `backend/src/archdiscovery/pipeline/report.py`)
- Report assembly → Data-model analysis: uses (evidence: `backend/src/archdiscovery/pipeline/report.py`)
- Analysis pipeline → Run and result records: persists results (evidence: `backend/src/archdiscovery/services/pipeline.py`)
- Run and result records → PostgreSQL: stores records
- Database sessions → PostgreSQL: connects (evidence: `backend/src/archdiscovery/db/session.py`)
- Result and report routes → PostgreSQL: reads results (evidence: `README.md`)
- Result and report routes → Scan and report views: serves report data (evidence: `README.md`)
- Scan and report views → Web API client: requests results
- Scan and report views → API-flow views: shows flows (evidence: `README.md`)
- API-flow views → Sequence diagram: renders diagram (evidence: `web/src/features/scan/components/ApiFlowsPanel.tsx`)
