# edcrove/provenly architecture

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

- Interactive diagram: https://gitdiagram.com/edcrove/provenly
- Repository: https://github.com/edcrove/provenly

## Overview

Provenly is a QA/test-management platform: users create stable-ID test cases, CI submits JUnit reports, and the product stores idempotent runs and exposes summaries, diagnostics, and case history through an API and React UI. The backend is a modular monolith with catalog, ingestion, and execution domains; PostgreSQL-backed stores serve those modules. The README establishes the end-to-end workflow and major capabilities. Some handlers and frontend feature internals were not sampled, so their detailed wiring is not asserted.

Main entry points: [`backend/internal/app/app.go`](https://github.com/edcrove/provenly/blob/main/backend/internal/app/app.go) (HTTP API), [`backend/internal/ingestion/ingestion.go`](https://github.com/edcrove/provenly/blob/main/backend/internal/ingestion/ingestion.go) (Report ingestion), [`backend/internal/execution/service.go`](https://github.com/edcrove/provenly/blob/main/backend/internal/execution/service.go) (Run management), [`frontend/src/app/routes.tsx`](https://github.com/edcrove/provenly/blob/main/frontend/src/app/routes.tsx) (Page routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_backend["Backend domains"]
  node_api["HTTP API<br/>[app.go]"]
  node_catalog["Test catalog<br/>[service.go]"]
  node_catalog_http["Catalog routes<br/>[http.go]"]
  node_ingestion_http["Ingestion routes<br/>[http.go]"]
  node_ingestion["Report ingestion<br/>[ingestion.go]"]
  node_junit["JUnit parser<br/>[junit.go]"]
  node_execution_http["Execution routes<br/>[http.go]"]
  node_execution["Run management<br/>[service.go]"]
  node_summary["Run summaries<br/>[summary.go]"]
end

subgraph group_storage["Persistence"]
  node_catalog_store["Catalog store<br/>[store.go]"]
  node_catalog_db[("Catalog database<br/>[catalog.sql.go]")]
  node_execution_store["Execution store<br/>[store.go]"]
  node_execution_db[("Execution database<br/>[execution.sql.go]")]
end

subgraph group_frontend["Web interface"]
  node_web_app["Web application<br/>[App.tsx]"]
  node_routes["Page routes<br/>[routes.tsx]"]
  node_case_pages["Test case pages"]
  node_run_pages["Test run pages"]
  node_api_client["API client<br/>[client.ts]"]
end

node_user(("QA user"))
node_ci(("CI provider"))

node_user -->|"manages cases"| node_case_pages
node_ci -->|"posts JUnit"| node_ingestion_http
node_case_pages -.->|"requests data"| node_api_client
node_run_pages -.->|"requests data"| node_api_client
node_api_client -->|"calls API"| node_api
node_api -->|"registers routes"| node_catalog_http
node_api -->|"registers routes"| node_execution_http
node_api -->|"registers routes"| node_ingestion_http
node_api -.->|"serves UI"| node_web_app
node_catalog_http -.->|"uses cases"| node_catalog
node_execution_http -.->|"uses runs"| node_execution
node_ingestion_http -.->|"invokes ingestion"| node_ingestion
node_ingestion -->|"parses report"| node_junit
node_ingestion -->|"correlates IDs"| node_catalog
node_ingestion -->|"records run"| node_execution
node_catalog -.->|"persists cases"| node_catalog_store
node_catalog_store -->|"runs queries"| node_catalog_db
node_execution -.->|"persists runs"| node_execution_store
node_execution_store -->|"runs queries"| node_execution_db
node_execution -->|"computes outcomes"| node_summary
node_routes -->|"routes to"| node_case_pages
node_routes -->|"routes to"| node_run_pages
node_web_app -->|"installs router"| node_routes

click node_api "https://github.com/edcrove/provenly/blob/main/backend/internal/app/app.go"
click node_catalog "https://github.com/edcrove/provenly/blob/main/backend/internal/catalog/service.go"
click node_catalog_http "https://github.com/edcrove/provenly/blob/main/backend/internal/catalog/http.go"
click node_catalog_store "https://github.com/edcrove/provenly/blob/main/backend/internal/catalog/postgres/store.go"
click node_catalog_db "https://github.com/edcrove/provenly/blob/main/backend/internal/catalog/catalogdb/catalog.sql.go"
click node_ingestion_http "https://github.com/edcrove/provenly/blob/main/backend/internal/ingestion/http.go"
click node_ingestion "https://github.com/edcrove/provenly/blob/main/backend/internal/ingestion/ingestion.go"
click node_junit "https://github.com/edcrove/provenly/blob/main/backend/internal/ingestion/junit/junit.go"
click node_execution_http "https://github.com/edcrove/provenly/blob/main/backend/internal/execution/http.go"
click node_execution "https://github.com/edcrove/provenly/blob/main/backend/internal/execution/service.go"
click node_summary "https://github.com/edcrove/provenly/blob/main/backend/internal/execution/summary.go"
click node_execution_store "https://github.com/edcrove/provenly/blob/main/backend/internal/execution/postgres/store.go"
click node_execution_db "https://github.com/edcrove/provenly/blob/main/backend/internal/execution/executiondb/execution.sql.go"
click node_web_app "https://github.com/edcrove/provenly/blob/main/frontend/src/app/App.tsx"
click node_routes "https://github.com/edcrove/provenly/blob/main/frontend/src/app/routes.tsx"
click node_case_pages "https://github.com/edcrove/provenly/tree/main/frontend/src/features/test-cases"
click node_run_pages "https://github.com/edcrove/provenly/tree/main/frontend/src/features/test-runs"
click node_api_client "https://github.com/edcrove/provenly/blob/main/frontend/src/api/client.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_catalog,node_catalog_http,node_ingestion_http,node_ingestion,node_junit,node_execution_http,node_execution,node_summary,node_user toneBlue
class node_catalog_store,node_catalog_db,node_execution_store,node_execution_db toneAmber
class node_web_app,node_routes,node_case_pages,node_run_pages,node_api_client toneMint
class node_ci toneIndigo
```

## Components

### Backend domains

- [HTTP API](https://github.com/edcrove/provenly/blob/main/backend/internal/app/app.go): `backend/internal/app/app.go`
- [Test catalog](https://github.com/edcrove/provenly/blob/main/backend/internal/catalog/service.go): `backend/internal/catalog/service.go`
- [Catalog routes](https://github.com/edcrove/provenly/blob/main/backend/internal/catalog/http.go): `backend/internal/catalog/http.go`
- [Ingestion routes](https://github.com/edcrove/provenly/blob/main/backend/internal/ingestion/http.go): `backend/internal/ingestion/http.go`
- [Report ingestion](https://github.com/edcrove/provenly/blob/main/backend/internal/ingestion/ingestion.go): `backend/internal/ingestion/ingestion.go`
- [JUnit parser](https://github.com/edcrove/provenly/blob/main/backend/internal/ingestion/junit/junit.go): `backend/internal/ingestion/junit/junit.go`
- [Execution routes](https://github.com/edcrove/provenly/blob/main/backend/internal/execution/http.go): `backend/internal/execution/http.go`
- [Run management](https://github.com/edcrove/provenly/blob/main/backend/internal/execution/service.go): `backend/internal/execution/service.go`
- [Run summaries](https://github.com/edcrove/provenly/blob/main/backend/internal/execution/summary.go): `backend/internal/execution/summary.go`

### Persistence

- [Catalog store](https://github.com/edcrove/provenly/blob/main/backend/internal/catalog/postgres/store.go): `backend/internal/catalog/postgres/store.go`
- [Catalog database](https://github.com/edcrove/provenly/blob/main/backend/internal/catalog/catalogdb/catalog.sql.go): `backend/internal/catalog/catalogdb/catalog.sql.go`
- [Execution store](https://github.com/edcrove/provenly/blob/main/backend/internal/execution/postgres/store.go): `backend/internal/execution/postgres/store.go`
- [Execution database](https://github.com/edcrove/provenly/blob/main/backend/internal/execution/executiondb/execution.sql.go): `backend/internal/execution/executiondb/execution.sql.go`

### Web interface

- [Web application](https://github.com/edcrove/provenly/blob/main/frontend/src/app/App.tsx): `frontend/src/app/App.tsx`
- [Page routes](https://github.com/edcrove/provenly/blob/main/frontend/src/app/routes.tsx): `frontend/src/app/routes.tsx`
- [Test case pages](https://github.com/edcrove/provenly/tree/main/frontend/src/features/test-cases): `frontend/src/features/test-cases`
- [Test run pages](https://github.com/edcrove/provenly/tree/main/frontend/src/features/test-runs): `frontend/src/features/test-runs`
- [API client](https://github.com/edcrove/provenly/blob/main/frontend/src/api/client.ts): `frontend/src/api/client.ts`

### Other components

- **QA user**
- **CI provider**

## Connections

- QA user → Test case pages: manages cases (evidence: `README.md`)
- CI provider → Ingestion routes: posts JUnit (evidence: `README.md`)
- Test case pages → API client: requests data
- Test run pages → API client: requests data
- API client → HTTP API: calls API (evidence: `README.md`)
- HTTP API → Catalog routes: registers routes (evidence: `backend/internal/app/app.go`)
- HTTP API → Execution routes: registers routes (evidence: `backend/internal/app/app.go`)
- HTTP API → Ingestion routes: registers routes (evidence: `backend/internal/app/app.go`)
- HTTP API → Web application: serves UI
- Catalog routes → Test catalog: uses cases
- Execution routes → Run management: uses runs
- Ingestion routes → Report ingestion: invokes ingestion
- Report ingestion → JUnit parser: parses report (evidence: `backend/internal/ingestion/ingestion.go`)
- Report ingestion → Test catalog: correlates IDs (evidence: `backend/internal/ingestion/ingestion.go`)
- Report ingestion → Run management: records run (evidence: `backend/internal/ingestion/ingestion.go`)
- Test catalog → Catalog store: persists cases
- Catalog store → Catalog database: runs queries (evidence: `backend/internal/catalog/postgres/store.go`)
- Run management → Execution store: persists runs
- Execution store → Execution database: runs queries (evidence: `backend/internal/execution/postgres/store.go`)
- Run management → Run summaries: computes outcomes (evidence: `backend/internal/execution/service.go`)
- Page routes → Test case pages: routes to (evidence: `frontend/src/app/routes.tsx`)
- Page routes → Test run pages: routes to (evidence: `frontend/src/app/routes.tsx`)
- Web application → Page routes: installs router (evidence: `frontend/src/app/App.tsx`)
