AeronicX is a cutting-edge, full-stack, enterprise-grade environmental intelligence system. It serves as a hyperlocal digital twin of metropolitan atmospheres, merging live real-world telemetry with state-of-the-art Stochastic Quantum Simulation, Explainable AI (XAI) to coordinate municipal budgets, predict hazardous particulate surges, and optimize policy interventions.
Metropolitan centers worldwide struggle with localized, highly variable surges in Air Quality Index (AQI) particulate matter (
- Retrospective Static Reporting: They display historical data without predictive capability.
- "Black Box" Actionability: They show high pollution numbers but fail to advise city administrators how to allocate budgets for maximum abatement or why specific sectors are spiking.
AeronicX solves this by closing the loop between real-world telemetry, predictive models, and optimization:
[ Real-world Telemetry ] ─> ( Express API Proxy ) ─> [ Digital Twin Sandbox ]
│
[ Optimization Engine ] <─ ( QAOA / VQE Algorithms ) <────────┘
│
└─> [ Explainable AI (SHAP) ] ─> [ Multilingual Broadcast ]
The architecture of AeronicX is engineered for high performance, absolute type safety, and seamless cloud orchestration:
- React 18 & TypeScript: Strongly-typed, highly componentized UI built with strict static compiler validation (
tsc --noEmit). - Vite: Fast bundling pipeline stripped of heavy HMR overlays to provide responsive visual rendering.
- Tailwind CSS: Custom "Deep Cosmic Slate" visual language combining rich charcoal layers (
#020617,#0f172a) with high-contrast cybernetic state colors (Neon Cyan, Soft Emerald, Alert Orange, Critical Rose). - Framer Motion (
motion/react): Powering micro-animations, slide-overs, dynamic radial gauge sweeps, and staggered component entry animations. - Recharts & D3.js: Interactive data charts, polar grid scatter graphs, confidence-bound area plots, and live budget division visualizers.
- Node.js & Express: API gateway handles server-side routing, proxies external third-party requests to secure API keys, and prevents CORS blocks.
- ESBuild Compilation Pipeline: A production build script compiles
server.tsinto a single, bundled, optimized CommonJS file (dist/server.cjs) using native Node external markers. This prevents relative runtime ESM path lookup failures and guarantees extremely fast container startup times on Cloud Run. - Geocoding Coordinate Resolution: Integrates with the Open-Meteo Geocoding API to dynamically resolve latitudes and longitudes for newly queried cities on the fly, feeding coordinate-accurate air quality matrices to the frontend.
AeronicX stands out by utilizing real-world quantum optimization, physics-informed micro-climate models, and explainable AI algorithms:
- Purpose: Resolves the optimal distribution of municipal environmental capital across competitive, non-linear abatement initiatives (e.g., green-belt construction, scrubbing industrial vents, public transport electrification).
- The Problem: Finding the absolute optimum of a high-dimensional policy-space under strict budget ceilings is a non-linear combinatorial optimization problem (QUBO).
-
Implementation: Planners input specific traffic, industry, and greening sliders. The system maps these inputs to simulated Hamiltonian cost and mixer rotation states (
$\gamma, \beta$ ), modeling convergence over iterative quantum schedules. It compares the results with a classical heuristic gradient descent, highlighting the Quantum Advantage (difference in AQI points abated). -
Mathematical Representation:
$$\mathcal{H}C(\vec{x}) = \sum{i} C_i x_i + \sum_{i < j} J_{ij} x_i x_j$$
$$\text{Target AQI} = \max\left(20, 150 - \left(0.4 \times \text{traffic} + 0.5 \times \text{industry} + 0.3 \times \text{greening}\right)\right)$$
- Purpose: Emulates the convergence of localized atmospheric turbulence energy states to determine the molecular adsorption/dispersion rates of greenhouse and toxic gases on metal-organic frameworks (MOFs).
-
Implementation: Solves molecular binding state Hamiltonians (
$\hat{H}$ ) using variational ansatz updates (UCCSD) and simultaneous perturbation stochastic approximation (SPSA) optimizers across a multi-qubit system. -
Energy Minimization Equation:
$$E(\theta) = \frac{\langle \psi(\theta) | \hat{H} | \psi(\theta) \rangle}{\langle \psi(\theta) | \psi(\theta) \rangle}$$ -
Supported Metal Nodes: Dynamic energy state calculation for Zirconium (
Zr), Copper (Cu), Zinc (Zn), Chromium (Cr), and Iron (Fe) MOF lattices.
- Purpose: Computes marginal feature importances to explain why the predictive twin forecast certain AQI spikes, assuring transparency for municipal policymakers.
- Implementation: Calculates exact Shapley values for urban contributors (Traffic Flow, Industrial output, Regional background, Local gridlocks).
-
Shapley Attribution Formula:
$$\phi_i = \sum_{S \subseteq F \setminus {i}} \frac{|S|!(|F| - |S| - 1)!}{|F|!} \left[ f(S \cup {i}) - f(S) \right]$$ Where $F$ represents all active pollution factors, $S$ is a subset of factors, and $f(S)$ represents the simulated model output.
- Purpose: Simulates the downwind trajectory and concentration profile of toxic plumes.
- Implementation: Instead of solving static linear advection equations, it models pollutants as continuous probability waves propagating across an urban matrix, shifting under dynamic wind vectors, temperature-driven thermal diffusion rates, and solid topological barriers.
-
Diffusion-Wind Equation:
$$\text{Diffusion Rate } (\mathcal{D}) = 0.05 + \left(\frac{\text{Temperature}}{100}\right) \times 0.1$$
Each feature within AtomOracq is designed for complete full-stack integration and a highly polished user experience:
- Role: The main operational dashboard for municipal planners.
-
How it Works: Displays critical pollutants (
$PM_{2.5}$ ,$PM_{10}$ ,$NO_2$ ,$CO$ ,$SO_2$ ,$O_3$ ), dynamic meteorological directions, active logs, and active policy toggles. -
Dynamic Data Integration:
- Fires a REST API fetch to the backend route
/api/live-aqi?city={cityName}. - Resolves coordinates via geocoding.
- Ingests current live metrics via the Open-Meteo Air Quality API.
- Fuses the real-world API data directly into the active UI state, displaying a high-contrast glowing LIVE beacon (
Live via Open-Meteo Environmental API) with current timestamp logging. - Gracefully falls back to a deterministic, high-fidelity model if API limits or offline environments are encountered.
- Fires a REST API fetch to the backend route
- Role: Simulates spatial distribution of pollutants at a microscopic neighborhood level.
- How it Works: Generates a 16-zone tactical sector matrix (e.g., Industrial Sector A, High-Density Commercial Grid, Residential Cluster, Coastal Harbor, Green Belt).
- The Forecast Engine: Combines background API-derived base AQIs with sector-specific density factors and micro-climate parameters to calculate individual sector AQIs. It displays an interactive 24-hour forecasting chart comparing classical prediction curves with hybrid quantum-classical predictions, computing the dynamic Root Mean Square Error (RMSE) reduction.
- Role: Direct optimization of municipal environmental spending and regulation thresholds.
- How it Works: Planners enter a regulatory tax value, traffic restriction indexes, and capital allocations. The user runs the simulated optimization, launching a real-time iterative solver on the client.
- Visual Output: Plots a step-by-step cost convergence decay curve, tracks active "violations" resolved, and proposes optimized EV-only zones, quantum-scheduled industrial scrubbing periods, and strategic urban forest placements.
- Role: Demystifies automated municipal decisions for administrative audits.
- How it Works: Visualizes the marginal percentage weights of each urban factor (traffic grids, heavy boilers, building exhausts) and pairs it with an interactive parameter explorer where users can see how changing underlying conditions shifts the marginal importance weights.
- Role: A real-time micro-climate sandbox.
- How it Works: Planners interactively modify wind speeds (0 to 120 km/h), wind directions (0 to 360 degrees), and local emission factors. The digital twin instantly recalculates the dispersion vectors and visually shifts area plots, polar winds, and active warnings dynamically.
- Role: Generates critical emergency warnings and safety protocols for the general population in their native languages.
- How it Works: Connects to a secure, server-side Gemini translation endpoint:
- Takes selected emergency templates.
- Proxies the request through
/api/translateusing the official@google/genaiSDK on the server-side, hiding sensitive API keys. - Translates complex safety directives into four regional languages (Hindi, Bengali, Tamil, and Telugu) dynamically in real-time, displaying them in a high-contrast public broadcast visual layout.
- Role: A global meta-leaderboard.
- How it Works: Ranks metropolitan areas (New Delhi, New York, Tokyo, London, Mumbai) across multiple metrics, including policy scores, green coverage percentages, renewable energy adoptions, and active enforcement grades.
├── components/
│ ├── EnvironmentalCommandCenter.tsx # Real-time command hub & live API bridge
│ ├── PredictionDashboard.tsx # 16-zone hyperlocal micro-grid & LSTM forecasts
│ ├── QuantumDecisionEngine.tsx # QAOA & VQE budget optimization workflows
│ ├── ExplainableAIPanel.tsx # Live SHAP feature attribution matrices
│ ├── DigitalTwinEngine.tsx # Plume dispersion micro-climate lab
│ ├── CitizenAdvisoryCenter.tsx # Translation & multi-lingual alerts
│ ├── UrbanSustainabilityIndex.tsx # Global resilience leaderboard
│ ├── CleanAirScenarioLab.tsx # Interactive climate sandboxes
│ ├── ClimateActionNetwork.tsx # Sensor grid telemetry nodes
│ └── PollutionJourneySimulator.tsx # Plume vector trajectories
├── src/
│ ├── services/
│ │ └── quantumAIService.ts # Under-the-hood QAOA, VQE, & dispersion mathematics
│ ├── main.tsx # React application entry point
│ └── types.ts # Unified TypeScript structures & data models
├── constants.ts # Global metropolitan database & fallback data
├── server.ts # Express Server (Open-Meteo proxy & Gemini translation)
├── package.json # Build scripts and npm dependencies
└── README.md # In-depth Hackathon GuideTo execute the full-stack system locally or prepare it for a Cloud Run deployment, follow these instructions:
Provide your Gemini API credentials to enable dynamic multilingual emergency translation. Create a .env file in the root directory:
GEMINI_API_KEY=your_google_gemini_api_key_here-
Install all dependencies from package.json:
npm install
-
Launch the Node/Express development server (which hosts front-end assets on port
3000via Vite middleware):npm run dev
This bundles static React assets inside dist/ and compiles the backend code (server.ts) into a standalone, compiled dist/server.cjs file using ESBuild:
npm run buildTo launch the compiled, self-contained server:
npm startThe application is styled with rigorous attention to detail, creating a premium dashboard feel:
- Zero-Delay Micro-Interactions: Hover scales, neon glowing transitions, and state-synchronized layouts.
- Data Density: Highly functional cards, clear typography pairings (Inter for general UI, JetBrains Mono for system metrics), and real-time activity tickers mapping historical actions.
- Responsiveness: Designed for desktop precision while employing fluid layouts that scale down gracefully to touch targets.