# blue-core-lod/bluecore-stack architecture

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

- Interactive diagram: https://gitdiagram.com/blue-core-lod/bluecore-stack
- Repository: https://github.com/blue-core-lod/bluecore-stack

## Overview

Blue Core Stack is a Docker Compose orchestration layer, not the implementation of the application services. Its main user workflow is to enter through the Nginx-hosted landing page, authenticate with Keycloak, and use the routed API, Airflow workflows, Marva, DCTap Dancer, or Sinopia services. The README also documents API/workflow/database and AI-agent interactions, plus training and Graph Toolkit integrations. Service wiring is represented by Compose configuration; application internals live in sibling repositories and are not shown here. Edges follow README statements or the shown MCP proxy code.

Main entry points: [`nginx/server.conf`](https://github.com/blue-core-lod/bluecore-stack/blob/main/nginx/server.conf) (Nginx gateway), [`compose.yaml`](https://github.com/blue-core-lod/bluecore-stack/blob/main/compose.yaml) (Keycloak), [`training/blue_core_mcp.py`](https://github.com/blue-core-lod/bluecore-stack/blob/main/training/blue_core_mcp.py) (MCP proxy), [`compose-base.yaml`](https://github.com/blue-core-lod/bluecore-stack/blob/main/compose-base.yaml) (Blue Core database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and routing"]
  node_nginx["Nginx gateway<br/>[server.conf]"]
  node_landing["Landing page<br/>[index.html]"]
end

subgraph group_applications["Application services"]
  node_api["Blue Core API<br/>[compose.yaml]"]
  node_workflows["Airflow workflows<br/>[compose.yaml]"]
  node_marva["Marva editor<br/>[compose.yaml]"]
  node_dancer["DCTap Dancer<br/>[compose.yaml]"]
  node_sinopia["Sinopia editor<br/>[compose.yaml]"]
end

subgraph group_platform["Identity and data"]
  node_keycloak["Keycloak<br/>[compose.yaml]"]
  node_database[("Blue Core database<br/>[compose-base.yaml]")]
end

subgraph group_extensions["Tools and integrations"]
  node_agents["LLM AI agents"]
  node_toolkit["Graph Toolkit"]
  node_notebooks["Jupyter notebooks"]
  node_mcp_proxy["MCP proxy<br/>[blue_core_mcp.py]"]
end

node_user(("User"))
node_claude(("Claude Code"))

node_user -->|"visits"| node_nginx
node_nginx -->|"serves"| node_landing
node_nginx -->|"routes"| node_api
node_nginx -->|"routes"| node_workflows
node_nginx -->|"routes"| node_keycloak
node_nginx -->|"routes"| node_marva
node_nginx -->|"routes"| node_dancer
node_nginx -->|"routes"| node_sinopia
node_marva -->|"authenticates with"| node_keycloak
node_dancer -->|"authenticates with"| node_keycloak
node_sinopia -->|"authenticates with"| node_keycloak
node_marva -->|"uses templates"| node_dancer
node_api -->|"authenticates with"| node_keycloak
node_workflows -->|"authenticates with"| node_keycloak
node_api -->|"reads and writes"| node_database
node_workflows -->|"reads and writes"| node_database
node_api -->|"dispatches to"| node_workflows
node_api -->|"interacts with"| node_agents
node_agents -->|"interacts with"| node_workflows
node_agents -->|"interacts with"| node_database
node_toolkit -->|"authenticates with"| node_keycloak
node_notebooks -->|"authenticates with"| node_keycloak
node_claude -->|"sends messages"| node_mcp_proxy
node_mcp_proxy -->|"gets token"| node_keycloak
node_mcp_proxy -->|"forwards MCP"| node_api

click node_nginx "https://github.com/blue-core-lod/bluecore-stack/blob/main/nginx/server.conf"
click node_landing "https://github.com/blue-core-lod/bluecore-stack/blob/main/nginx/index.html"
click node_api "https://github.com/blue-core-lod/bluecore-stack/blob/main/compose.yaml"
click node_workflows "https://github.com/blue-core-lod/bluecore-stack/blob/main/compose.yaml"
click node_marva "https://github.com/blue-core-lod/bluecore-stack/blob/main/compose.yaml"
click node_dancer "https://github.com/blue-core-lod/bluecore-stack/blob/main/compose.yaml"
click node_sinopia "https://github.com/blue-core-lod/bluecore-stack/blob/main/compose.yaml"
click node_keycloak "https://github.com/blue-core-lod/bluecore-stack/blob/main/compose.yaml"
click node_database "https://github.com/blue-core-lod/bluecore-stack/blob/main/compose-base.yaml"
click node_toolkit "https://github.com/blue-core-lod/bluecore-stack/tree/main/nginx/toolbox"
click node_notebooks "https://github.com/blue-core-lod/bluecore-stack/blob/main/training/notebooks/01_Blue_Core_APIs.ipynb"
click node_mcp_proxy "https://github.com/blue-core-lod/bluecore-stack/blob/main/training/blue_core_mcp.py"

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_nginx,node_landing,node_user toneBlue
class node_api,node_workflows,node_marva,node_dancer,node_sinopia toneAmber
class node_keycloak,node_database toneMint
class node_agents,node_toolkit,node_notebooks,node_mcp_proxy toneRose
class node_claude toneIndigo
```

## Components

### Entry and routing

- [Nginx gateway](https://github.com/blue-core-lod/bluecore-stack/blob/main/nginx/server.conf): `nginx/server.conf`
- [Landing page](https://github.com/blue-core-lod/bluecore-stack/blob/main/nginx/index.html): `nginx/index.html`

### Application services

- [Blue Core API](https://github.com/blue-core-lod/bluecore-stack/blob/main/compose.yaml): `compose.yaml`
- [Airflow workflows](https://github.com/blue-core-lod/bluecore-stack/blob/main/compose.yaml): `compose.yaml`
- [Marva editor](https://github.com/blue-core-lod/bluecore-stack/blob/main/compose.yaml): `compose.yaml`
- [DCTap Dancer](https://github.com/blue-core-lod/bluecore-stack/blob/main/compose.yaml): `compose.yaml`
- [Sinopia editor](https://github.com/blue-core-lod/bluecore-stack/blob/main/compose.yaml): `compose.yaml`

### Identity and data

- [Keycloak](https://github.com/blue-core-lod/bluecore-stack/blob/main/compose.yaml): `compose.yaml`
- [Blue Core database](https://github.com/blue-core-lod/bluecore-stack/blob/main/compose-base.yaml): `compose-base.yaml`

### Tools and integrations

- **LLM AI agents**
- [Graph Toolkit](https://github.com/blue-core-lod/bluecore-stack/tree/main/nginx/toolbox): `nginx/toolbox`
- [Jupyter notebooks](https://github.com/blue-core-lod/bluecore-stack/blob/main/training/notebooks/01_Blue_Core_APIs.ipynb): `training/notebooks/01_Blue_Core_APIs.ipynb`
- [MCP proxy](https://github.com/blue-core-lod/bluecore-stack/blob/main/training/blue_core_mcp.py): `training/blue_core_mcp.py`

### Other components

- **User**
- **Claude Code**

## Connections

- User → Nginx gateway: visits (evidence: `README.md`)
- Nginx gateway → Landing page: serves (evidence: `README.md`)
- Nginx gateway → Blue Core API: routes (evidence: `README.md`)
- Nginx gateway → Airflow workflows: routes (evidence: `README.md`)
- Nginx gateway → Keycloak: routes (evidence: `README.md`)
- Nginx gateway → Marva editor: routes (evidence: `README.md`)
- Nginx gateway → DCTap Dancer: routes (evidence: `README.md`)
- Nginx gateway → Sinopia editor: routes (evidence: `README.md`)
- Marva editor → Keycloak: authenticates with (evidence: `README.md`)
- DCTap Dancer → Keycloak: authenticates with (evidence: `README.md`)
- Sinopia editor → Keycloak: authenticates with (evidence: `README.md`)
- Marva editor → DCTap Dancer: uses templates (evidence: `README.md`)
- Blue Core API → Keycloak: authenticates with (evidence: `README.md`)
- Airflow workflows → Keycloak: authenticates with (evidence: `README.md`)
- Blue Core API → Blue Core database: reads and writes (evidence: `README.md`)
- Airflow workflows → Blue Core database: reads and writes (evidence: `README.md`)
- Blue Core API → Airflow workflows: dispatches to (evidence: `README.md`)
- Blue Core API → LLM AI agents: interacts with (evidence: `README.md`)
- LLM AI agents → Airflow workflows: interacts with (evidence: `README.md`)
- LLM AI agents → Blue Core database: interacts with (evidence: `README.md`)
- Graph Toolkit → Keycloak: authenticates with (evidence: `README.md`)
- Jupyter notebooks → Keycloak: authenticates with (evidence: `README.md`)
- Claude Code → MCP proxy: sends messages (evidence: `training/blue_core_mcp.py`)
- MCP proxy → Keycloak: gets token (evidence: `training/blue_core_mcp.py`)
- MCP proxy → Blue Core API: forwards MCP (evidence: `training/blue_core_mcp.py`)
