# leonardoz/adr-spboot-react architecture

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

- Interactive diagram: https://gitdiagram.com/leonardoz/adr-spboot-react
- Repository: https://github.com/leonardoz/adr-spboot-react

## Overview

ADR Manager is a local platform for organizing Architecture Decision Logs (ADLs), recording Architecture Decision Records (ADRs), and reviewing their decision history. Users sign in, browse or create ADLs, add ADRs, and submit or approve/reject decisions; the React SPA calls a Spring Boot API, which uses MariaDB for persistence. The README documents Keycloak-backed identity and a development-only log pipeline. Frontend calls and routes are visible in sampled source; backend internals and several integrations are represented only at the documented subsystem level.

Main entry points: [`backend/src/main/java/com/example/adrmanager`](https://github.com/leonardoz/adr-spboot-react/tree/main/backend/src/main/java/com/example/adrmanager) (Spring Boot API), [`frontend/src/App.tsx`](https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/App.tsx) (React application), [`frontend/src/adl/AdlsPage.tsx`](https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/adl/AdlsPage.tsx) (ADL workspace), [`frontend/src/adr/AdrsPage.tsx`](https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/adr/AdrsPage.tsx) (ADR workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Web experience"]
  node_spa["React application<br/>[App.tsx]"]
  node_auth["Sign-in and access<br/>[AuthProvider.tsx]"]
  node_oidc["OIDC client<br/>[oidc.ts]"]
  node_workspace["Workspace components<br/>[Workspace.tsx]"]
end

subgraph group_records["Decision records"]
  node_home["Decision home<br/>[HomePage.tsx]"]
  node_adl_ui["ADL workspace<br/>[AdlsPage.tsx]"]
  node_adl_client["ADL API client<br/>[adlApi.ts]"]
  node_adr_ui["ADR workflow<br/>[AdrsPage.tsx]"]
  node_adr_client["ADR API client<br/>[adrApi.ts]"]
  node_audit_ui["Audit timeline<br/>[AuditHistory.tsx]"]
  node_audit_client["Audit API client<br/>[auditApi.ts]"]
end

subgraph group_platform["API platform"]
  node_api["Spring Boot API"]
  node_adl_service["ADL management"]
  node_adr_service["ADR decisions"]
  node_audit_service["Audit history"]
  node_identity_service["Active-user lookup"]
end

subgraph group_operations["Local services"]
  node_database[("MariaDB")]
  node_keycloak["Keycloak"]
  node_log_pipeline["Development log pipeline<br/>[filebeat.yml]"]
  node_elk["Elasticsearch, Logstash, Kibana<br/>[logstash.conf]"]
end

node_user(("Application user"))

node_user -->|"uses"| node_spa
node_spa -->|"provides sign-in"| node_auth
node_auth -->|"delegates identity"| node_oidc
node_spa -->|"routes to"| node_home
node_spa -->|"routes to"| node_adl_ui
node_spa -->|"routes to"| node_adr_ui
node_adl_ui -->|"renders"| node_workspace
node_adr_ui -->|"renders"| node_workspace
node_home -->|"loads recent logs"| node_adl_client
node_adl_ui -->|"requests ADLs"| node_adl_client
node_adr_ui -->|"requests ADRs"| node_adr_client
node_adl_ui -->|"renders history"| node_audit_ui
node_adr_ui -->|"renders history"| node_audit_ui
node_audit_ui -->|"loads events"| node_audit_client
node_adl_client -->|"sends HTTP requests"| node_api
node_adr_client -->|"sends HTTP requests"| node_api
node_audit_client -.->|"sends HTTP requests"| node_api
node_api -.->|"dispatches ADL requests"| node_adl_service
node_api -.->|"dispatches ADR requests"| node_adr_service
node_api -.->|"serves audit history"| node_audit_service
node_api -.->|"resolves users"| node_identity_service
node_api -.->|"persists application data"| node_database
node_identity_service -.->|"looks up users"| node_keycloak
node_log_pipeline -.->|"ships service logs"| node_elk

click node_spa "https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/App.tsx"
click node_auth "https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/auth/AuthProvider.tsx"
click node_oidc "https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/auth/oidc.ts"
click node_workspace "https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/workspace/Workspace.tsx"
click node_home "https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/home/HomePage.tsx"
click node_adl_ui "https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/adl/AdlsPage.tsx"
click node_adl_client "https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/adl/adlApi.ts"
click node_adr_ui "https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/adr/AdrsPage.tsx"
click node_adr_client "https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/adr/adrApi.ts"
click node_audit_ui "https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/audit/AuditHistory.tsx"
click node_audit_client "https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/audit/auditApi.ts"
click node_api "https://github.com/leonardoz/adr-spboot-react/tree/main/backend/src/main/java/com/example/adrmanager"
click node_adl_service "https://github.com/leonardoz/adr-spboot-react/tree/main/backend/src/main/java/com/example/adrmanager/adl"
click node_adr_service "https://github.com/leonardoz/adr-spboot-react/tree/main/backend/src/main/java/com/example/adrmanager/adr"
click node_audit_service "https://github.com/leonardoz/adr-spboot-react/tree/main/backend/src/main/java/com/example/adrmanager/audit"
click node_identity_service "https://github.com/leonardoz/adr-spboot-react/tree/main/backend/src/main/java/com/example/adrmanager/identity"
click node_keycloak "https://github.com/leonardoz/adr-spboot-react/blob/main/keycloak/realm-adr-manager.json"
click node_log_pipeline "https://github.com/leonardoz/adr-spboot-react/blob/main/filebeat/filebeat.yml"
click node_elk "https://github.com/leonardoz/adr-spboot-react/blob/main/logstash/pipeline/logstash.conf"

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_spa,node_auth,node_oidc,node_workspace,node_user toneBlue
class node_home,node_adl_ui,node_adl_client,node_adr_ui,node_adr_client,node_audit_ui,node_audit_client toneAmber
class node_api,node_adl_service,node_adr_service,node_audit_service,node_identity_service toneMint
class node_database,node_keycloak,node_log_pipeline,node_elk toneRose
```

## Components

### Web experience

- [React application](https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Sign-in and access](https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/auth/AuthProvider.tsx): `frontend/src/auth/AuthProvider.tsx`
- [OIDC client](https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/auth/oidc.ts): `frontend/src/auth/oidc.ts`
- [Workspace components](https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/workspace/Workspace.tsx): `frontend/src/workspace/Workspace.tsx`

### Decision records

- [Decision home](https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/home/HomePage.tsx): `frontend/src/home/HomePage.tsx`
- [ADL workspace](https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/adl/AdlsPage.tsx): `frontend/src/adl/AdlsPage.tsx`
- [ADL API client](https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/adl/adlApi.ts): `frontend/src/adl/adlApi.ts`
- [ADR workflow](https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/adr/AdrsPage.tsx): `frontend/src/adr/AdrsPage.tsx`
- [ADR API client](https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/adr/adrApi.ts): `frontend/src/adr/adrApi.ts`
- [Audit timeline](https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/audit/AuditHistory.tsx): `frontend/src/audit/AuditHistory.tsx`
- [Audit API client](https://github.com/leonardoz/adr-spboot-react/blob/main/frontend/src/audit/auditApi.ts): `frontend/src/audit/auditApi.ts`

### API platform

- [Spring Boot API](https://github.com/leonardoz/adr-spboot-react/tree/main/backend/src/main/java/com/example/adrmanager): `backend/src/main/java/com/example/adrmanager`
- [ADL management](https://github.com/leonardoz/adr-spboot-react/tree/main/backend/src/main/java/com/example/adrmanager/adl): `backend/src/main/java/com/example/adrmanager/adl`
- [ADR decisions](https://github.com/leonardoz/adr-spboot-react/tree/main/backend/src/main/java/com/example/adrmanager/adr): `backend/src/main/java/com/example/adrmanager/adr`
- [Audit history](https://github.com/leonardoz/adr-spboot-react/tree/main/backend/src/main/java/com/example/adrmanager/audit): `backend/src/main/java/com/example/adrmanager/audit`
- [Active-user lookup](https://github.com/leonardoz/adr-spboot-react/tree/main/backend/src/main/java/com/example/adrmanager/identity): `backend/src/main/java/com/example/adrmanager/identity`

### Local services

- **MariaDB**
- [Keycloak](https://github.com/leonardoz/adr-spboot-react/blob/main/keycloak/realm-adr-manager.json): `keycloak/realm-adr-manager.json`
- [Development log pipeline](https://github.com/leonardoz/adr-spboot-react/blob/main/filebeat/filebeat.yml): `filebeat/filebeat.yml`
- [Elasticsearch, Logstash, Kibana](https://github.com/leonardoz/adr-spboot-react/blob/main/logstash/pipeline/logstash.conf): `logstash/pipeline/logstash.conf`

### Other components

- **Application user**

## Connections

- Application user → React application: uses (evidence: `frontend/src/App.tsx`)
- React application → Sign-in and access: provides sign-in (evidence: `frontend/src/App.tsx`)
- Sign-in and access → OIDC client: delegates identity (evidence: `frontend/src/auth/AuthProvider.tsx`)
- React application → Decision home: routes to (evidence: `frontend/src/App.tsx`)
- React application → ADL workspace: routes to (evidence: `frontend/src/App.tsx`)
- React application → ADR workflow: routes to (evidence: `frontend/src/App.tsx`)
- ADL workspace → Workspace components: renders (evidence: `frontend/src/adl/AdlsPage.tsx`)
- ADR workflow → Workspace components: renders (evidence: `frontend/src/adr/AdrsPage.tsx`)
- Decision home → ADL API client: loads recent logs (evidence: `frontend/src/home/HomePage.tsx`)
- ADL workspace → ADL API client: requests ADLs (evidence: `frontend/src/adl/AdlsPage.tsx`)
- ADR workflow → ADR API client: requests ADRs (evidence: `frontend/src/adr/AdrsPage.tsx`)
- ADL workspace → Audit timeline: renders history (evidence: `frontend/src/adl/AdlsPage.tsx`)
- ADR workflow → Audit timeline: renders history (evidence: `frontend/src/adr/AdrsPage.tsx`)
- Audit timeline → Audit API client: loads events (evidence: `frontend/src/audit/AuditHistory.tsx`)
- ADL API client → Spring Boot API: sends HTTP requests (evidence: `frontend/src/adl/adlApi.ts`)
- ADR API client → Spring Boot API: sends HTTP requests (evidence: `frontend/src/adr/adrApi.ts`)
- Audit API client → Spring Boot API: sends HTTP requests
- Spring Boot API → ADL management: dispatches ADL requests
- Spring Boot API → ADR decisions: dispatches ADR requests
- Spring Boot API → Audit history: serves audit history
- Spring Boot API → Active-user lookup: resolves users
- Spring Boot API → MariaDB: persists application data (evidence: `README.md`)
- Active-user lookup → Keycloak: looks up users (evidence: `README.md`)
- Development log pipeline → Elasticsearch, Logstash, Kibana: ships service logs (evidence: `README.md`)
