# denisvirissimo/500mais-kissfm architecture

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

- Interactive diagram: https://gitdiagram.com/denisvirissimo/500mais-kissfm
- Repository: https://github.com/denisvirissimo/500mais-kissfm

## Overview

This repository is a Streamlit data-science application for exploring Kiss FM’s annual 500+ music rankings. Users open the dashboard, load the ranking and prediction datasets, then explore filtered totals, rankings, edition-level trends, all-time comparisons, predictions, and artist or song profiles. The main internal layer is the analysis and profile logic, which supplies data to Plotly chart builders and the custom Top 10 display. The README also describes the upstream manual and OpenRefine collection and reconciliation process; its project files are present, but that processing workflow is not implemented in the sampled runtime code. Connections below are limited to documented or excerpted relationships.

Main entry points: [`app.py`](https://github.com/denisvirissimo/500mais-kissfm/blob/main/app.py) (Interactive dashboard), [`components.py`](https://github.com/denisvirissimo/500mais-kissfm/blob/main/components.py) (Top 10 display), [`charts.py`](https://github.com/denisvirissimo/500mais-kissfm/blob/main/charts.py) (Chart builders), [`core_functions.py`](https://github.com/denisvirissimo/500mais-kissfm/blob/main/core_functions.py) (Ranking analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_app["Interactive dashboard<br/>[app.py]"]
end

subgraph group_analysis["Analysis"]
  node_core["Ranking analysis<br/>[core_functions.py]"]
  node_profiles["Domain profiles<br/>[info.py]"]
end

subgraph group_presentation["Presentation"]
  node_charts["Chart builders<br/>[charts.py]"]
  node_top10["Top 10 display<br/>[components.py]"]
  node_style["Custom styling<br/>[style.css]"]
end

subgraph group_data["Data"]
  node_ranking["Ranking dataset<br/>[500+.csv]"]
  node_predictions["Prediction dataset"]
end

node_user(("Dashboard user"))
node_streamlit["Streamlit runtime"]

node_user -->|"uses"| node_app
node_app -->|"renders UI"| node_streamlit
node_app -->|"loads"| node_ranking
node_app -->|"loads"| node_predictions
node_app -->|"requests analysis"| node_core
node_app -->|"creates profiles"| node_profiles
node_app -->|"builds charts"| node_charts
node_app -->|"renders ranking"| node_top10
node_top10 -->|"loads CSS"| node_style
node_top10 -->|"renders HTML"| node_streamlit
node_charts -.->|"returns figures"| node_streamlit

click node_app "https://github.com/denisvirissimo/500mais-kissfm/blob/main/app.py"
click node_ranking "https://github.com/denisvirissimo/500mais-kissfm/blob/main/data/500%2B.csv"
click node_predictions "https://github.com/denisvirissimo/500mais-kissfm/blob/main/data/predicao_proximo_ano.csv"
click node_core "https://github.com/denisvirissimo/500mais-kissfm/blob/main/core_functions.py"
click node_profiles "https://github.com/denisvirissimo/500mais-kissfm/blob/main/info.py"
click node_charts "https://github.com/denisvirissimo/500mais-kissfm/blob/main/charts.py"
click node_top10 "https://github.com/denisvirissimo/500mais-kissfm/blob/main/components.py"
click node_style "https://github.com/denisvirissimo/500mais-kissfm/blob/main/resources/style.css"

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_app,node_user toneBlue
class node_core,node_profiles toneAmber
class node_charts,node_top10,node_style toneMint
class node_ranking,node_predictions toneRose
class node_streamlit toneIndigo
```

## Components

### Dashboard

- [Interactive dashboard](https://github.com/denisvirissimo/500mais-kissfm/blob/main/app.py): `app.py`

### Analysis

- [Ranking analysis](https://github.com/denisvirissimo/500mais-kissfm/blob/main/core_functions.py): `core_functions.py`
- [Domain profiles](https://github.com/denisvirissimo/500mais-kissfm/blob/main/info.py): `info.py`

### Presentation

- [Chart builders](https://github.com/denisvirissimo/500mais-kissfm/blob/main/charts.py): `charts.py`
- [Top 10 display](https://github.com/denisvirissimo/500mais-kissfm/blob/main/components.py): `components.py`
- [Custom styling](https://github.com/denisvirissimo/500mais-kissfm/blob/main/resources/style.css): `resources/style.css`

### Data

- [Ranking dataset](https://github.com/denisvirissimo/500mais-kissfm/blob/main/data/500%2B.csv): `data/500+.csv`
- [Prediction dataset](https://github.com/denisvirissimo/500mais-kissfm/blob/main/data/predicao_proximo_ano.csv): `data/predicao_proximo_ano.csv`

### Other components

- **Dashboard user**
- **Streamlit runtime**

## Connections

- Dashboard user → Interactive dashboard: uses (evidence: `app.py`)
- Interactive dashboard → Streamlit runtime: renders UI (evidence: `app.py`)
- Interactive dashboard → Ranking dataset: loads
- Interactive dashboard → Prediction dataset: loads (evidence: `app.py`)
- Interactive dashboard → Ranking analysis: requests analysis (evidence: `app.py`)
- Interactive dashboard → Domain profiles: creates profiles (evidence: `app.py`)
- Interactive dashboard → Chart builders: builds charts (evidence: `app.py`)
- Interactive dashboard → Top 10 display: renders ranking (evidence: `app.py`)
- Top 10 display → Custom styling: loads CSS (evidence: `components.py`)
- Top 10 display → Streamlit runtime: renders HTML (evidence: `components.py`)
- Chart builders → Streamlit runtime: returns figures
