wfr2/species-synonym-api
0
Species Synonym API
FastAPI backend for the Beaty Biodiversity species-name synonym tool. Serves the /api/search, /api/sources, and /api/taxonomy endpoints consumed by the Next.js frontend (hosted separately on Vercel).
Currently serves the bundled sample data (data/sample/*.csv) via mock=true.
CORS
Set the ALLOWED_ORIGINS Space variable to a comma-separated list of frontend origins allowed to call this API, e.g.:
ALLOWED_ORIGINS=http://localhost:3000,https://your-app.vercel.appNote: when pushing to the Space, this file becomes the Space'sREADME.md(the HF frontmatter above configures the Docker runtime). It is kept asREADME.hf.mdin the source repo so it doesn't clash with the project README.
