node-gtfs is a comprehensive Node.js library and CLI toolkit for ingesting, querying, exporting, and updating GTFS (General Transit Feed Specification) transit data. It supports SQLite natively and PostgreSQL/MySQL through Kysely, handling static schedule feeds, GTFS Realtime (alerts, trip updates, vehicle positions), and extended standards (GTFS-Plus, GTFS-Ride, GTFS-to-HTML, TODS, TIDES, NOPTIS). The architecture centers on a declarative schema definition system that compiles to SQL table metadata, enabling robust import/export pipelines and a rich query API with ~50 getter functions. The codebase demonstrates strong engineering practices: parameterized SQL builders, structured error handling, configurable reporting, and comprehensive test coverage. It is actively maintained, uses modern tooling (pnpm, TypeScript, ESM), and provides a reusable foundation for transit data applications.
This is the official specification repository for the General Transit Feed Specification (GTFS) and GTFS Realtime, hosted by Google and maintained by the community. It contains extensive documentation defining the structure, fields, and semantics of static transit schedule data (CSV-based) and real-time updates (Protocol Buffers schema). The repository includes governance documents, best practices, example feeds (e.g., sample-feed-1.zip), and asciipb examples. There is no application code, data pipelines, or notebooks; it is purely a specification standard. It serves as the authoritative reference for transit agencies (producers) and application developers (consumers) building interoperable transit tools.