Skip to content

annagiroti/canary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Canary — Climate Health Risk Atlas

Canary is a hackathon-ready climate health risk atlas with:

  • Frontend: Vite + React + MapLibre GL choropleth map, sliders, tooltips
  • Backend: FastAPI that serves county GeoJSON with risk properties and metrics lookup by FIPS

Repo structure

  • /frontend — React app (MapLibre choropleth + controls)
  • /backend — FastAPI app + data loader/merger

Run (local dev)

1) Backend

cd backend
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn app:app --reload --port 8000

Test:

curl "http://localhost:8000/health"
curl "http://localhost:8000/geojson?layer=cancer" | head

2) Frontend

cd frontend
npm install
npm run dev

Open: http://localhost:5173

Data inputs

Put these files in backend/data/:

  • counties.geojson — county polygons with a FIPS property (prefer GEOID)
  • metrics.csv — one row per county keyed by fips (5 digits)

Expected metrics.csv columns (minimum)

  • fips, county, state
  • base_cancer, base_neuro, base_amr
  • w_pm25, w_poverty, w_access
  • pm25, poverty, access

Notes for hackathon speed

  • Start with the provided sample metrics.csv + counties.geojson to get the UI working.
  • Then swap in real data and keep the same columns.

Data Sources

Acknowledgements

Built at BioHacks 2025. County and state boundary data provided by Plotly and PublicaMundi open datasets. Base map tiles by CartoDB. Health and environmental data sourced from CDC, EPA, and US Census Bureau public APIs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors