How ankitcodes18/risklens works
RiskLens is an environmental-risk information product: visitors explore map layers and forecast horizons, and can access an AI assistant or demo account flows. The frontend presents these capabilities through a Next.js site; its map and forecast viewers check for static image assets rather than showing a live data pipeline in the sampled code. A separate Python climate-agent CLI handles location-based analysis and Open-Meteo data. The excerpts do not establish a connection between that CLI and the website, nor do they show the assistant page’s implementation.
Main entry points: page.tsx Home Page · climate_agent.py Climate Agent CLI · RiskMapPreview.tsx Map Viewer · Hero.tsx Hero
Components 20
RiskLens Website
- Home Page
frontend/src/app/page.tsx - Hero
frontend/src/components/Hero.tsx - Navigation
frontend/src/components/Navbar.tsx - App Layout
frontend/src/app/layout.tsx - Footer
frontend/src/components/Footer.tsx - Final CTA
frontend/src/components/FinalCta.tsx
Risk Mapping
- Risk Map Section
frontend/src/components/RiskMapSection.tsx - Risk Maps Page
frontend/src/app/risk-maps/page.tsx - Map Viewer
frontend/src/components/RiskMapPreview.tsx
Forecasting
- Forecast Section
frontend/src/components/ForecastSection.tsx - Predictions Page
frontend/src/app/predictions/page.tsx - Forecast Viewer
frontend/src/components/ForecastGraphPreview.tsx
AI Guidance
- Assistant Section
frontend/src/components/AssistantSection.tsx - Assistant Page
frontend/src/app/assistant/page.tsx - Climate Agent CLI
ai/climate_agent.py
Account Access
- Login Page
frontend/src/app/login/page.tsx - Signup Page
frontend/src/app/signup/page.tsx
Other components
- Visitor
- Open-Meteo APIs
- Gemini
Connections 20
- Visitor → Home Page: opens
frontend/src/app/page.tsx - Home Page → Hero: renders
frontend/src/app/page.tsx - Home Page → Risk Map Section: renders
frontend/src/app/page.tsx - Home Page → Forecast Section: renders
frontend/src/app/page.tsx - Home Page → Assistant Section: renders
frontend/src/app/page.tsx - Home Page → Final CTA: renders
frontend/src/app/page.tsx - Home Page → Navigation: renders
frontend/src/app/page.tsx - Home Page → Footer: renders
frontend/src/app/page.tsx - Home Page → App Layout: uses layout
frontend/src/app/layout.tsx - Hero → Map Viewer: renders
frontend/src/components/Hero.tsx - Risk Map Section → Map Viewer: renders
- Risk Maps Page → Map Viewer: renders
frontend/src/app/risk-maps/page.tsx - Forecast Section → Forecast Viewer: renders
frontend/src/components/ForecastSection.tsx - Predictions Page → Forecast Viewer: renders
frontend/src/app/predictions/page.tsx - Visitor → Login Page: opens
frontend/src/app/login/page.tsx - Visitor → Signup Page: opens
- Visitor → Assistant Page: opens
- Visitor → Climate Agent CLI: enters location
ai/climate_agent.py - Climate Agent CLI → Open-Meteo APIs: fetches weather
ai/climate_agent.py - Climate Agent CLI → Gemini: uses model