# anfal-04/weather-app architecture

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

- Interactive diagram: https://gitdiagram.com/anfal-04/weather-app
- Repository: https://github.com/anfal-04/weather-app

## Overview

SkyCast is an Android weather application. Its apparent user-facing areas are home weather, forecasts, alerts, maps, and settings, with search and profile-edit dialogs among the shared UI components. The tree also identifies a ViewModel, repository, and weather models as an internal data layer. No README content or application source excerpts were provided, so the relationships between the activity, screens, ViewModel, repository, and any external services cannot be verified; edges are omitted rather than inferred.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App entry"]
  node_activity["Main activity<br/>[MainActivity.kt]"]
end

subgraph group_weather["Weather features"]
  node_home["Home screen<br/>[HomeScreen.kt]"]
  node_forecast["Forecast screen<br/>[ForecastScreen.kt]"]
  node_alerts["Alerts screen<br/>[AlertsScreen.kt]"]
  node_map["Map screen<br/>[MapScreen.kt]"]
  node_settings["Settings screen<br/>[SettingsScreen.kt]"]
end

subgraph group_ui["Shared interface"]
  node_bottomnav["Bottom navigation<br/>[BottomNavBar.kt]"]
  node_search["City search"]
  node_profile["Profile editor"]
  node_glasscard["Glass card<br/>[GlassCard.kt]"]
  node_button["Neomorphic button"]
  node_topbar["Top app bar<br/>[TopAppBar.kt]"]
  node_theme["UI theme<br/>[Theme.kt]"]
end

subgraph group_data["Weather data"]
  node_repository["Weather repository"]
  node_models["Weather models<br/>[WeatherModels.kt]"]
end

subgraph group_presentation["Presentation layer"]
  node_viewmodel["Weather ViewModel"]
end

node_user(("User"))

click node_activity "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/MainActivity.kt"
click node_home "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/screens/HomeScreen.kt"
click node_forecast "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/screens/ForecastScreen.kt"
click node_alerts "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/screens/AlertsScreen.kt"
click node_map "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/screens/MapScreen.kt"
click node_settings "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/screens/SettingsScreen.kt"
click node_bottomnav "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/components/BottomNavBar.kt"
click node_search "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/components/CitySearchDialog.kt"
click node_profile "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/components/EditProfileDialog.kt"
click node_glasscard "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/components/GlassCard.kt"
click node_button "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/components/NeomorphicButton.kt"
click node_topbar "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/components/TopAppBar.kt"
click node_theme "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/theme/Theme.kt"
click node_viewmodel "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/viewmodel/WeatherViewModel.kt"
click node_repository "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/data/WeatherRepository.kt"
click node_models "https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/data/WeatherModels.kt"

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_activity,node_user toneBlue
class node_home,node_forecast,node_alerts,node_map,node_settings toneAmber
class node_bottomnav,node_search,node_profile,node_glasscard,node_button,node_topbar,node_theme toneMint
class node_repository,node_models toneRose
class node_viewmodel toneIndigo
```

## Components

### App entry

- [Main activity](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/MainActivity.kt): `app/src/main/java/com/example/MainActivity.kt`

### Weather features

- [Home screen](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/screens/HomeScreen.kt): `app/src/main/java/com/example/ui/screens/HomeScreen.kt`
- [Forecast screen](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/screens/ForecastScreen.kt): `app/src/main/java/com/example/ui/screens/ForecastScreen.kt`
- [Alerts screen](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/screens/AlertsScreen.kt): `app/src/main/java/com/example/ui/screens/AlertsScreen.kt`
- [Map screen](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/screens/MapScreen.kt): `app/src/main/java/com/example/ui/screens/MapScreen.kt`
- [Settings screen](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/screens/SettingsScreen.kt): `app/src/main/java/com/example/ui/screens/SettingsScreen.kt`

### Shared interface

- [Bottom navigation](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/components/BottomNavBar.kt): `app/src/main/java/com/example/ui/components/BottomNavBar.kt`
- [City search](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/components/CitySearchDialog.kt): `app/src/main/java/com/example/ui/components/CitySearchDialog.kt`
- [Profile editor](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/components/EditProfileDialog.kt): `app/src/main/java/com/example/ui/components/EditProfileDialog.kt`
- [Glass card](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/components/GlassCard.kt): `app/src/main/java/com/example/ui/components/GlassCard.kt`
- [Neomorphic button](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/components/NeomorphicButton.kt): `app/src/main/java/com/example/ui/components/NeomorphicButton.kt`
- [Top app bar](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/components/TopAppBar.kt): `app/src/main/java/com/example/ui/components/TopAppBar.kt`
- [UI theme](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/theme/Theme.kt): `app/src/main/java/com/example/ui/theme/Theme.kt`

### Weather data

- [Weather repository](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/data/WeatherRepository.kt): `app/src/main/java/com/example/data/WeatherRepository.kt`
- [Weather models](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/data/WeatherModels.kt): `app/src/main/java/com/example/data/WeatherModels.kt`

### Presentation layer

- [Weather ViewModel](https://github.com/anfal-04/weather-app/blob/main/app/src/main/java/com/example/ui/viewmodel/WeatherViewModel.kt): `app/src/main/java/com/example/ui/viewmodel/WeatherViewModel.kt`

### Other components

- **User**
