How kartik-33s/airiq works
AirIQ turns atmospheric telemetry into location-specific air-quality guidance. The main workflow is city/location selection, current dashboard telemetry, and exploration through map, history, forecast, comparison, health guidance, and a 3D station view. The backend and public providers support the data experience; AQI calculations and typed telemetry form a shared analysis layer. The README documents major capabilities and integrations, while some source excerpts are partial, so unverified client-to-server calls are omitted or shown as unverified.
Main entry points: App.tsx App navigation · aqi.ts AQI calculations · Navbar.tsx Search and controls · DashboardView.tsx Live dashboard
Components 27
User experience
- App navigation
src/App.tsx - Search and controls
src/components/Navbar.tsx - Live dashboard
src/views/DashboardView.tsx - AQI gauge
src/components/AqiGauge.tsx - Seven-segment display
src/components/ui/7-segment-number.tsx - Button primitive
src/components/ui/button.tsx - Scroll motion
src/components/ui/scroll-motion.tsx - Shiny button
src/components/ui/shiny-button.tsx
Analysis and visualization
- Interactive map
src/views/MapView.tsx - Pollution history
src/views/HistoryView.tsx - AQI forecast
src/views/ForecastView.tsx - City comparison
src/views/ComparisonView.tsx - 3D station view
src/views/Atmospheric3DView.tsx - 3D scene renderer
src/components/3d/Atmospheric3DScene.tsx - Station sensor model
src/components/3d/sensorData.ts - Telemetry audio
src/lib/audioTelemetry.ts
Telemetry platform
- AQI calculations
src/lib/aqi.ts - Telemetry data types
src/types/aqi.ts - API and data backend
server.ts - Atmospheric data providers
Health and actions
- Health guidance
src/views/HealthView.tsx - AI assistant
src/components/AiAssistantModal.tsx - Assistant input UI
src/components/ui/ai-thiking-orb-and-input.tsx - Smart AQI alerts
src/components/SmartAlertsModal.tsx - Impact report
src/components/ReportModal.tsx - AQI sharing cards
src/components/ShareCardModal.tsx
Other components
- Air quality user
Connections 36
- Air quality user → Search and controls: searches
src/components/Navbar.tsx - Air quality user → App navigation: selects view
src/App.tsx - App navigation → Live dashboard: renders
src/App.tsx - App navigation → Pollution history: renders
src/App.tsx - App navigation → AQI forecast: renders
src/App.tsx - App navigation → City comparison: renders
src/App.tsx - App navigation → Interactive map: routes to
src/App.tsx - App navigation → 3D station view: routes to
src/App.tsx - App navigation → Health guidance: routes to
src/App.tsx - Live dashboard → AQI gauge: renders
src/views/DashboardView.tsx - AQI gauge → AQI calculations: uses categories
src/components/AqiGauge.tsx - AQI gauge → Seven-segment display: renders
src/components/AqiGauge.tsx - Live dashboard → Telemetry data types: uses telemetry
src/views/DashboardView.tsx - Pollution history → AQI calculations: uses calculations
src/views/HistoryView.tsx - AQI forecast → AQI calculations: uses calculations
src/views/ForecastView.tsx - City comparison → AQI calculations: uses calculations
src/views/ComparisonView.tsx - Health guidance → AQI calculations: uses guidance rules
src/views/HealthView.tsx - Interactive map → AQI calculations: colors AQI
src/views/MapView.tsx - 3D station view → 3D scene renderer: renders
src/views/Atmospheric3DView.tsx - 3D scene renderer → Station sensor model: uses sensor model
src/components/3d/Atmospheric3DScene.tsx - 3D scene renderer → AQI calculations: uses categories
src/components/3d/Atmospheric3DScene.tsx - 3D scene renderer → Telemetry audio: plays telemetry
src/components/3d/Atmospheric3DScene.tsx - Search and controls → AI assistant: opens
src/components/Navbar.tsx - AI assistant → Assistant input UI: renders
src/components/AiAssistantModal.tsx - Search and controls → Smart AQI alerts: opens
src/components/Navbar.tsx - Search and controls → Impact report: opens
src/components/Navbar.tsx - Search and controls → AQI sharing cards: opens
- Impact report → AQI calculations: uses calculations
src/components/ReportModal.tsx - Smart AQI alerts → Telemetry data types: uses alert types
src/components/SmartAlertsModal.tsx - App navigation → API and data backend: requests telemetry
- API and data backend → Atmospheric data providers: fetches measurements
- API and data backend → AQI calculations: uses calculations
server.ts - API and data backend → AI assistant: serves AI chat
- Live dashboard → Button primitive: renders
src/views/DashboardView.tsx - Live dashboard → Scroll motion: uses reveal
src/views/DashboardView.tsx - Search and controls → Shiny button: renders
src/components/Navbar.tsx