# me3o0w/solarcast architecture

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

- Interactive diagram: https://gitdiagram.com/me3o0w/solarcast
- Repository: https://github.com/me3o0w/solarcast

## Overview

SolarCast is a Streamlit solar-generation dashboard. Users sign in, then view current-condition estimates, weather, next-day forecasts, manual predictions, and saved or historical results. Forecasts combine weather data with bundled models; Overview uses a documented formula. The graph preserves README capabilities and major indexed modules. Some page implementations and storage wiring were not excerpted, so uncertain relationships are omitted rather than inferred.

Main entry points: [`app/app.py`](https://github.com/me3o0w/solarcast/blob/main/app/app.py) (Streamlit app), [`app/supabase_store.py`](https://github.com/me3o0w/solarcast/blob/main/app/supabase_store.py) (Supabase storage), [`app/weather_client.py`](https://github.com/me3o0w/solarcast/blob/main/app/weather_client.py) (Weather client), [`app/forecast.py`](https://github.com/me3o0w/solarcast/blob/main/app/forecast.py) (Next-day forecast)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_app["Streamlit app<br/>[app.py]"]
  node_appearance["Appearance<br/>[appearance.py]"]
  node_weather_page["Weather dashboard<br/>[weather.py]"]
  node_power_history["Power history<br/>[history.py]"]
  node_model_info["Model performance<br/>[model_info.py]"]
  node_about["About<br/>[about.py]"]
  node_terms["Terms<br/>[terms.py]"]
end

subgraph group_prediction["Prediction"]
  node_manual["Manual prediction<br/>[manual_pred.py]"]
  node_forecast["Next-day forecast<br/>[forecast.py]"]
  node_models["Prediction models<br/>[model_loader.py]"]
end

subgraph group_account_data["Accounts and data"]
  node_auth["Authentication<br/>[auth.py]"]
  node_prediction_history["Prediction history"]
  node_forecast_store["Forecast storage<br/>[forecast_store.py]"]
  node_forecast_versions["Forecast versions"]
  node_supabase_store["Supabase storage<br/>[supabase_store.py]"]
end

subgraph group_shared["Shared services"]
  node_weather_client["Weather client<br/>[weather_client.py]"]
  node_config["App configuration<br/>[config.py]"]
  node_loading["Loading feedback<br/>[loading.py]"]
  node_styles["UI styles<br/>[styles.py]"]
end

node_user(("Dashboard user"))
node_open_meteo["Open-Meteo"]
node_supabase[("Supabase")]

node_user -->|"uses"| node_app
node_app -->|"renders"| node_auth
node_app -->|"renders"| node_appearance
node_app -->|"renders"| node_weather_page
node_app -->|"renders"| node_forecast
node_app -->|"renders"| node_manual
node_app -->|"renders"| node_prediction_history
node_app -->|"renders"| node_power_history
node_app -->|"renders"| node_model_info
node_app -->|"renders"| node_about
node_app -->|"renders"| node_terms
node_app -->|"uses"| node_loading
node_app -->|"uses"| node_styles
node_app -->|"uses"| node_config
node_app -->|"creates"| node_supabase_store
node_app -->|"calls"| node_weather_client
node_weather_page -->|"uses"| node_weather_client
node_forecast -->|"requests weather"| node_weather_client
node_forecast -->|"predicts with"| node_models
node_manual -->|"predicts with"| node_models
node_weather_client -->|"requests"| node_open_meteo
node_models -->|"loads model paths"| node_config
node_auth -.->|"authenticates"| node_supabase
node_supabase_store -.->|"reads and writes"| node_supabase
node_prediction_history -->|"stores predictions"| node_supabase_store
node_forecast_store -->|"delegates storage"| node_supabase_store
node_forecast_store -->|"uses versions"| node_forecast_versions

click node_app "https://github.com/me3o0w/solarcast/blob/main/app/app.py"
click node_appearance "https://github.com/me3o0w/solarcast/blob/main/app/appearance.py"
click node_weather_page "https://github.com/me3o0w/solarcast/blob/main/app/weather.py"
click node_power_history "https://github.com/me3o0w/solarcast/blob/main/app/history.py"
click node_model_info "https://github.com/me3o0w/solarcast/blob/main/app/model_info.py"
click node_manual "https://github.com/me3o0w/solarcast/blob/main/app/manual_pred.py"
click node_forecast "https://github.com/me3o0w/solarcast/blob/main/app/forecast.py"
click node_models "https://github.com/me3o0w/solarcast/blob/main/app/model_loader.py"
click node_weather_client "https://github.com/me3o0w/solarcast/blob/main/app/weather_client.py"
click node_config "https://github.com/me3o0w/solarcast/blob/main/app/config.py"
click node_loading "https://github.com/me3o0w/solarcast/blob/main/app/loading.py"
click node_styles "https://github.com/me3o0w/solarcast/blob/main/app/styles.py"
click node_auth "https://github.com/me3o0w/solarcast/blob/main/app/auth.py"
click node_prediction_history "https://github.com/me3o0w/solarcast/blob/main/app/prediction_history.py"
click node_forecast_store "https://github.com/me3o0w/solarcast/blob/main/app/forecast_store.py"
click node_forecast_versions "https://github.com/me3o0w/solarcast/blob/main/app/forecast_versions.py"
click node_supabase_store "https://github.com/me3o0w/solarcast/blob/main/app/supabase_store.py"
click node_about "https://github.com/me3o0w/solarcast/blob/main/app/about.py"
click node_terms "https://github.com/me3o0w/solarcast/blob/main/app/terms.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_app,node_appearance,node_weather_page,node_power_history,node_model_info,node_about,node_terms,node_user toneBlue
class node_manual,node_forecast,node_models,node_supabase toneAmber
class node_auth,node_prediction_history,node_forecast_store,node_forecast_versions,node_supabase_store toneMint
class node_weather_client,node_config,node_loading,node_styles toneRose
class node_open_meteo toneIndigo
```

## Components

### Dashboard

- [Streamlit app](https://github.com/me3o0w/solarcast/blob/main/app/app.py): `app/app.py`
- [Appearance](https://github.com/me3o0w/solarcast/blob/main/app/appearance.py): `app/appearance.py`
- [Weather dashboard](https://github.com/me3o0w/solarcast/blob/main/app/weather.py): `app/weather.py`
- [Power history](https://github.com/me3o0w/solarcast/blob/main/app/history.py): `app/history.py`
- [Model performance](https://github.com/me3o0w/solarcast/blob/main/app/model_info.py): `app/model_info.py`
- [About](https://github.com/me3o0w/solarcast/blob/main/app/about.py): `app/about.py`
- [Terms](https://github.com/me3o0w/solarcast/blob/main/app/terms.py): `app/terms.py`

### Prediction

- [Manual prediction](https://github.com/me3o0w/solarcast/blob/main/app/manual_pred.py): `app/manual_pred.py`
- [Next-day forecast](https://github.com/me3o0w/solarcast/blob/main/app/forecast.py): `app/forecast.py`
- [Prediction models](https://github.com/me3o0w/solarcast/blob/main/app/model_loader.py): `app/model_loader.py`

### Accounts and data

- [Authentication](https://github.com/me3o0w/solarcast/blob/main/app/auth.py): `app/auth.py`
- [Prediction history](https://github.com/me3o0w/solarcast/blob/main/app/prediction_history.py): `app/prediction_history.py`
- [Forecast storage](https://github.com/me3o0w/solarcast/blob/main/app/forecast_store.py): `app/forecast_store.py`
- [Forecast versions](https://github.com/me3o0w/solarcast/blob/main/app/forecast_versions.py): `app/forecast_versions.py`
- [Supabase storage](https://github.com/me3o0w/solarcast/blob/main/app/supabase_store.py): `app/supabase_store.py`

### Shared services

- [Weather client](https://github.com/me3o0w/solarcast/blob/main/app/weather_client.py): `app/weather_client.py`
- [App configuration](https://github.com/me3o0w/solarcast/blob/main/app/config.py): `app/config.py`
- [Loading feedback](https://github.com/me3o0w/solarcast/blob/main/app/loading.py): `app/loading.py`
- [UI styles](https://github.com/me3o0w/solarcast/blob/main/app/styles.py): `app/styles.py`

### Other components

- **Dashboard user**
- **Open-Meteo**
- **Supabase**

## Connections

- Dashboard user → Streamlit app: uses (evidence: `README.md`)
- Streamlit app → Authentication: renders (evidence: `app/app.py`)
- Streamlit app → Appearance: renders (evidence: `app/app.py`)
- Streamlit app → Weather dashboard: renders (evidence: `app/app.py`)
- Streamlit app → Next-day forecast: renders (evidence: `app/app.py`)
- Streamlit app → Manual prediction: renders (evidence: `app/app.py`)
- Streamlit app → Prediction history: renders (evidence: `app/app.py`)
- Streamlit app → Power history: renders (evidence: `app/app.py`)
- Streamlit app → Model performance: renders (evidence: `app/app.py`)
- Streamlit app → About: renders (evidence: `app/app.py`)
- Streamlit app → Terms: renders (evidence: `app/app.py`)
- Streamlit app → Loading feedback: uses (evidence: `app/app.py`)
- Streamlit app → UI styles: uses (evidence: `app/app.py`)
- Streamlit app → App configuration: uses (evidence: `app/app.py`)
- Streamlit app → Supabase storage: creates (evidence: `app/app.py`)
- Streamlit app → Weather client: calls (evidence: `app/app.py`)
- Weather dashboard → Weather client: uses (evidence: `app/weather.py`)
- Next-day forecast → Weather client: requests weather (evidence: `app/forecast.py`)
- Next-day forecast → Prediction models: predicts with (evidence: `app/forecast.py`)
- Manual prediction → Prediction models: predicts with (evidence: `app/manual_pred.py`)
- Weather client → Open-Meteo: requests (evidence: `app/weather_client.py`)
- Prediction models → App configuration: loads model paths (evidence: `app/model_loader.py`)
- Authentication → Supabase: authenticates
- Supabase storage → Supabase: reads and writes
- Prediction history → Supabase storage: stores predictions (evidence: `app/prediction_history.py`)
- Forecast storage → Supabase storage: delegates storage (evidence: `app/forecast_store.py`)
- Forecast storage → Forecast versions: uses versions (evidence: `app/forecast_store.py`)
