# falsecloud/aura architecture

> Architecture diagram of the GitHub repository falsecloud/aura, 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/falsecloud/aura
- Repository: https://github.com/falsecloud/aura

## Overview

Aura is a native Linux weather app: the user opens the Qt Quick interface, selects or searches for a place (or requests approximate location), and sees current conditions and forecasts. The Python backend fetches and shapes weather data, exposes it to QML, and persists preferences and saved places in local Qt settings. README capabilities include hourly, 10-day, detail and places views, unit switching, and weather-reactive media and glass styling. The sampled app.js also contains a separate browser-style weather UI; its integration with the native entry point is not shown, so it is represented separately. Arrows reflect explicit README or excerpt evidence.

Main entry points: [`qml/Main.qml`](https://github.com/falsecloud/aura/blob/main/qml/Main.qml) (Window and Deck), [`backend.py`](https://github.com/falsecloud/aura/blob/main/backend.py) (Weather Backend), [`main.py`](https://github.com/falsecloud/aura/blob/main/main.py) (Qt Bootstrap), [`qml/fmt.js`](https://github.com/falsecloud/aura/blob/main/qml/fmt.js) (Weather Formatting)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Native Runtime"]
  node_entry["Qt Bootstrap<br/>[main.py]"]
end

subgraph group_weather["Weather Data"]
  node_backend["Weather Backend<br/>[backend.py]"]
  node_settings[("Local Settings<br/>[backend.py]")]
end

subgraph group_views["Forecast Views"]
  node_mainqml["Window and Deck<br/>[Main.qml]"]
  node_today["Today View<br/>[Today.qml]"]
  node_hourly["Hourly View<br/>[Hourly.qml]"]
  node_tenday["10-Day View<br/>[TenDay.qml]"]
  node_details["Details View<br/>[Details.qml]"]
  node_places["Places View<br/>[Places.qml]"]
  node_search["Search Overlay<br/>[SearchOverlay.qml]"]
  node_format["Weather Formatting<br/>[fmt.js]"]
end

subgraph group_visuals["Visual Experience"]
  node_glass["Glass Material<br/>[Glass.qml]"]
  node_shader["Glass Shader<br/>[glass.frag]"]
  node_weathericon["Weather Icons<br/>[WeatherIcon.qml]"]
  node_media["Weather Media"]
end

subgraph group_browser["Browser UI"]
  node_browser["Browser Weather UI<br/>[app.js]"]
  node_browsericons["Browser Weather Icons<br/>[icons.js]"]
end

node_user(("User"))
node_openmeteo["Open-Meteo"]
node_location["Location Services"]

node_user -->|"launches"| node_entry
node_entry -->|"creates and bootstraps"| node_backend
node_entry -->|"loads"| node_mainqml
node_entry -->|"exposes to QML"| node_backend
node_backend -->|"requests forecasts and geocoding"| node_openmeteo
node_backend -->|"looks up location"| node_location
node_backend -->|"reads and persists"| node_settings
node_mainqml -->|"shows page"| node_today
node_mainqml -->|"shows page"| node_hourly
node_mainqml -->|"shows page"| node_tenday
node_mainqml -->|"shows page"| node_details
node_mainqml -->|"shows page"| node_places
node_mainqml -->|"opens overlay"| node_search
node_today -.->|"formats values"| node_format
node_hourly -.->|"formats values"| node_format
node_tenday -.->|"formats values"| node_format
node_details -.->|"formats values"| node_format
node_mainqml -->|"uses material"| node_glass
node_glass -->|"uses shader"| node_shader
node_today -.->|"shows icons"| node_weathericon
node_mainqml -->|"shows reactive backdrops"| node_media
node_user -.->|"uses"| node_browser
node_browser -->|"renders weather icons"| node_browsericons
node_browser -.->|"requests weather data"| node_openmeteo

click node_entry "https://github.com/falsecloud/aura/blob/main/main.py"
click node_backend "https://github.com/falsecloud/aura/blob/main/backend.py"
click node_settings "https://github.com/falsecloud/aura/blob/main/backend.py"
click node_mainqml "https://github.com/falsecloud/aura/blob/main/qml/Main.qml"
click node_today "https://github.com/falsecloud/aura/blob/main/qml/Today.qml"
click node_hourly "https://github.com/falsecloud/aura/blob/main/qml/Hourly.qml"
click node_tenday "https://github.com/falsecloud/aura/blob/main/qml/TenDay.qml"
click node_details "https://github.com/falsecloud/aura/blob/main/qml/Details.qml"
click node_places "https://github.com/falsecloud/aura/blob/main/qml/Places.qml"
click node_search "https://github.com/falsecloud/aura/blob/main/qml/SearchOverlay.qml"
click node_format "https://github.com/falsecloud/aura/blob/main/qml/fmt.js"
click node_glass "https://github.com/falsecloud/aura/blob/main/qml/Glass.qml"
click node_shader "https://github.com/falsecloud/aura/blob/main/qml/shaders/glass.frag"
click node_weathericon "https://github.com/falsecloud/aura/blob/main/qml/WeatherIcon.qml"
click node_media "https://github.com/falsecloud/aura/tree/main/media"
click node_browser "https://github.com/falsecloud/aura/blob/main/app.js"
click node_browsericons "https://github.com/falsecloud/aura/blob/main/icons.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_entry,node_user toneBlue
class node_backend,node_settings toneAmber
class node_mainqml,node_today,node_hourly,node_tenday,node_details,node_places,node_search,node_format toneMint
class node_glass,node_shader,node_weathericon,node_media toneRose
class node_browser,node_browsericons,node_openmeteo,node_location toneIndigo
```

## Components

### Native Runtime

- [Qt Bootstrap](https://github.com/falsecloud/aura/blob/main/main.py): `main.py`

### Weather Data

- [Weather Backend](https://github.com/falsecloud/aura/blob/main/backend.py): `backend.py`
- [Local Settings](https://github.com/falsecloud/aura/blob/main/backend.py): `backend.py`

### Forecast Views

- [Window and Deck](https://github.com/falsecloud/aura/blob/main/qml/Main.qml): `qml/Main.qml`
- [Today View](https://github.com/falsecloud/aura/blob/main/qml/Today.qml): `qml/Today.qml`
- [Hourly View](https://github.com/falsecloud/aura/blob/main/qml/Hourly.qml): `qml/Hourly.qml`
- [10-Day View](https://github.com/falsecloud/aura/blob/main/qml/TenDay.qml): `qml/TenDay.qml`
- [Details View](https://github.com/falsecloud/aura/blob/main/qml/Details.qml): `qml/Details.qml`
- [Places View](https://github.com/falsecloud/aura/blob/main/qml/Places.qml): `qml/Places.qml`
- [Search Overlay](https://github.com/falsecloud/aura/blob/main/qml/SearchOverlay.qml): `qml/SearchOverlay.qml`
- [Weather Formatting](https://github.com/falsecloud/aura/blob/main/qml/fmt.js): `qml/fmt.js`

### Visual Experience

- [Glass Material](https://github.com/falsecloud/aura/blob/main/qml/Glass.qml): `qml/Glass.qml`
- [Glass Shader](https://github.com/falsecloud/aura/blob/main/qml/shaders/glass.frag): `qml/shaders/glass.frag`
- [Weather Icons](https://github.com/falsecloud/aura/blob/main/qml/WeatherIcon.qml): `qml/WeatherIcon.qml`
- [Weather Media](https://github.com/falsecloud/aura/tree/main/media): `media`

### Browser UI

- [Browser Weather UI](https://github.com/falsecloud/aura/blob/main/app.js): `app.js`
- [Browser Weather Icons](https://github.com/falsecloud/aura/blob/main/icons.js): `icons.js`

### Other components

- **User**
- **Open-Meteo**
- **Location Services**

## Connections

- User → Qt Bootstrap: launches (evidence: `README.md`)
- Qt Bootstrap → Weather Backend: creates and bootstraps (evidence: `main.py`)
- Qt Bootstrap → Window and Deck: loads (evidence: `main.py`)
- Qt Bootstrap → Weather Backend: exposes to QML (evidence: `main.py`)
- Weather Backend → Open-Meteo: requests forecasts and geocoding (evidence: `README.md`)
- Weather Backend → Location Services: looks up location (evidence: `backend.py`)
- Weather Backend → Local Settings: reads and persists (evidence: `backend.py`)
- Window and Deck → Today View: shows page (evidence: `README.md`)
- Window and Deck → Hourly View: shows page (evidence: `README.md`)
- Window and Deck → 10-Day View: shows page (evidence: `README.md`)
- Window and Deck → Details View: shows page (evidence: `README.md`)
- Window and Deck → Places View: shows page (evidence: `README.md`)
- Window and Deck → Search Overlay: opens overlay (evidence: `README.md`)
- Today View → Weather Formatting: formats values
- Hourly View → Weather Formatting: formats values
- 10-Day View → Weather Formatting: formats values
- Details View → Weather Formatting: formats values
- Window and Deck → Glass Material: uses material (evidence: `README.md`)
- Glass Material → Glass Shader: uses shader (evidence: `README.md`)
- Today View → Weather Icons: shows icons
- Window and Deck → Weather Media: shows reactive backdrops (evidence: `README.md`)
- User → Browser Weather UI: uses
- Browser Weather UI → Browser Weather Icons: renders weather icons (evidence: `app.js`)
- Browser Weather UI → Open-Meteo: requests weather data
