# aubarcito48/app-clima architecture

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

- Interactive diagram: https://gitdiagram.com/aubarcito48/app-clima
- Repository: https://github.com/aubarcito48/app-clima

## Overview

StitchWeather is an Angular weather frontend. Its main workflow is city search or browser location, climate lookup, then localized weather presentation; the page also coordinates favorites, alerts, the map, and Isa’s spoken recommendations. Groups reflect the user-facing weather flow, supporting capabilities, and shared UI/preferences. The map, alerts, emergency contacts, and voice subsystems are included from the README and source index, but some internal wiring is unsampled, so their uncertain relationships are omitted.

Main entry points: [`src/app/pages/weather/weather.ts`](https://github.com/aubarcito48/app-clima/blob/main/src/app/pages/weather/weather.ts) (Weather page), [`src/app/shared/places/city-search/city-search.ts`](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/places/city-search/city-search.ts) (City search), [`src/app/pages/site/about-page/about-page.ts`](https://github.com/aubarcito48/app-clima/blob/main/src/app/pages/site/about-page/about-page.ts) (About page), [`src/app/shared/assistant/isabel/isabel.ts`](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/assistant/isabel/isabel.ts) (Isa avatar)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_weather["Weather lookup"]
  node_weather_page["Weather page<br/>[weather.ts]"]
  node_city_search["City search<br/>[city-search.ts]"]
  node_query_utils["Query parsing<br/>[city-query.ts]"]
  node_suggestions["Place suggestions"]
  node_location["Current location"]
  node_climate_api["Climate API<br/>[climate-api.ts]"]
  node_climate_response["Climate response"]
end

subgraph group_weather_ui["Weather presentation"]
  node_climate_view["Climate presentation"]
  node_current_weather["Current weather<br/>[current-weather.ts]"]
  node_forecast["Forecast<br/>[forecast.ts]"]
  node_temperature_chart["Temperature chart"]
  node_weather_icon["Weather icons<br/>[weather-icon.ts]"]
  node_weather_map["Weather map<br/>[weather-map.ts]"]
  node_map_layers["Map layers<br/>[map-layers.ts]"]
  node_map_points["Map point API<br/>[map-point-api.ts]"]
end

subgraph group_assistant["Isa assistant"]
  node_isa["Isa avatar<br/>[isabel.ts]"]
  node_voice["Isa voice service<br/>[isabel-voice.ts]"]
  node_voice_stream["Voice streaming<br/>[voice-stream.ts]"]
  node_isa_performance["Isa performance model<br/>[isa-performance.ts]"]
end

subgraph group_support["Places and alerts"]
  node_favorites["Favorite places<br/>[favorite-places.ts]"]
  node_sidebar["Weather sidebar<br/>[weather-sidebar.ts]"]
  node_alerts["Weather alerts<br/>[weather-alerts.ts]"]
  node_alerts_api["Alerts API"]
  node_emergency_contacts["Emergency contacts"]
  node_emergency_directory["Emergency directory"]
end

subgraph group_shared["Shared interface"]
  node_language["Language preference<br/>[language.ts]"]
  node_translations["Translation catalog<br/>[translations.ts]"]
  node_translate_pipe["Translate pipe<br/>[translate.ts]"]
  node_theme_toggle["Theme toggle<br/>[theme-toggle.ts]"]
  node_language_toggle["Language toggle<br/>[language-toggle.ts]"]
  node_section_navigation["Section navigation"]
  node_back_to_top["Back to top<br/>[back-to-top.ts]"]
  node_about_page["About page<br/>[about-page.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_weather_page
node_weather_page -->|"renders"| node_city_search
node_city_search -->|"parses queries"| node_query_utils
node_city_search -->|"requests suggestions"| node_suggestions
node_city_search -.->|"emits queries"| node_weather_page
node_weather_page -->|"normalizes queries"| node_query_utils
node_weather_page -->|"gets coordinates"| node_location
node_weather_page -->|"requests climate"| node_climate_api
node_climate_api -.->|"uses Django API"| node_visitor
node_weather_page -->|"formats response"| node_climate_view
node_climate_view -->|"converts data"| node_climate_response
node_weather_page -->|"renders"| node_current_weather
node_weather_page -->|"renders"| node_forecast
node_forecast -->|"renders"| node_temperature_chart
node_current_weather -->|"uses icons"| node_weather_icon
node_forecast -->|"uses icons"| node_weather_icon
node_weather_page -->|"renders"| node_weather_map
node_weather_map -->|"uses layers"| node_map_layers
node_weather_map -->|"requests map points"| node_map_points
node_weather_page -->|"renders"| node_isa
node_visitor -.->|"plays recommendation"| node_isa
node_isa -.->|"requests speech"| node_voice
node_voice -->|"uses stream"| node_voice_stream
node_voice -->|"uses timing model"| node_isa_performance
node_weather_page -->|"toggles favorite"| node_favorites
node_weather_page -->|"renders"| node_sidebar
node_sidebar -->|"reads favorites"| node_favorites
node_weather_page -->|"renders"| node_alerts
node_alerts -->|"loads alerts"| node_alerts_api
node_weather_page -->|"renders"| node_emergency_contacts
node_emergency_contacts -.->|"uses directory"| node_emergency_directory
node_translate_pipe -->|"translates with"| node_language
node_language -->|"reads catalog"| node_translations
node_alerts -->|"uses language"| node_language
node_weather_page -->|"renders"| node_section_navigation
node_weather_page -->|"renders"| node_back_to_top
node_visitor -->|"opens about"| node_about_page
node_about_page -->|"renders"| node_isa
node_about_page -->|"renders"| node_section_navigation
node_about_page -->|"renders"| node_back_to_top

click node_weather_page "https://github.com/aubarcito48/app-clima/blob/main/src/app/pages/weather/weather.ts"
click node_city_search "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/places/city-search/city-search.ts"
click node_query_utils "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/places/city-search/city-query.ts"
click node_suggestions "https://github.com/aubarcito48/app-clima/blob/main/src/app/service/places/place-suggestions.ts"
click node_location "https://github.com/aubarcito48/app-clima/blob/main/src/app/service/places/current-location.ts"
click node_climate_api "https://github.com/aubarcito48/app-clima/blob/main/src/app/service/weather/climate-api.ts"
click node_climate_response "https://github.com/aubarcito48/app-clima/blob/main/src/app/models/weather/climate-response.ts"
click node_climate_view "https://github.com/aubarcito48/app-clima/blob/main/src/app/service/weather/climate-presentation.ts"
click node_current_weather "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/weather/current-weather/current-weather.ts"
click node_forecast "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/weather/forecast/forecast.ts"
click node_temperature_chart "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/weather/temperature-chart/temperature-chart.ts"
click node_weather_icon "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/weather/weather-icon/weather-icon.ts"
click node_weather_map "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/weather/weather-map/weather-map.ts"
click node_map_layers "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/weather/weather-map/map-layers.ts"
click node_map_points "https://github.com/aubarcito48/app-clima/blob/main/src/app/service/weather/map-point-api.ts"
click node_isa "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/assistant/isabel/isabel.ts"
click node_voice "https://github.com/aubarcito48/app-clima/blob/main/src/app/service/assistant/voice/isabel-voice.ts"
click node_voice_stream "https://github.com/aubarcito48/app-clima/blob/main/src/app/service/assistant/voice/voice-stream.ts"
click node_isa_performance "https://github.com/aubarcito48/app-clima/blob/main/src/app/models/assistant/isa-performance.ts"
click node_favorites "https://github.com/aubarcito48/app-clima/blob/main/src/app/service/places/favorite-places.ts"
click node_sidebar "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/weather/weather-sidebar/weather-sidebar.ts"
click node_alerts "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/alerts/weather-alerts/weather-alerts.ts"
click node_alerts_api "https://github.com/aubarcito48/app-clima/blob/main/src/app/service/alerts/weather-alerts-api.ts"
click node_emergency_contacts "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/alerts/emergency-contacts/emergency-contacts.ts"
click node_emergency_directory "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/alerts/emergency-contacts/emergency-directory.ts"
click node_language "https://github.com/aubarcito48/app-clima/blob/main/src/app/service/preferences/language.ts"
click node_translations "https://github.com/aubarcito48/app-clima/blob/main/src/app/service/preferences/translations.ts"
click node_translate_pipe "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/preferences/translate.ts"
click node_theme_toggle "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/preferences/theme-toggle/theme-toggle.ts"
click node_language_toggle "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/preferences/language-toggle/language-toggle.ts"
click node_section_navigation "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/site/section-navigation/section-navigation.ts"
click node_back_to_top "https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/site/back-to-top/back-to-top.ts"
click node_about_page "https://github.com/aubarcito48/app-clima/blob/main/src/app/pages/site/about-page/about-page.ts"

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_weather_page,node_city_search,node_query_utils,node_suggestions,node_location,node_climate_api,node_climate_response toneBlue
class node_climate_view,node_current_weather,node_forecast,node_temperature_chart,node_weather_icon,node_weather_map,node_map_layers,node_map_points toneAmber
class node_isa,node_voice,node_voice_stream,node_isa_performance toneMint
class node_favorites,node_sidebar,node_alerts,node_alerts_api,node_emergency_contacts,node_emergency_directory toneRose
class node_language,node_translations,node_translate_pipe,node_theme_toggle,node_language_toggle,node_section_navigation,node_back_to_top,node_about_page,node_visitor toneIndigo
```

## Components

### Weather lookup

- [Weather page](https://github.com/aubarcito48/app-clima/blob/main/src/app/pages/weather/weather.ts): `src/app/pages/weather/weather.ts`
- [City search](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/places/city-search/city-search.ts): `src/app/shared/places/city-search/city-search.ts`
- [Query parsing](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/places/city-search/city-query.ts): `src/app/shared/places/city-search/city-query.ts`
- [Place suggestions](https://github.com/aubarcito48/app-clima/blob/main/src/app/service/places/place-suggestions.ts): `src/app/service/places/place-suggestions.ts`
- [Current location](https://github.com/aubarcito48/app-clima/blob/main/src/app/service/places/current-location.ts): `src/app/service/places/current-location.ts`
- [Climate API](https://github.com/aubarcito48/app-clima/blob/main/src/app/service/weather/climate-api.ts): `src/app/service/weather/climate-api.ts`
- [Climate response](https://github.com/aubarcito48/app-clima/blob/main/src/app/models/weather/climate-response.ts): `src/app/models/weather/climate-response.ts`

### Weather presentation

- [Climate presentation](https://github.com/aubarcito48/app-clima/blob/main/src/app/service/weather/climate-presentation.ts): `src/app/service/weather/climate-presentation.ts`
- [Current weather](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/weather/current-weather/current-weather.ts): `src/app/shared/weather/current-weather/current-weather.ts`
- [Forecast](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/weather/forecast/forecast.ts): `src/app/shared/weather/forecast/forecast.ts`
- [Temperature chart](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/weather/temperature-chart/temperature-chart.ts): `src/app/shared/weather/temperature-chart/temperature-chart.ts`
- [Weather icons](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/weather/weather-icon/weather-icon.ts): `src/app/shared/weather/weather-icon/weather-icon.ts`
- [Weather map](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/weather/weather-map/weather-map.ts): `src/app/shared/weather/weather-map/weather-map.ts`
- [Map layers](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/weather/weather-map/map-layers.ts): `src/app/shared/weather/weather-map/map-layers.ts`
- [Map point API](https://github.com/aubarcito48/app-clima/blob/main/src/app/service/weather/map-point-api.ts): `src/app/service/weather/map-point-api.ts`

### Isa assistant

- [Isa avatar](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/assistant/isabel/isabel.ts): `src/app/shared/assistant/isabel/isabel.ts`
- [Isa voice service](https://github.com/aubarcito48/app-clima/blob/main/src/app/service/assistant/voice/isabel-voice.ts): `src/app/service/assistant/voice/isabel-voice.ts`
- [Voice streaming](https://github.com/aubarcito48/app-clima/blob/main/src/app/service/assistant/voice/voice-stream.ts): `src/app/service/assistant/voice/voice-stream.ts`
- [Isa performance model](https://github.com/aubarcito48/app-clima/blob/main/src/app/models/assistant/isa-performance.ts): `src/app/models/assistant/isa-performance.ts`

### Places and alerts

- [Favorite places](https://github.com/aubarcito48/app-clima/blob/main/src/app/service/places/favorite-places.ts): `src/app/service/places/favorite-places.ts`
- [Weather sidebar](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/weather/weather-sidebar/weather-sidebar.ts): `src/app/shared/weather/weather-sidebar/weather-sidebar.ts`
- [Weather alerts](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/alerts/weather-alerts/weather-alerts.ts): `src/app/shared/alerts/weather-alerts/weather-alerts.ts`
- [Alerts API](https://github.com/aubarcito48/app-clima/blob/main/src/app/service/alerts/weather-alerts-api.ts): `src/app/service/alerts/weather-alerts-api.ts`
- [Emergency contacts](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/alerts/emergency-contacts/emergency-contacts.ts): `src/app/shared/alerts/emergency-contacts/emergency-contacts.ts`
- [Emergency directory](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/alerts/emergency-contacts/emergency-directory.ts): `src/app/shared/alerts/emergency-contacts/emergency-directory.ts`

### Shared interface

- [Language preference](https://github.com/aubarcito48/app-clima/blob/main/src/app/service/preferences/language.ts): `src/app/service/preferences/language.ts`
- [Translation catalog](https://github.com/aubarcito48/app-clima/blob/main/src/app/service/preferences/translations.ts): `src/app/service/preferences/translations.ts`
- [Translate pipe](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/preferences/translate.ts): `src/app/shared/preferences/translate.ts`
- [Theme toggle](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/preferences/theme-toggle/theme-toggle.ts): `src/app/shared/preferences/theme-toggle/theme-toggle.ts`
- [Language toggle](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/preferences/language-toggle/language-toggle.ts): `src/app/shared/preferences/language-toggle/language-toggle.ts`
- [Section navigation](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/site/section-navigation/section-navigation.ts): `src/app/shared/site/section-navigation/section-navigation.ts`
- [Back to top](https://github.com/aubarcito48/app-clima/blob/main/src/app/shared/site/back-to-top/back-to-top.ts): `src/app/shared/site/back-to-top/back-to-top.ts`
- [About page](https://github.com/aubarcito48/app-clima/blob/main/src/app/pages/site/about-page/about-page.ts): `src/app/pages/site/about-page/about-page.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Weather page: opens
- Weather page → City search: renders (evidence: `src/app/pages/weather/weather.ts`)
- City search → Query parsing: parses queries (evidence: `src/app/shared/places/city-search/city-search.ts`)
- City search → Place suggestions: requests suggestions (evidence: `src/app/shared/places/city-search/city-search.ts`)
- City search → Weather page: emits queries (evidence: `src/app/pages/weather/weather.ts`)
- Weather page → Query parsing: normalizes queries (evidence: `src/app/pages/weather/weather.ts`)
- Weather page → Current location: gets coordinates (evidence: `src/app/pages/weather/weather.ts`)
- Weather page → Climate API: requests climate (evidence: `src/app/pages/weather/weather.ts`)
- Climate API → Visitor: uses Django API (evidence: `README.md`)
- Weather page → Climate presentation: formats response (evidence: `src/app/pages/weather/weather.ts`)
- Climate presentation → Climate response: converts data (evidence: `src/app/service/weather/climate-presentation.ts`)
- Weather page → Current weather: renders (evidence: `src/app/pages/weather/weather.ts`)
- Weather page → Forecast: renders (evidence: `src/app/pages/weather/weather.ts`)
- Forecast → Temperature chart: renders (evidence: `src/app/shared/weather/forecast/forecast.ts`)
- Current weather → Weather icons: uses icons (evidence: `src/app/shared/weather/current-weather/current-weather.ts`)
- Forecast → Weather icons: uses icons (evidence: `src/app/shared/weather/forecast/forecast.ts`)
- Weather page → Weather map: renders (evidence: `src/app/pages/weather/weather.ts`)
- Weather map → Map layers: uses layers (evidence: `src/app/shared/weather/weather-map/weather-map.ts`)
- Weather map → Map point API: requests map points (evidence: `src/app/shared/weather/weather-map/weather-map.ts`)
- Weather page → Isa avatar: renders (evidence: `src/app/pages/weather/weather.ts`)
- Visitor → Isa avatar: plays recommendation (evidence: `README.md`)
- Isa avatar → Isa voice service: requests speech
- Isa voice service → Voice streaming: uses stream (evidence: `src/app/service/assistant/voice/isabel-voice.ts`)
- Isa voice service → Isa performance model: uses timing model (evidence: `src/app/service/assistant/voice/isabel-voice.ts`)
- Weather page → Favorite places: toggles favorite (evidence: `src/app/pages/weather/weather.ts`)
- Weather page → Weather sidebar: renders (evidence: `src/app/pages/weather/weather.ts`)
- Weather sidebar → Favorite places: reads favorites (evidence: `src/app/shared/weather/weather-sidebar/weather-sidebar.ts`)
- Weather page → Weather alerts: renders (evidence: `src/app/pages/weather/weather.ts`)
- Weather alerts → Alerts API: loads alerts (evidence: `src/app/shared/alerts/weather-alerts/weather-alerts.ts`)
- Weather page → Emergency contacts: renders (evidence: `src/app/pages/weather/weather.ts`)
- Emergency contacts → Emergency directory: uses directory
- Translate pipe → Language preference: translates with (evidence: `src/app/shared/preferences/translate.ts`)
- Language preference → Translation catalog: reads catalog (evidence: `src/app/service/preferences/language.ts`)
- Weather alerts → Language preference: uses language (evidence: `src/app/shared/alerts/weather-alerts/weather-alerts.ts`)
- Weather page → Section navigation: renders (evidence: `src/app/pages/weather/weather.ts`)
- Weather page → Back to top: renders (evidence: `src/app/pages/weather/weather.ts`)
- Visitor → About page: opens about
- About page → Isa avatar: renders (evidence: `src/app/pages/site/about-page/about-page.ts`)
- About page → Section navigation: renders (evidence: `src/app/pages/site/about-page/about-page.ts`)
- About page → Back to top: renders (evidence: `src/app/pages/site/about-page/about-page.ts`)
