{"id":45658850,"url":"https://github.com/codeforboston/gtfs-performance","last_synced_at":"2026-02-24T08:57:51.115Z","repository":{"id":95347472,"uuid":"71366709","full_name":"codeforboston/gtfs-performance","owner":"codeforboston","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-15T03:39:46.000Z","size":181,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T18:50:54.084Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeforboston.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"custom":"https://www.codeforamerica.org/donate-to-a-brigade?utm_campaign=CodeforBoston\u0026utm_source=github"}},"created_at":"2016-10-19T14:38:02.000Z","updated_at":"2024-08-08T14:42:07.000Z","dependencies_parsed_at":"2023-04-12T19:31:35.903Z","dependency_job_id":null,"html_url":"https://github.com/codeforboston/gtfs-performance","commit_stats":{"total_commits":82,"total_committers":1,"mean_commits":82.0,"dds":0.0,"last_synced_commit":"5a2fec3d0426b2edeb93e7816d18bc5fddcc2f0c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codeforboston/gtfs-performance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforboston%2Fgtfs-performance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforboston%2Fgtfs-performance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforboston%2Fgtfs-performance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforboston%2Fgtfs-performance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeforboston","download_url":"https://codeload.github.com/codeforboston/gtfs-performance/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforboston%2Fgtfs-performance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29777476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T04:54:30.205Z","status":"ssl_error","status_checked_at":"2026-02-24T04:53:58.628Z","response_time":75,"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":[],"created_at":"2026-02-24T08:57:50.327Z","updated_at":"2026-02-24T08:57:51.103Z","avatar_url":"https://github.com/codeforboston.png","language":"Clojure","funding_links":["https://www.codeforamerica.org/donate-to-a-brigade?utm_campaign=CodeforBoston\u0026utm_source=github"],"categories":[],"sub_categories":[],"readme":"* Purpose\n  \n  Fills in some gaps in the current MBTA API.\n\n* Usage\n** Requirements\n   - Java 8 (for the ~java.time~ package)\n   - [[http://leiningen.org][Leiningen 2]] - a package management and build tool for Clojure\n   - [[https://www.mongodb.com][MongoDB]] version 3.2 or higher (for certain aggregation operators and zip\n     archives)\n\n** Running\n*** Interactive Development\n    I recommend using [[http://cider.readthedocs.io/en/latest/][Cider]] or [[https://cursive-ide.com][Cursive]] and jacking in. By default, the REPL\n    starts in the ~mbta-xtras.repl~ namespace. Run ~(system/start)~ to start the\n    application. Run ~(start-mongo)~ to just start Mongo, and\n    ~mbta-xtras.repl/db~ will be bound to the database for convenience.\n    ~(stop-mongo)~ will close the connection.\n*** Noninteractive\n    Use ~lein trampoline run~. If you want to be able to connect a REPL to the\n    running server, set the ~NREPL_SERVER_PORT~ environment variable. For\n    example:\n    #+BEGIN_SRC bash\n    NREPL_SERVER_PORT=12345 lein trampoline run\n    #+END_SRC\n    You can then use ~cider-connect~\n   \n** Environment Variables\n   Configuration of the application is done entirely through environment\n   variables and/or Java system properties.\n\n   - MONGO_URI :: This should be a URI of the form ~mongodb://\u003chost\u003e/db~.\n        Specify a username and password with: ~mongodb://username:password@host/db~.\n   - HTTP_PORT :: Alternative port on which to start the web service\n   - MANIFEST_URL :: The URL where the GTFS zip manifest lives\n   - MANIFEST_DOWNLOAD_TO :: The path where the zip manifest should be saved\n   - MBTA_API_KEY :: An MBTA-specific setting, used when communicating with the\n        [[http://realtime.mbta.com/Portal/Home/Documents][Realtime API]].\n   - TRIP_UPDATES_URL :: Specify a URL to poll for Trip Updates\n   - GTFS_ZONE :: A valid time zone ID (default: America/New_York)\n   - POSTPROCESS_INTERVAL :: For the moment, the system performs necessary\n        post-processing on the trip-stops collection in order to make certain\n        performance queries respond quickly. Set this variable to the number of\n        seconds between post-processing runs.\n   - NREPL_SERVER_PORT :: Set to a number to bind an [[https://github.com/clojure/tools.nrepl][nREPL server]] to the\n        specified port. Allows you to use ~cider-connect~ in emacs, etc.\n\n   You can also set these as Java system properties on start up. The system\n   properties are the same as the environment variales, except downcased and\n   with periods replacing underscores. To set MONGO_URI, for instance, set the\n   ~mongo.uri~ system property.\n\n** Building\n   - ~lein uberjar~\n     This will create two new .jar files in your ~target~ directory. Run the\n     standalone jar with ~java -jar target/mbta-xtras-\u003cversion\u003e-standalone.jar~.\n     \n* Data Dumps\n \n  Since others might be interested in using the raw \"trip-stops\" data without\n  having to run a server, gzipped mongodb dumps of the collection will be\n  automatically posted daily and will be available at URLs with the format:\n\n  http://mbta-static.apptic.xyz/mbtafyi/trip-stops_*YYYY_mm*.gz\n\n  To view a listing, in XML format, of the available files, see:\n\n  http://mbta-static.apptic.xyz/mbtafyi?restype=container\u0026comp=list\n\n  Each file will contain _only_ the trip stops recorded during the month\n  indicated by the file name. Import them using the ~mongorestore~\n  utility. For example:\n\n  #+BEGIN_SRC bash\n  mongorestore --db=mbta --collection=trip-stops --gzip --archive=trip-stops_2016_10.gz\n  #+END_SRC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeforboston%2Fgtfs-performance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeforboston%2Fgtfs-performance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeforboston%2Fgtfs-performance/lists"}