{"id":44976006,"url":"https://github.com/code-barru/headway","last_synced_at":"2026-04-14T11:01:00.688Z","repository":{"id":348458908,"uuid":"1198184156","full_name":"Code-Barru/headway","owner":"Code-Barru","description":"Blazingly fast GTFS validator and CRUD operations","archived":false,"fork":false,"pushed_at":"2026-04-14T09:24:00.000Z","size":724,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-14T10:27:59.196Z","etag":null,"topics":["cli","gtfs","gtfs-realtime","gtfs-rt"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Code-Barru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-01T07:31:27.000Z","updated_at":"2026-04-14T09:24:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Code-Barru/headway","commit_stats":null,"previous_names":["code-barru/headway"],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/Code-Barru/headway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Barru%2Fheadway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Barru%2Fheadway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Barru%2Fheadway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Barru%2Fheadway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Code-Barru","download_url":"https://codeload.github.com/Code-Barru/headway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Barru%2Fheadway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31793225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","gtfs","gtfs-realtime","gtfs-rt"],"created_at":"2026-02-18T17:04:55.614Z","updated_at":"2026-04-14T11:01:00.681Z","avatar_url":"https://github.com/Code-Barru.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Headway\n\nA high-performance, all-in-one CLI tool for manipulating GTFS (General Transit Feed Specification) files.\n\n## About\n\nHeadway replaces the fragmented ecosystem of current GTFS tools with a single unified, fast, and local-first binary written in Rust.\n\n### Problem Solved\n\nTransit data engineers and application developers face:\n\n- **Tool fragmentation**: different tools for each operation (validation, editing, merging)\n- **Performance issues**: Java/Python solutions are slow on large feeds\n- **Privacy concerns**: cloud validators require sending data to third parties\n- **Heavy maintenance**: custom ad-hoc scripts for each operation\n- **Outdated tools**: validators that don't always follow the latest GTFS specifications\n\n### Key Features\n\n- **Comprehensive validation**: 6-section gated pipeline with 60+ rules covering file structure, CSV formatting, field types, field definitions, foreign keys, and primary key uniqueness\n- **17 GTFS file types parsed**: agency, stops, routes, trips, stop_times, calendar, calendar_dates, shapes, frequencies, transfers, pathways, levels, feed_info, fare_attributes, fare_rules, translations, attributions\n- **Multi-format output**: colored text (default), JSON, CSV, XML and HTML supported\n- **Performance**: parallel rule execution and file parsing via multi-threading\n- **Integrity protection**: bidirectional referential integrity index with recursive dependency tracking\n- **CRUD operations**: create, read, update, and delete on core GTFS files\n- **Batch processing**: `.hw` files to automate GTFS workflows\n- **TOML configuration system**: three-tier config (project \u003e user \u003e defaults)\n\n## Installation\n\n### Quick Install (recommended)\n\n**Linux / macOS:**\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/Code-Barru/headway/main/scripts/install.sh | sh\n```\n\n**Windows (PowerShell):**\n\n```powershell\nirm https://raw.githubusercontent.com/Code-Barru/headway/main/scripts/install.ps1 | iex\n```\n\n### Install a Specific Version\n\n```bash\n# Linux / macOS\ncurl -fsSL https://raw.githubusercontent.com/Code-Barru/headway/main/scripts/install.sh | sh -s -- --version 0.3.0\n\n# Windows (PowerShell)\n$env:HEADWAY_VERSION=\"0.3.0\"; irm https://raw.githubusercontent.com/Code-Barru/headway/main/scripts/install.ps1 | iex\n```\n\n### Build from Source\n\n**Prerequisites:** Rust 1.70 or higher\n\n```bash\ncargo build --release\n```\n\nThe binary will be available at `target/release/headway`.\n\n## Usage\n\n### Validate a GTFS feed\n\n```bash\n# Validate with colored terminal output\nheadway validate -f ./feed.zip\n\n# Validate and export as JSON\nheadway validate -f ./feed.zip --format json -o report.json\n```\n\n### CRUD operations\n\n```bash\n# Read data\nheadway read stops -f ./feed.zip --where \"location_type=1\"\n\n# Create data\nheadway create stops -f ./feed.zip --set stop_id=S99 --set stop_name=\"New Stop\"\n\n# Update data\nheadway update stops -f ./feed.zip --where stop_id=S01 --set stop_name=\"New Station\"\n\n# Delete data\nheadway delete stop_times -f ./feed.zip --where \"trip_id=OLD AND stop_sequence\u003e10\"\n```\n\n### Batch execution\n\n```bash\nheadway run weekly-fix.hw\n```\n\n## Development\n\n### Run in development mode\n\n```bash\ncargo run\n```\n\n### Run tests\n\n```bash\ncargo test\n```\n\n### Run benchmarks\n\n```bash\ncargo bench -p headway-core\n```\n\nCriterion HTML reports are generated in `target/criterion/`.\n\n### Flamegraph\n\nRequires [`cargo-flamegraph`](https://github.com/flamegraph-rs/flamegraph) and `perf` (Linux):\n\n```bash\ncargo install flamegraph\ncargo flamegraph --bench core_bench -p headway-core -- --bench\n```\n\nThe SVG flamegraph is generated at the project root (`flamegraph.svg`).\n\n### Format code\n\n```bash\ncargo fmt\n```\n\n### Lint\n\n```bash\ncargo clippy\n```\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-barru%2Fheadway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-barru%2Fheadway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-barru%2Fheadway/lists"}