Land Degradation Hackathon Project - Build AI-Powered Solutions for a Greener Planet link for the deployment; https://landdegradation254.netlify.app/
Land ReGen is a comprehensive AI-powered platform that analyzes land health, assesses degradation risks, and provides actionable restoration plans. Built for the Land Degradation Hackathon, it combines real satellite data, advanced AI analysis, and interactive visualization to help combat land degradation and promote regenerative practices.
- Multi-API Integration: Sentinel Hub, NASA MODIS, and Landsat data sources
- NDVI Analysis: Vegetation health assessment using satellite imagery
- Fallback Strategy: Intelligent API switching for maximum reliability
- Real-time Processing: Live analysis of land health indicators
- Claude AI Integration: Expert environmental analysis with detailed insights
- Comprehensive Assessment: Soil health, erosion risk, and degradation analysis
- Trend Detection: Identifying improving, declining, or stable vegetation patterns
- Contextual Recommendations: Location-specific restoration strategies
- NDVI Trend Charts: Time-series analysis of vegetation health
- Environmental Metrics: Carbon sequestration, biodiversity, water retention
- Risk Assessment Dashboards: Visual indicators for degradation and restoration potential
- Multi-metric Analysis: Comprehensive environmental health overview
- Cost Estimation: Detailed financial planning for restoration projects
- Timeline Management: Phased implementation schedules (immediate, short-term, long-term)
- Resource Requirements: Equipment, materials, and expertise needed
- Impact Assessment: Expected environmental benefits and outcomes
- Carbon Sequestration Potential: Annual COβ storage capacity
- Biodiversity Index: Species diversity and ecosystem richness
- Water Retention Capacity: Soil water holding and infiltration
- Ecosystem Resilience: Recovery potential from disturbances
- Modern UI: Tailwind CSS with Radix UI components
- Interactive Maps: Leaflet integration for location selection
- Data Visualization: Recharts for comprehensive charting
- Responsive Design: Mobile-first approach for all devices
- RESTful API: Clean, documented API endpoints
- Database Integration: PostgreSQL for data persistence
- Security: Helmet, rate limiting, and CORS protection
- Monitoring: Health checks and error tracking
- Sentinel Hub: High-resolution Sentinel-2 L2A data (10m resolution)
- NASA APIs: MODIS vegetation indices (250m resolution)
- Landsat: Surface reflectance data (30m resolution)
- Intelligent Fallbacks: Multiple data sources for reliability
- Node.js 18+
- PostgreSQL (optional, for data persistence)
- API keys for satellite data sources (optional)
-
Clone the repository
git clone https://github.com/yourusername/landregen.git cd landregen -
Install dependencies
# Frontend npm install # Backend cd backend npm install
-
Configure environment variables
# Backend .env CLAUDE_API_KEY=your_claude_api_key SENTINEL_HUB_CLIENT_ID=your_sentinel_hub_id SENTINEL_HUB_CLIENT_SECRET=your_sentinel_hub_secret NASA_API_KEY=your_nasa_api_key DATABASE_URL=postgresql://user:pass@localhost:5432/landregen -
Start the application
# Backend (Terminal 1) cd backend npm run dev # Frontend (Terminal 2) npm run dev
-
Access the application
- Frontend: http://localhost:5173
- Backend API: http://localhost:4000
POST /api/analyze- Analyze land health for coordinates or imageGET /api/history- Get analysis historyGET /api/analysis/:id- Get specific analysis by ID
GET /health- Health check with database statusGET /- API information and available endpoints
- Agricultural Planning: Optimize crop rotation and soil management
- Conservation Projects: Identify priority areas for restoration
- Climate Action: Carbon sequestration potential assessment
- Policy Support: Data-driven environmental decision making
- SDG 15: Life on Land - Combat desertification and halt biodiversity loss
- SDG 13: Climate Action - Strengthen resilience to climate-related hazards
- SDG 6: Clean Water - Protect and restore water-related ecosystems
landregen/
βββ src/ # Frontend React application
β βββ components/ # UI components
β βββ hooks/ # Custom React hooks
β βββ lib/ # Utility functions
β βββ utils/ # Helper functions
βββ backend/ # Node.js API server
β βββ lib/ # Core business logic
β βββ index.js # Express server setup
βββ docs/ # Documentation
βββ deployment/ # Deployment configurations
- Frontend: React 18, TypeScript, Tailwind CSS, Recharts, Leaflet
- Backend: Node.js, Express, PostgreSQL, Claude AI API
- GIS: Sentinel Hub, NASA APIs, Landsat
- Deployment: Vercel, Railway, Docker
- Code Splitting: Lazy loading for optimal performance
- Caching: Redis integration for API response caching
- Compression: Gzip compression for reduced bandwidth
- Rate Limiting: API protection against abuse
- Database Indexing: Optimized queries for large datasets
- Health Checks: Real-time system status monitoring
- Error Tracking: Comprehensive error logging and reporting
- Performance Metrics: Response time and throughput monitoring
- Database Monitoring: Connection health and query performance
- Multi-Source Data Fusion: Combines multiple satellite data sources
- AI-Powered Analysis: Advanced environmental assessment using Claude AI
- Comprehensive Visualization: Interactive charts and dashboards
- Actionable Insights: Detailed restoration plans with cost estimates
- Production Ready: Scalable architecture with proper security
- Real-time Monitoring: Continuous land health assessment
- Preventive Action: Early degradation detection and intervention
- Restoration Planning: Data-driven restoration strategies
- Climate Resilience: Carbon sequestration and adaptation planning
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Claude AI for advanced environmental analysis
- Sentinel Hub for high-resolution satellite data
- NASA for MODIS and Landsat data access
- Open Source Community for the amazing tools and libraries
- Project Lead: Faith Njeri Wanjiru
- Email: njerifaith697@gmail.com
- GitHub: NjeriCodeCraft
- LinkedIn: https://www.linkedin.com/in/faith-wanjiru-169915251/
Built with β€οΈ for the Land Degradation Hackathon
Empowering environmental restoration through AI and satellite technology