# kerb0y/authenkixx-data-science architecture

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

- Interactive diagram: https://gitdiagram.com/kerb0y/authenkixx-data-science
- Repository: https://github.com/kerb0y/authenkixx-data-science

## Overview

Authenkixx is a dummy-data retail analytics prototype. Its main workflow generates or reads the Nike catalogue and sales CSVs, derives business summaries and a seven-day per-product forecast, writes JSON artifacts, and presents sales, stock signals, and forecasts in a Streamlit dashboard. Separate model branches demonstrate low-stock classification and forecast feature ablation. The older inventory dataset and its analysis scripts remain as an archive, not the current output pipeline. The README documents a Full-Stack API integration, but this repository contains no API implementation; that relationship is shown as documented only.

Main entry points: [`data/nike_dummy/nike_products_dummy.csv`](https://github.com/kerb0y/authenkixx-data-science/blob/main/data/nike_dummy/nike_products_dummy.csv) (Nike product catalogue), [`data/nike_dummy/nike_sales_dummy.csv`](https://github.com/kerb0y/authenkixx-data-science/blob/main/data/nike_dummy/nike_sales_dummy.csv) (Nike sales history), [`dashboard/app.py`](https://github.com/kerb0y/authenkixx-data-science/blob/main/dashboard/app.py) (Streamlit dashboard), [`analysis/feature_ablation.py`](https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/feature_ablation.py) (Feature ablation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Dummy data"]
  node_nike_generator["Nike data generator"]
  node_nike_products["Nike product catalogue"]
  node_nike_sales["Nike sales history"]
  node_legacy_generator["Legacy data generator"]
  node_legacy_sales["Archived inventory sales"]
end

subgraph group_analytics["Business analytics"]
  node_business_analysis["Business summary analysis"]
  node_business_summary["Business summary JSON"]
  node_legacy_analysis["Legacy business analysis<br/>[wrangle_analyze.py]"]
  node_legacy_summary["Legacy summary JSON"]
end

subgraph group_models["Forecast and models"]
  node_legacy_baseline["Legacy weekly classifier<br/>[baseline_model.py]"]
  node_nike_baseline["Low-stock baseline"]
  node_baseline_output["Baseline model JSON"]
  node_forecast["Forecast pipeline<br/>[forecast_model.py]"]
  node_forecast_output["Forecast model JSON"]
  node_ablation["Feature ablation"]
  node_ablation_output["Ablation results JSON"]
end

subgraph group_presentation["Dashboard"]
  node_dashboard["Streamlit dashboard<br/>[app.py]"]
end

node_owner(("Store owner"))
node_fullstack["Full-Stack application"]

node_owner -->|"views analytics"| node_dashboard
node_nike_generator -->|"generates"| node_nike_products
node_nike_generator -->|"generates"| node_nike_sales
node_nike_products -->|"reads"| node_business_analysis
node_nike_sales -->|"reads"| node_business_analysis
node_business_analysis -->|"writes"| node_business_summary
node_legacy_generator -->|"generates"| node_legacy_sales
node_legacy_sales -->|"reads"| node_legacy_analysis
node_legacy_analysis -->|"writes"| node_legacy_summary
node_legacy_sales -->|"reads"| node_legacy_baseline
node_legacy_baseline -->|"writes"| node_baseline_output
node_nike_products -->|"reads"| node_nike_baseline
node_nike_sales -->|"reads"| node_nike_baseline
node_nike_baseline -->|"writes"| node_baseline_output
node_nike_products -->|"reads"| node_forecast
node_nike_sales -->|"reads"| node_forecast
node_forecast -->|"writes"| node_forecast_output
node_nike_products -->|"reads"| node_ablation
node_nike_sales -->|"reads"| node_ablation
node_ablation -->|"uses features"| node_forecast
node_ablation -->|"writes"| node_ablation_output
node_dashboard -->|"loads"| node_nike_products
node_dashboard -->|"loads"| node_nike_sales
node_dashboard -->|"reads"| node_forecast_output
node_dashboard -.->|"integrates via API"| node_fullstack

click node_nike_generator "https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/generate_nike_dummy.py"
click node_nike_products "https://github.com/kerb0y/authenkixx-data-science/blob/main/data/nike_dummy/nike_products_dummy.csv"
click node_nike_sales "https://github.com/kerb0y/authenkixx-data-science/blob/main/data/nike_dummy/nike_sales_dummy.csv"
click node_business_analysis "https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/wrangle_analyze_nike.py"
click node_business_summary "https://github.com/kerb0y/authenkixx-data-science/blob/main/outputs/business_summary.json"
click node_legacy_generator "https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/generate_dummy_data.py"
click node_legacy_sales "https://github.com/kerb0y/authenkixx-data-science/blob/main/data/dummy_inventory_sales.csv"
click node_legacy_analysis "https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/wrangle_analyze.py"
click node_legacy_baseline "https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/baseline_model.py"
click node_legacy_summary "https://github.com/kerb0y/authenkixx-data-science/blob/main/outputs/business_summary.json"
click node_nike_baseline "https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/baseline_model_nike.py"
click node_baseline_output "https://github.com/kerb0y/authenkixx-data-science/blob/main/outputs/baseline_model.json"
click node_forecast "https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/forecast_model.py"
click node_forecast_output "https://github.com/kerb0y/authenkixx-data-science/blob/main/outputs/forecast_model.json"
click node_ablation "https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/feature_ablation.py"
click node_ablation_output "https://github.com/kerb0y/authenkixx-data-science/blob/main/outputs/feature_ablation.json"
click node_dashboard "https://github.com/kerb0y/authenkixx-data-science/blob/main/dashboard/app.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_nike_generator,node_nike_products,node_nike_sales,node_legacy_generator,node_legacy_sales toneBlue
class node_business_analysis,node_business_summary,node_legacy_analysis,node_legacy_summary toneAmber
class node_legacy_baseline,node_nike_baseline,node_baseline_output,node_forecast,node_forecast_output,node_ablation,node_ablation_output toneMint
class node_dashboard toneRose
class node_owner,node_fullstack toneIndigo
```

## Components

### Dummy data

- [Nike data generator](https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/generate_nike_dummy.py): `analysis/generate_nike_dummy.py`
- [Nike product catalogue](https://github.com/kerb0y/authenkixx-data-science/blob/main/data/nike_dummy/nike_products_dummy.csv): `data/nike_dummy/nike_products_dummy.csv`
- [Nike sales history](https://github.com/kerb0y/authenkixx-data-science/blob/main/data/nike_dummy/nike_sales_dummy.csv): `data/nike_dummy/nike_sales_dummy.csv`
- [Legacy data generator](https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/generate_dummy_data.py): `analysis/generate_dummy_data.py`
- [Archived inventory sales](https://github.com/kerb0y/authenkixx-data-science/blob/main/data/dummy_inventory_sales.csv): `data/dummy_inventory_sales.csv`

### Business analytics

- [Business summary analysis](https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/wrangle_analyze_nike.py): `analysis/wrangle_analyze_nike.py`
- [Business summary JSON](https://github.com/kerb0y/authenkixx-data-science/blob/main/outputs/business_summary.json): `outputs/business_summary.json`
- [Legacy business analysis](https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/wrangle_analyze.py): `analysis/wrangle_analyze.py`
- [Legacy summary JSON](https://github.com/kerb0y/authenkixx-data-science/blob/main/outputs/business_summary.json): `outputs/business_summary.json`

### Forecast and models

- [Legacy weekly classifier](https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/baseline_model.py): `analysis/baseline_model.py`
- [Low-stock baseline](https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/baseline_model_nike.py): `analysis/baseline_model_nike.py`
- [Baseline model JSON](https://github.com/kerb0y/authenkixx-data-science/blob/main/outputs/baseline_model.json): `outputs/baseline_model.json`
- [Forecast pipeline](https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/forecast_model.py): `analysis/forecast_model.py`
- [Forecast model JSON](https://github.com/kerb0y/authenkixx-data-science/blob/main/outputs/forecast_model.json): `outputs/forecast_model.json`
- [Feature ablation](https://github.com/kerb0y/authenkixx-data-science/blob/main/analysis/feature_ablation.py): `analysis/feature_ablation.py`
- [Ablation results JSON](https://github.com/kerb0y/authenkixx-data-science/blob/main/outputs/feature_ablation.json): `outputs/feature_ablation.json`

### Dashboard

- [Streamlit dashboard](https://github.com/kerb0y/authenkixx-data-science/blob/main/dashboard/app.py): `dashboard/app.py`

### Other components

- **Store owner**
- **Full-Stack application**

## Connections

- Store owner → Streamlit dashboard: views analytics (evidence: `README.md`)
- Nike data generator → Nike product catalogue: generates (evidence: `analysis/generate_nike_dummy.py`)
- Nike data generator → Nike sales history: generates (evidence: `analysis/generate_nike_dummy.py`)
- Nike product catalogue → Business summary analysis: reads (evidence: `analysis/wrangle_analyze_nike.py`)
- Nike sales history → Business summary analysis: reads (evidence: `analysis/wrangle_analyze_nike.py`)
- Business summary analysis → Business summary JSON: writes (evidence: `analysis/wrangle_analyze_nike.py`)
- Legacy data generator → Archived inventory sales: generates (evidence: `analysis/generate_dummy_data.py`)
- Archived inventory sales → Legacy business analysis: reads (evidence: `analysis/wrangle_analyze.py`)
- Legacy business analysis → Legacy summary JSON: writes (evidence: `analysis/wrangle_analyze.py`)
- Archived inventory sales → Legacy weekly classifier: reads (evidence: `analysis/baseline_model.py`)
- Legacy weekly classifier → Baseline model JSON: writes (evidence: `analysis/baseline_model.py`)
- Nike product catalogue → Low-stock baseline: reads (evidence: `analysis/baseline_model_nike.py`)
- Nike sales history → Low-stock baseline: reads (evidence: `analysis/baseline_model_nike.py`)
- Low-stock baseline → Baseline model JSON: writes (evidence: `analysis/baseline_model_nike.py`)
- Nike product catalogue → Forecast pipeline: reads (evidence: `analysis/forecast_model.py`)
- Nike sales history → Forecast pipeline: reads (evidence: `analysis/forecast_model.py`)
- Forecast pipeline → Forecast model JSON: writes (evidence: `README.md`)
- Nike product catalogue → Feature ablation: reads (evidence: `analysis/feature_ablation.py`)
- Nike sales history → Feature ablation: reads (evidence: `analysis/feature_ablation.py`)
- Feature ablation → Forecast pipeline: uses features (evidence: `analysis/feature_ablation.py`)
- Feature ablation → Ablation results JSON: writes (evidence: `analysis/feature_ablation.py`)
- Streamlit dashboard → Nike product catalogue: loads (evidence: `dashboard/app.py`)
- Streamlit dashboard → Nike sales history: loads (evidence: `dashboard/app.py`)
- Streamlit dashboard → Forecast model JSON: reads (evidence: `dashboard/app.py`)
- Streamlit dashboard → Full-Stack application: integrates via API (evidence: `README.md`)
