Advanced environmental monitoring platform powered by NASA data sources, providing real-time insights into air quality, space weather, and natural events for climate safety using AI prediction.
- Real-time Environmental Monitoring: NASA GIBS satellite imagery, EONET natural events, DONKI space weather
- Air Quality Forecasting: NOβ predictions with TEMPO satellite data
- Space Weather Alerts: Solar flares, CMEs, geomagnetic storms impact analysis
- Sky Safety Index (SSI): Unified environmental safety metric (0-100)
- Economic Impact Analysis: Estimated losses from environmental factors
- Interactive 2D Maps: Leaflet-based visualization with time controls
- AI-Powered Insights: Real-time analysis and recommendations
- WebSocket Alerts: Live notifications for critical events
- Node.js 18+ and pnpm
- Backend API running (see backend documentation)
# Clone the repository
git clone <repository-url>
cd antiz-1126
# Install dependencies
pnpm install
# Set up environment variables
cp .env.example .env
# Edit .env with your backend URL and WebSocket endpoint
# Start development server
pnpm devCreate a .env file:
# NASA Earthdata Authentication (Required for live data)
VITE_NASA_TOKEN_1=your_first_earthdata_bearer_token
VITE_NASA_TOKEN_2=your_second_earthdata_bearer_token
# Backend API (Optional - for additional features)
VITE_API_BASE=https://your-backend-api
# VITE_WS_URL=wss://your-backend-api/ws/alerts # Optional - leave commented if backend not available- React 18 + TypeScript + Vite - Modern development setup
- Tailwind CSS + shadcn/ui - Beautiful, accessible components
- React Router - Client-side routing
- Zustand - Lightweight state management
- TanStack Query - Server state management and caching
- React Leaflet - Interactive maps with NASA GIBS layers
- Recharts - Data visualization and charts
- Framer Motion - Smooth animations and transitions
- Sonner - Toast notifications
- Lottie React - Animated loaders and empty states
- EONET - Natural events (wildfires, storms, volcanoes) β Live Data
- GIBS - Real-time satellite imagery β Live Data
- DONKI - Space weather events
- TEMPO - Air quality measurements β Integrated
π Authentication: The app now uses your NASA Earthdata bearer tokens for direct API access, providing real-time data without requiring a backend server.
- Sky Safety Index (SSI): Composite score (Air Quality 40% + Space Weather 35% + Visibility 25%)
- NOβ Forecast: 6-hour predictions with confidence intervals
- Economic Impact: Daily estimated losses across aviation, agriculture, health sectors
public/
βββ assets/
βββ tle/
src/
βββ components/
β βββ cards/
β βββ charts/
β βββ controls/
β βββ dashboard/
β βββ layout/
β βββ loaders/
β βββ map/
β βββ models/
β βββ space/
β βββ ui/
β βββ widgets/
βββ hooks/
βββ keeptrack/
β βββ components/
β βββ orbit/
β βββ cards/
β βββ tle/
βββ lib/
βββ routes/
βββ store/
βββ styles/
βββ types/
# Build for production
pnpm build
# Deploy to Vercel
npx vercel --prod
# Or connect your GitHub repo to Vercel dashboardThe app builds to static files in /dist and can be deployed to:
- Netlify
- AWS S3 + CloudFront
- Digital Ocean App Platform
- Any static hosting service
pnpm dev # Start development server
pnpm build # Build for production
pnpm preview # Preview production build
pnpm lint # Lint code- Interactive Map: Navigate between Caribbean cities, toggle data layers
- Time Controls: Animate satellite imagery and events over time
- Real-time Alerts: WebSocket notifications for environmental changes
- SSI Dashboard: Comprehensive safety index with component breakdown
- Economic Modeling: Adjust assumptions and see impact estimates
- Colors: Primary (#00D1FF), Secondary (#9C6BFF), Accent (#6b72804d)
- Typography: Inter (sans-serif), JetBrains Mono (monospace)
- Theme: Dark space theme with starfield background
- Animations: Framer Motion for smooth transitions and micro-interactions
- Mobile: < 768px (stacked layout, touch-optimized controls)
- Tablet: 768px - 1024px (hybrid layout)
- Desktop: > 1024px (full dashboard with sidebars)
The frontend consumes REST APIs and WebSocket connections:
// Example API calls
GET /api/v1/events/recent?bbox=-85,8,-60,26&days=7
GET /api/v1/predict/air-quality?city=SDQ&h=6
GET /api/v1/ssi?city=SDQ
WebSocket /ws/alerts (real-time notifications)- 3D Globe View: CesiumJS integration for immersive visualization
- Advanced AI: Machine learning predictions and anomaly detection
- Mobile App: React Native version
- Historical Analysis: Time series data and trend analysis
- Multi-language: i18n support for Spanish, French, Creole
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- NASA for providing open data APIs
- shadcn/ui for beautiful component primitives
- Leaflet and OpenStreetMap for mapping capabilities
- Caribbean meteorological community for regional insights
Created with β€οΈ for climate safety and prevention
