# selimy/sportshub architecture

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

- Interactive diagram: https://gitdiagram.com/selimy/sportshub
- Repository: https://github.com/selimy/sportshub

## Overview

SportsHub is described as sports-activity tools and data. The sampled Strava file defines a browser-global activity-data format and initializes its Strava entry; the other provider files and index.html are present but their behavior was not sampled. The available evidence does not establish how the page consumes the data or what user workflow it supports.

Main entry points: [`Data/data-strava.js`](https://github.com/selimy/sportshub/blob/main/Data/data-strava.js) (Strava data)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_page["Activity page<br/>[index.html]"]
node_strava["Strava data<br/>[data-strava.js]"]
node_garmin["Garmin data<br/>[data-garmin.js]"]
node_zepp["Zepp data<br/>[data-zepp.js]"]
node_activity_data[("Activity data global<br/>[data-strava.js]")]

node_strava -->|"initializes entry"| node_activity_data

click node_page "https://github.com/selimy/sportshub/blob/main/index.html"
click node_strava "https://github.com/selimy/sportshub/blob/main/Data/data-strava.js"
click node_garmin "https://github.com/selimy/sportshub/blob/main/Data/data-garmin.js"
click node_zepp "https://github.com/selimy/sportshub/blob/main/Data/data-zepp.js"
click node_activity_data "https://github.com/selimy/sportshub/blob/main/Data/data-strava.js"

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_user toneBlue
class node_page,node_strava,node_garmin,node_zepp toneTeal
class node_activity_data toneAmber
```

## Components

### Other components

- **User**
- [Activity page](https://github.com/selimy/sportshub/blob/main/index.html): `index.html`
- [Strava data](https://github.com/selimy/sportshub/blob/main/Data/data-strava.js): `Data/data-strava.js`
- [Garmin data](https://github.com/selimy/sportshub/blob/main/Data/data-garmin.js): `Data/data-garmin.js`
- [Zepp data](https://github.com/selimy/sportshub/blob/main/Data/data-zepp.js): `Data/data-zepp.js`
- [Activity data global](https://github.com/selimy/sportshub/blob/main/Data/data-strava.js): `Data/data-strava.js`

## Connections

- Strava data → Activity data global: initializes entry (evidence: `Data/data-strava.js`)
