# jakubmikolajek/codepath-web architecture

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

- Interactive diagram: https://gitdiagram.com/jakubmikolajek/codepath-web
- Repository: https://github.com/jakubmikolajek/codepath-web

## Overview

Nurt Cloud is a code-intelligence workspace: users onboard a repository, then explore generated documentation, ask grounded questions, inspect dependencies and API endpoints, and evaluate quality. The graph shows the Web/API control plane, repository snapshot and external processing boundary, product-facing analysis features, and shared state and integrations. The README documents much of the end-to-end processing flow; source excerpts and the SOURCE INDEX clarify selected API calls. Internal orchestration, ingestion, and AI worker details are outside this repository, so those links are shown only at the documented boundary.

Main entry points: [`apps/api/src/app.module.ts`](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/app.module.ts) (NestJS API), [`apps/web`](https://github.com/jakubmikolajek/codepath-web/tree/main/apps/web) (Web Workspace), [`apps/api/src/modules/api-explorer/services/api-explorer.service.ts`](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/api-explorer/services/api-explorer.service.ts) (Endpoint Discovery), [`apps/api/src/modules/repos/services/repo.service.ts`](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/repos/services/repo.service.ts) (Repository Onboarding)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Workspace UI"]
  node_webui["Web Workspace"]
  node_webapi["Web API Proxy<br/>[route.ts]"]
  node_repo_ui["Repository Workspace"]
  node_chat_ui["Code Chat"]
  node_graph_ui["Graph Explorer"]
  node_api_ui["API Explorer"]
  node_eval_ui["Evaluation Views"]
end

subgraph group_control["API Control Plane"]
  node_api["NestJS API<br/>[app.module.ts]"]
  node_repo_api["Repository Onboarding<br/>[repo.service.ts]"]
  node_repo_fetch["Clone And Snapshot"]
  node_chat_api["Chat Service<br/>[chat.service.ts]"]
  node_evaluation["Evaluation Service"]
  node_realtime["Live Status"]
end

subgraph group_analysis["Code Intelligence"]
  node_docs["Documentation Generation"]
  node_graphs["Dependency Analysis"]
  node_api_discovery["Endpoint Discovery"]
  node_endpoint_detector["Endpoint Detector"]
  node_openapi_builder["OpenAPI Builder"]
  node_api_runner["API Request Runner"]
end

subgraph group_state["State And Integrations"]
  node_db[("PostgreSQL<br/>[db.service.ts]")]
  node_snapshot[("Snapshot Storage")]
  node_orchestrator["Orchestrator Boundary"]
  node_queue["RabbitMQ"]
  node_qdrant[("Qdrant<br/>[qdrant.service.ts]")]
end

node_user(("Developer"))
node_ingest["Ingestion Runtime"]
node_ai["AI Runtime"]
node_vector[("Vector Database")]
node_llm["LLM And Embedding Provider"]

node_user -->|"uses"| node_webui
node_webui -->|"requests data"| node_webapi
node_webapi -->|"proxies requests"| node_api
node_webui -->|"onboards repositories"| node_repo_ui
node_repo_ui -->|"submits repository"| node_api
node_api -->|"routes repository work"| node_repo_api
node_repo_api -.->|"clones repository"| node_repo_fetch
node_repo_fetch -->|"stores snapshot"| node_snapshot
node_repo_api -.->|"submits ingest job"| node_orchestrator
node_orchestrator -->|"dispatches jobs"| node_queue
node_queue -->|"delivers work"| node_ingest
node_ingest -->|"reads snapshot"| node_snapshot
node_ingest -->|"publishes work"| node_queue
node_queue -->|"delivers work"| node_ai
node_ai -->|"stores vectors"| node_qdrant
node_ai -->|"generates content"| node_llm
node_ai -->|"persists results"| node_db
node_chat_ui -->|"asks questions"| node_api
node_api -->|"routes chat"| node_chat_api
node_chat_api -->|"streams chat"| node_orchestrator
node_webui -->|"views documentation"| node_docs
node_webui -->|"explores dependencies"| node_graph_ui
node_graph_ui -->|"requests graph data"| node_api
node_api -->|"routes graph queries"| node_graphs
node_webui -->|"explores endpoints"| node_api_ui
node_api_ui -->|"requests API views"| node_api
node_api -->|"routes exploration"| node_api_discovery
node_api_discovery -->|"detects endpoints"| node_endpoint_detector
node_api_discovery -->|"builds specifications"| node_openapi_builder
node_api_discovery -->|"runs requests"| node_api_runner
node_webui -->|"reviews quality"| node_eval_ui
node_eval_ui -->|"requests evaluations"| node_api
node_api -->|"routes evaluations"| node_evaluation
node_api -.->|"reads and writes"| node_db
node_api -->|"publishes status"| node_realtime
node_realtime -->|"streams updates"| node_webui
node_qdrant -.->|"searches vectors"| node_vector

click node_webui "https://github.com/jakubmikolajek/codepath-web/tree/main/apps/web"
click node_webapi "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/web/app/api/backend/%5B...path%5D/route.ts"
click node_repo_ui "https://github.com/jakubmikolajek/codepath-web/tree/main/apps/web/components/repo"
click node_chat_ui "https://github.com/jakubmikolajek/codepath-web/tree/main/apps/web/components"
click node_graph_ui "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/web/components/graphs/GraphExplorerClient.tsx"
click node_api_ui "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/web/components/api/ApiExplorerClient.tsx"
click node_eval_ui "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/web/components/evaluation/EvaluationClient.tsx"
click node_api "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/app.module.ts"
click node_repo_api "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/repos/services/repo.service.ts"
click node_repo_fetch "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/repos/services/repo-fetcher.service.ts"
click node_chat_api "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/chat/services/chat.service.ts"
click node_evaluation "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/evaluation/services/evaluation.service.ts"
click node_realtime "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/realtime/realtime.gateway.ts"
click node_docs "https://github.com/jakubmikolajek/codepath-web/tree/main/apps/api/src/modules"
click node_graphs "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/graphs/services/dependencies.service.ts"
click node_api_discovery "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/api-explorer/services/api-explorer.service.ts"
click node_endpoint_detector "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/api-explorer/detectors/api-endpoint.detector.ts"
click node_openapi_builder "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/api-explorer/builders/openapi-document.builder.ts"
click node_api_runner "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/api-explorer/services/api-runner.service.ts"
click node_db "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/db/services/db.service.ts"
click node_snapshot "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/repo-storage/services/repo-storage.service.ts"
click node_orchestrator "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/orchestrator-client/services/orchestrator-client.service.ts"
click node_qdrant "https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/qdrant/services/qdrant.service.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_webui,node_webapi,node_repo_ui,node_chat_ui,node_graph_ui,node_api_ui,node_eval_ui toneBlue
class node_api,node_repo_api,node_repo_fetch,node_chat_api,node_evaluation,node_realtime,node_vector toneAmber
class node_docs,node_graphs,node_api_discovery,node_endpoint_detector,node_openapi_builder,node_api_runner toneMint
class node_db,node_snapshot,node_orchestrator,node_queue,node_qdrant toneRose
class node_user,node_ingest,node_ai,node_llm toneIndigo
```

## Components

### Workspace UI

- [Web Workspace](https://github.com/jakubmikolajek/codepath-web/tree/main/apps/web): `apps/web`
- [Web API Proxy](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/web/app/api/backend/%5B...path%5D/route.ts): `apps/web/app/api/backend/[...path]/route.ts`
- [Repository Workspace](https://github.com/jakubmikolajek/codepath-web/tree/main/apps/web/components/repo): `apps/web/components/repo`
- [Code Chat](https://github.com/jakubmikolajek/codepath-web/tree/main/apps/web/components): `apps/web/components`
- [Graph Explorer](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/web/components/graphs/GraphExplorerClient.tsx): `apps/web/components/graphs/GraphExplorerClient.tsx`
- [API Explorer](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/web/components/api/ApiExplorerClient.tsx): `apps/web/components/api/ApiExplorerClient.tsx`
- [Evaluation Views](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/web/components/evaluation/EvaluationClient.tsx): `apps/web/components/evaluation/EvaluationClient.tsx`

### API Control Plane

- [NestJS API](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/app.module.ts): `apps/api/src/app.module.ts`
- [Repository Onboarding](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/repos/services/repo.service.ts): `apps/api/src/modules/repos/services/repo.service.ts`
- [Clone And Snapshot](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/repos/services/repo-fetcher.service.ts): `apps/api/src/modules/repos/services/repo-fetcher.service.ts`
- [Chat Service](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/chat/services/chat.service.ts): `apps/api/src/modules/chat/services/chat.service.ts`
- [Evaluation Service](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/evaluation/services/evaluation.service.ts): `apps/api/src/modules/evaluation/services/evaluation.service.ts`
- [Live Status](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/realtime/realtime.gateway.ts): `apps/api/src/modules/realtime/realtime.gateway.ts`

### Code Intelligence

- [Documentation Generation](https://github.com/jakubmikolajek/codepath-web/tree/main/apps/api/src/modules): `apps/api/src/modules`
- [Dependency Analysis](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/graphs/services/dependencies.service.ts): `apps/api/src/modules/graphs/services/dependencies.service.ts`
- [Endpoint Discovery](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/api-explorer/services/api-explorer.service.ts): `apps/api/src/modules/api-explorer/services/api-explorer.service.ts`
- [Endpoint Detector](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/api-explorer/detectors/api-endpoint.detector.ts): `apps/api/src/modules/api-explorer/detectors/api-endpoint.detector.ts`
- [OpenAPI Builder](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/api-explorer/builders/openapi-document.builder.ts): `apps/api/src/modules/api-explorer/builders/openapi-document.builder.ts`
- [API Request Runner](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/api-explorer/services/api-runner.service.ts): `apps/api/src/modules/api-explorer/services/api-runner.service.ts`

### State And Integrations

- [PostgreSQL](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/db/services/db.service.ts): `apps/api/src/modules/db/services/db.service.ts`
- [Snapshot Storage](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/repo-storage/services/repo-storage.service.ts): `apps/api/src/modules/repo-storage/services/repo-storage.service.ts`
- [Orchestrator Boundary](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/orchestrator-client/services/orchestrator-client.service.ts): `apps/api/src/modules/orchestrator-client/services/orchestrator-client.service.ts`
- **RabbitMQ**
- [Qdrant](https://github.com/jakubmikolajek/codepath-web/blob/main/apps/api/src/modules/qdrant/services/qdrant.service.ts): `apps/api/src/modules/qdrant/services/qdrant.service.ts`

### Other components

- **Developer**
- **Ingestion Runtime**
- **AI Runtime**
- **Vector Database**
- **LLM And Embedding Provider**

## Connections

- Developer → Web Workspace: uses (evidence: `README.md`)
- Web Workspace → Web API Proxy: requests data (evidence: `README.md`)
- Web API Proxy → NestJS API: proxies requests (evidence: `README.md`)
- Web Workspace → Repository Workspace: onboards repositories (evidence: `README.md`)
- Repository Workspace → NestJS API: submits repository (evidence: `README.md`)
- NestJS API → Repository Onboarding: routes repository work
- Repository Onboarding → Clone And Snapshot: clones repository
- Clone And Snapshot → Snapshot Storage: stores snapshot (evidence: `README.md`)
- Repository Onboarding → Orchestrator Boundary: submits ingest job
- Orchestrator Boundary → RabbitMQ: dispatches jobs (evidence: `README.md`)
- RabbitMQ → Ingestion Runtime: delivers work (evidence: `README.md`)
- Ingestion Runtime → Snapshot Storage: reads snapshot (evidence: `README.md`)
- Ingestion Runtime → RabbitMQ: publishes work (evidence: `README.md`)
- RabbitMQ → AI Runtime: delivers work (evidence: `README.md`)
- AI Runtime → Qdrant: stores vectors (evidence: `README.md`)
- AI Runtime → LLM And Embedding Provider: generates content (evidence: `README.md`)
- AI Runtime → PostgreSQL: persists results (evidence: `README.md`)
- Code Chat → NestJS API: asks questions (evidence: `README.md`)
- NestJS API → Chat Service: routes chat
- Chat Service → Orchestrator Boundary: streams chat (evidence: `apps/api/src/modules/chat/services/chat.service.ts`)
- Web Workspace → Documentation Generation: views documentation (evidence: `README.md`)
- Web Workspace → Graph Explorer: explores dependencies (evidence: `README.md`)
- Graph Explorer → NestJS API: requests graph data (evidence: `README.md`)
- NestJS API → Dependency Analysis: routes graph queries
- Web Workspace → API Explorer: explores endpoints (evidence: `README.md`)
- API Explorer → NestJS API: requests API views (evidence: `apps/web/components/api/ApiExplorerClient.tsx`)
- NestJS API → Endpoint Discovery: routes exploration
- Endpoint Discovery → Endpoint Detector: detects endpoints (evidence: `apps/api/src/modules/api-explorer/services/api-explorer.service.ts`)
- Endpoint Discovery → OpenAPI Builder: builds specifications (evidence: `apps/api/src/modules/api-explorer/services/api-explorer.service.ts`)
- Endpoint Discovery → API Request Runner: runs requests (evidence: `apps/api/src/modules/api-explorer/services/api-explorer.service.ts`)
- Web Workspace → Evaluation Views: reviews quality (evidence: `README.md`)
- Evaluation Views → NestJS API: requests evaluations (evidence: `README.md`)
- NestJS API → Evaluation Service: routes evaluations
- NestJS API → PostgreSQL: reads and writes
- NestJS API → Live Status: publishes status (evidence: `README.md`)
- Live Status → Web Workspace: streams updates (evidence: `README.md`)
- Qdrant → Vector Database: searches vectors
