# ismailoksuz/eafc26-datahub architecture

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

- Interactive diagram: https://gitdiagram.com/ismailoksuz/eafc26-datahub
- Repository: https://github.com/ismailoksuz/eafc26-datahub

## Overview

EAFC26 DataHub combines a Streamlit player explorer with a separate generator for curated player lists. The user workflow is to choose a ready-made list or adjust custom filters, then view matching players in a table. Internally, the generator reads filter definitions, applies and sorts queries over the player CSV, and writes JSON lists that the dashboard can load. The excerpts show the dashboard’s data and styling paths; other data files are not shown in use.

Main entry points: [`src/app_dashboard.py`](https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/app_dashboard.py) (Dashboard orchestration), [`src/generate.py`](https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/generate.py) (List generator), [`data/players.csv`](https://github.com/ismailoksuz/eafc26-datahub/blob/main/data/players.csv) (Player dataset), [`output/json`](https://github.com/ismailoksuz/eafc26-datahub/tree/main/output/json) (Curated player lists)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Player dashboard"]
  node_dashboard_app["Dashboard orchestration<br/>[app_dashboard.py]"]
  node_data_loader["Player data loader<br/>[app_dashboard.py]"]
  node_list_navigation["Ready-list navigation<br/>[app_dashboard.py]"]
  node_custom_filters["Custom filters<br/>[app_dashboard.py]"]
  node_player_table["Player results table<br/>[app_dashboard.py]"]
  node_stylesheet["Dashboard styles<br/>[style.css]"]
end

subgraph group_generation["List generation"]
  node_generator["List generator<br/>[generate.py]"]
end

subgraph group_data["Player data"]
  node_filter_config["List filter definitions<br/>[filters.json]"]
  node_player_csv["Player dataset<br/>[players.csv]"]
  node_ready_lists["Curated player lists"]
end

node_user(("Explorer user"))

node_user -->|"uses"| node_dashboard_app
node_dashboard_app -->|"loads data"| node_data_loader
node_dashboard_app -->|"offers lists"| node_list_navigation
node_dashboard_app -->|"applies filters"| node_custom_filters
node_dashboard_app -->|"renders results"| node_player_table
node_dashboard_app -->|"injects styles"| node_stylesheet
node_data_loader -->|"reads"| node_player_csv
node_data_loader -->|"reads JSON"| node_ready_lists
node_generator -->|"reads players"| node_player_csv
node_generator -->|"reads filters"| node_filter_config
node_generator -->|"writes lists"| node_ready_lists

click node_dashboard_app "https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/app_dashboard.py"
click node_data_loader "https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/app_dashboard.py"
click node_list_navigation "https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/app_dashboard.py"
click node_custom_filters "https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/app_dashboard.py"
click node_player_table "https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/app_dashboard.py"
click node_stylesheet "https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/style.css"
click node_generator "https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/generate.py"
click node_filter_config "https://github.com/ismailoksuz/eafc26-datahub/blob/main/data/filters.json"
click node_player_csv "https://github.com/ismailoksuz/eafc26-datahub/blob/main/data/players.csv"
click node_ready_lists "https://github.com/ismailoksuz/eafc26-datahub/tree/main/output/json"

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_dashboard_app,node_data_loader,node_list_navigation,node_custom_filters,node_player_table,node_stylesheet,node_user toneBlue
class node_generator toneAmber
class node_filter_config,node_player_csv,node_ready_lists toneMint
```

## Components

### Player dashboard

- [Dashboard orchestration](https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/app_dashboard.py): `src/app_dashboard.py`
- [Player data loader](https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/app_dashboard.py): `src/app_dashboard.py`
- [Ready-list navigation](https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/app_dashboard.py): `src/app_dashboard.py`
- [Custom filters](https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/app_dashboard.py): `src/app_dashboard.py`
- [Player results table](https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/app_dashboard.py): `src/app_dashboard.py`
- [Dashboard styles](https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/style.css): `src/style.css`

### List generation

- [List generator](https://github.com/ismailoksuz/eafc26-datahub/blob/main/src/generate.py): `src/generate.py`

### Player data

- [List filter definitions](https://github.com/ismailoksuz/eafc26-datahub/blob/main/data/filters.json): `data/filters.json`
- [Player dataset](https://github.com/ismailoksuz/eafc26-datahub/blob/main/data/players.csv): `data/players.csv`
- [Curated player lists](https://github.com/ismailoksuz/eafc26-datahub/tree/main/output/json): `output/json`

### Other components

- **Explorer user**

## Connections

- Explorer user → Dashboard orchestration: uses (evidence: `README.md`)
- Dashboard orchestration → Player data loader: loads data (evidence: `src/app_dashboard.py`)
- Dashboard orchestration → Ready-list navigation: offers lists (evidence: `src/app_dashboard.py`)
- Dashboard orchestration → Custom filters: applies filters (evidence: `src/app_dashboard.py`)
- Dashboard orchestration → Player results table: renders results (evidence: `src/app_dashboard.py`)
- Dashboard orchestration → Dashboard styles: injects styles (evidence: `src/app_dashboard.py`)
- Player data loader → Player dataset: reads (evidence: `src/app_dashboard.py`)
- Player data loader → Curated player lists: reads JSON (evidence: `src/app_dashboard.py`)
- List generator → Player dataset: reads players (evidence: `src/generate.py`)
- List generator → List filter definitions: reads filters (evidence: `src/generate.py`)
- List generator → Curated player lists: writes lists (evidence: `src/generate.py`)
