|
| 1 | +# eBird Hotspot Deduper |
| 2 | + |
| 3 | +A minimal Vue 3 static web app that helps find likely duplicate eBird hotspots within a region. |
| 4 | + |
| 5 | +The app: |
| 6 | +- asks for your eBird API token in an entry modal and stores it in `localStorage` |
| 7 | +- lets you search region by name (country/state) and resolves the region code |
| 8 | +- fetches hotspots from `GET /v2/ref/hotspot/{regionCode}` |
| 9 | +- computes hotspot pairs under a distance threshold slider (default `10` meters) |
| 10 | +- sorts candidates by distance (nearest first) |
| 11 | +- shows candidates in a list and on a Leaflet map |
| 12 | +- links each hotspot directly to the eBird edit page (`https://ebird.org/mylocations/edit/{locId}`) |
| 13 | + |
| 14 | +## Tech stack |
| 15 | + |
| 16 | +- Vue 3 + Vite |
| 17 | +- Bootstrap 5 |
| 18 | +- Leaflet (OpenStreetMap tiles) |
| 19 | +- No backend (browser-only API calls) |
| 20 | + |
| 21 | +## Local development |
| 22 | + |
| 23 | +1. Install dependencies: |
| 24 | + |
| 25 | +```bash |
| 26 | +npm install |
| 27 | +``` |
| 28 | + |
| 29 | +2. Start dev server: |
| 30 | + |
| 31 | +```bash |
| 32 | +npm run dev |
| 33 | +``` |
| 34 | + |
| 35 | +3. Open the app, then provide: |
| 36 | +- eBird API token |
| 37 | +- region name (select one of the returned options) |
| 38 | +- optional threshold using the slider |
| 39 | + |
| 40 | +Region name lookup uses eBird region endpoints: |
| 41 | +- `GET /v2/ref/region/list/country/world` |
| 42 | +- `GET /v2/ref/region/list/subnational1/{countryCode}` |
| 43 | + |
| 44 | +## Build static site |
| 45 | + |
| 46 | +```bash |
| 47 | +npm run build |
| 48 | +``` |
| 49 | + |
| 50 | +Build output is written to `dist/` and can be hosted as a static site. |
| 51 | + |
| 52 | +## GitHub Pages |
| 53 | + |
| 54 | +This repository includes `.github/workflows/deploy-pages.yml` that: |
| 55 | +- builds the app on pushes to `main` |
| 56 | +- sets `VITE_BASE_PATH=/${{ github.event.repository.name }}/` |
| 57 | +- deploys `dist/` to GitHub Pages |
| 58 | + |
| 59 | +### One-time GitHub settings |
| 60 | + |
| 61 | +1. In GitHub: `Settings` -> `Pages` |
| 62 | +2. Under **Build and deployment**, set **Source** to **GitHub Actions** |
| 63 | + |
| 64 | +## Notes |
| 65 | + |
| 66 | +- The app stores API token, selected region, threshold, and filter setting in `localStorage` for convenience. |
| 67 | +- The eBird hotspot payload may not always include checklist counts; those values are shown as `n/a` when unavailable. |
0 commit comments