Skip to content

Repository files navigation

gtfs-sqljs-grouping

Group a GTFS feed's routes into corridors and get a flat, ordered, deduplicated inventory of every stop in the feed — plus a reason-tagged list of everything that didn't make it in. Built for stop-by-stop data QA.

Two pieces:

  • packages/gtfs-stop-inventory — the headless npm library. Pure data in, pure data out; deterministic; depends only on a narrow structural GtfsSource port compatible with gtfs-sqljs (direct instance or Comlink worker proxy). See its DESIGN.md for the full design.
  • web — a Vite + React playground deployed to GitHub Pages. Loads GTFS entirely in the browser (sql.js in a Web Worker), bundles the Car Jaune (La Réunion) feed for instant testing, and uses react-gtfs-selector so you can drop a .zip, paste a URL, or search transport.data.gouv.fr / the Mobility Database.

Development

npm install
npm test          # library unit tests (vitest)
npm run build     # library (tsc) + web app (vite)
npm run dev       # web app dev server

Deployment

Pushes to main build the site and publish web/dist to GitHub Pages via .github/workflows/deploy.yml. The Vite base is ./, so the site works under the repository-name URL prefix.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages