Skip to content

High-performance, real-time AQI tracker built with React 19 and Redux Toolkitโ€”focused on precision air-quality data, clean UX, and scalable frontend architecture.

Notifications You must be signed in to change notification settings

visen-vin/aqi-tracker

Repository files navigation

๐ŸŒ Antigravity AQI Tracker

Breathe Smarter. A next-generation, real-time Air Quality Index (AQI) monitoring application built for precision, aesthetics, and speed.

Project Status License React Redux Tailwind

๐Ÿ“– Overview

The Antigravity AQI Tracker is a high-performance web dashboard designed to provide users with accurate, real-time air quality data for their location and major cities worldwide. Built with a "Weightless Elegance" design philosophy, it combines deep atmospheric data with a stunning, glassmorphic UI.

Unlike standard weather apps, this tracker focuses specifically on detailed pollutant breakdowns (PM2.5, PM10, NO2, SO2, O3, CO) and provides health-centric insights using both US EPA and Indian CPCB standards (configurable).

โœจ Key Features

๐ŸŸข Live Dashboard

  • Real-time AQI Gauge: A visually immersive gauge that dynamically changes color and theme based on pollution levels.
  • Auto-Geolocation: Instantly detects your current location to show hyper-local air quality data.
  • Comprehensive Pollutants: Detailed tracking of PM2.5, PM10, Nitrogen Dioxide, Sulfur Dioxide, Carbon Monoxide, and Ozone.
  • Weather Integration: Seamlessly integrated live weather context (Temperature, Humidity, Wind Speed) powered by Open-Meteo.

๐Ÿ“ˆ Data Visualization

  • Interactive Trend Charts: Visualise AQI history over the last 24 hours to spot pollution patterns.
  • Glassmorphic UI: A premium, dark-mode-first interface using backdrop blurs and smooth Framer Motion animations.

๐ŸŒ Global Monitoring (In Development)

  • City Comparisons: Compare your air quality against major metro cities like Delhi, Mumbai, and New York.
  • Global Rankings: (Coming Soon) A dynamic leaderboard of the world's most polluted cities.
  • Interactive Map: (Coming Soon) A 3D globe view of air quality hotspots.

๐Ÿ› ๏ธ Technology Stack

This project is engineered for performance and scalability:

  • Frontend Core: React 19 (Vite)
  • State Management: Redux Toolkit & RTK Query (Caching, Polling, Optimistic Updates)
  • Styling: Tailwind CSS & Vanilla CSS Variables
  • Animations: Framer Motion
  • Data Visualization: Recharts
  • Icons: Lucide React
  • APIs:
    • Open-Meteo: For high-precision Air Quality & Weather data.
    • BigDataCloud: For reverse geocoding (Coordinates to City Name).

๐Ÿš€ Getting Started

Follow these steps to run the project locally:

Prerequisites

  • Node.js (v18 or higher)
  • npm or yarn

Installation

  1. Clone the repository

    git clone https://github.com/visen-vin/aqi-tracker.git
    cd aqi-tracker
  2. Install dependencies

    npm install
  3. Run the development server

    npm run dev
  4. Open in Browser Navigate to http://localhost:5173 to view the app.

๐Ÿ“‚ Project Structure

src/
โ”œโ”€โ”€ components/         # Reusable UI components
โ”‚   โ”œโ”€โ”€ common/         # Header, Footer, Loaders
โ”‚   โ”œโ”€โ”€ dashboard/      # Dashboard-specific widgets (Gauge, Charts)
โ”‚   โ””โ”€โ”€ layout/         # Layout wrappers (Atmosphere background)
โ”œโ”€โ”€ config/             # App-wide configuration
โ”œโ”€โ”€ screens/            # Main Page Views (Dashboard, Rankings, Map)
โ”œโ”€โ”€ store/              # Redux State Management
โ”‚   โ”œโ”€โ”€ api/            # RTK Query API definitions
โ”‚   โ””โ”€โ”€ slices/         # Redux Slices
โ”œโ”€โ”€ utils/              # Helper functions (AQI Calculation logic)
โ””โ”€โ”€ App.jsx             # Main Application Entry

๐Ÿ”ฎ Roadmap

  • Core Dashboard: Live Data, Pollutants, Trends.
  • Comparing Cities: Basic static comparison.
  • Global Rankings: Integration with dynamic ranking APIs.
  • Heatmap: Visual map overlay for pollution intensity.
  • PWA Support: Installable mobile web app experience.
  • Notifications: Alerts when AQI breaches safe limits.

๐Ÿ“š Resources & Acknowledgements

This project was made possible by these incredible open-source tools and data providers:

๐Ÿ“ก APIs & Data

  • Open-Meteo: The core engine powering our Air Quality and Weather data. An amazing free, open-source API.
  • BigDataCloud: Used for high-precision client-side reverse geocoding to detect city names from coordinates.

๐ŸŽจ Design & Icons

  • Lucide React: Beautiful, consistent, and lightweight icon pack.
  • Tailwind CSS: The utility-first CSS framework that enables our rapid, custom UI development.
  • Framer Motion: For the buttery smooth animations and "weightless" feel.
  • Recharts: Composable charting library used for the trend visualization.

โš›๏ธ Core Libraries

  • React 19: The latest version of the web's most popular library.
  • Redux Toolkit: For efficient state management and RTK Query data fetching.
  • Vite: Next-generation frontend tooling.

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

๐Ÿ“„ License

This project is open-source and available under the MIT License.

About

High-performance, real-time AQI tracker built with React 19 and Redux Toolkitโ€”focused on precision air-quality data, clean UX, and scalable frontend architecture.

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages