How lithishvishal/fishermanpolicymaker works
Oceanix is a marine biodiversity and regional ocean-health dashboard. Users explore species and occurrence maps, view health and time-series analyses, compare periods or regions, detect anomalies, run what-if projections, validate CSV uploads, ask a data-backed assistant, and download PDF or CSV reports. The frontend calls a FastAPI application, which orchestrates OBIS occurrence data, environmental readings, calculations, assistant responses, and report generation. Source excerpts establish these connections; unsampled routes and frontend behavior are represented only where documented by shown calls or the source index.
Main entry points: main.py FastAPI routes · report.py PDF report generation · assistant.py Marine Q&A · obis.py OBIS species and occurrences
Components 13
Web dashboard
- Interactive dashboard
frontend/script.js - Map annotations
frontend/script.js
API orchestration
- FastAPI routes
backend/main.py
Marine data
- OBIS species and occurrences
backend/obis.py - Environmental readings
backend/environment.py
Analysis and reporting
- Health and trend analysis
backend/calculations.py - PDF report generation
backend/report.py
Assistant
- Marine Q&A
backend/assistant.py
Other components
- Dashboard user
- OBIS API
- Open-Meteo APIs
- LLM providers
- ReportLab
Connections 16
- Dashboard user → Interactive dashboard: uses
frontend/script.js - Interactive dashboard → FastAPI routes: requests data
frontend/script.js - Interactive dashboard → Map annotations: saves notes
frontend/script.js - FastAPI routes → OBIS species and occurrences: fetches records
backend/main.py - FastAPI routes → Environmental readings: fetches readings
backend/main.py - FastAPI routes → Health and trend analysis: computes indicators
backend/main.py - FastAPI routes → Marine Q&A: answers questions
backend/main.py - FastAPI routes → PDF report generation: builds PDF
backend/main.py - OBIS species and occurrences → OBIS API: queries
backend/obis.py - Environmental readings → Open-Meteo APIs: queries
backend/environment.py - Marine Q&A → OBIS species and occurrences: gets marine context
backend/assistant.py - Marine Q&A → Health and trend analysis: uses analysis
backend/assistant.py - Marine Q&A → LLM providers: dispatches prompts
backend/assistant.py - PDF report generation → OBIS species and occurrences: loads period records
backend/report.py - PDF report generation → Health and trend analysis: computes report metrics
backend/report.py - PDF report generation → ReportLab: renders PDF
backend/report.py