How yashveer-dev/aeropulse works
AeroPulse is a browser-based urban air-quality and exposure assistant. Its main workflow is location selection, live air-quality and weather retrieval, then an interactive dashboard with health metrics, a 48-hour forecast, and persona-tailored routines; users can also ask the grounded copilot questions. The README documents geolocation, pollutant comparisons, indoor-air guidance, and sustainable-swap impact estimates. Source excerpts show the app orchestrating telemetry and advice; some component wiring and optional integrations are documented rather than fully shown.
Main entry points: App.tsx App Orchestrator · telemetryService.ts Telemetry Service · geminiService.ts Advice Engine · aqiCalculations.ts AQI & Exposure Calculations
Components 17
Dashboard
- App Orchestrator
src/App.tsx - Location & Key Header
src/components/Header.tsx - Exposure Overview
src/components/HeroTelemetry.tsx - Pollutant Cards
src/components/PollutantGrid.tsx - Forecast Chart
src/components/ForecastChart.tsx
Location & Telemetry
- Telemetry Service
src/services/telemetryService.ts - Open-Meteo Geocoding
- Open-Meteo Air Quality
- Open-Meteo Weather
- BigDataCloud Reverse Geocoding
Health Intelligence
- AQI & Exposure Calculations
src/utils/aqiCalculations.ts - Household Personas
src/utils/personas.ts
Advice & Copilot
- Advice Engine
src/services/geminiService.ts - Gemini API
- Routine & Impact Deck
src/components/ActionRoutineDeck.tsx - Smog Copilot Drawer
src/components/SmogCopilotDrawer.tsx
Other components
- Residents
Connections 24
- Residents → App Orchestrator: uses
README.md - App Orchestrator → Location & Key Header: renders
src/App.tsx - App Orchestrator → Exposure Overview: renders
src/App.tsx - App Orchestrator → Pollutant Cards: renders
src/App.tsx - App Orchestrator → Forecast Chart: renders
src/App.tsx - App Orchestrator → Routine & Impact Deck: renders
src/App.tsx - App Orchestrator → Smog Copilot Drawer: renders
src/App.tsx - App Orchestrator → Telemetry Service: fetches telemetry
src/App.tsx - App Orchestrator → Telemetry Service: reverse geocodes
src/App.tsx - App Orchestrator → Advice Engine: requests advice
src/App.tsx - Location & Key Header → Telemetry Service: searches cities
src/components/Header.tsx - Telemetry Service → Open-Meteo Geocoding: searches
src/services/telemetryService.ts - Telemetry Service → Open-Meteo Air Quality: fetches air data
src/services/telemetryService.ts - Telemetry Service → Open-Meteo Weather: fetches weather
src/services/telemetryService.ts - Telemetry Service → BigDataCloud Reverse Geocoding: reverse geocodes
src/services/telemetryService.ts - Exposure Overview → AQI & Exposure Calculations: calculates health metrics
src/components/HeroTelemetry.tsx - Exposure Overview → Household Personas: uses profiles
src/components/HeroTelemetry.tsx - Pollutant Cards → AQI & Exposure Calculations: reads pollutant limits
src/components/PollutantGrid.tsx - Forecast Chart → AQI & Exposure Calculations: classifies AQI
src/components/ForecastChart.tsx - Advice Engine → AQI & Exposure Calculations: calculates risk context
src/services/geminiService.ts - Advice Engine → Household Personas: selects profile
src/services/geminiService.ts - Advice Engine → Gemini API: generates advice
src/services/geminiService.ts - Smog Copilot Drawer → Advice Engine: asks questions
src/components/SmogCopilotDrawer.tsx - Routine & Impact Deck → Residents: presents recommendations
README.md