npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gotrain-cli

v1.1.2

Published

Atomic CLI for MTA system train departures (NYC Subway, LIRR, Metro-North)

Readme

gotrain 🚂

Atomic CLI for MTA system train departures (NYC Subway, LIRR, Metro-North)

No dependencies. No config. Just trains.

CI Platform License

Why?

Most train apps are bloated. This is one shell script.

Install

Via npm (Recommended):

npm install -g gotrain-cli

One-liner (Universal Bash):

curl -sL https://raw.githubusercontent.com/gumadeiras/gotrain-cli/main/install.sh | bash

Usage

# Search stations
gotrain stations penn       # Search for "penn"
gotrain stations            # List all stations

# Departures & Arrivals
gotrain departures MNR-149  # Departures from New Haven
gotrain departures nh --to MNR-1 # Filter departures to Grand Central (using alias)
gotrain arrivals MNR-1      # Arrivals at Grand Central
gotrain arrivals MNR-1 --from nh # Filter arrivals from New Haven

# Service alerts
gotrain alerts              # Active service alerts

# Favorites
gotrain favs add MNR-149 nh  # Add with alias 'nh'
gotrain favs rm nh           # Remove by alias
gotrain favs                 # List favorite stations

Examples

$ gotrain stations "new haven"
🟥 MNR │ New Haven (CT) Lines: New Haven ♿ ID: MNR-149
🟥 MNR │ New Haven-State St (CT) Lines: New Haven ♿ ID: MNR-150

$ gotrain departures MNR-149
Departures for New Haven (MNR-149)
──────────────────────────────────────────────────────────
10:39 AM EST │ Grand Central  (Off Peak) [Line: New Haven]
             │ On Time        Track 1 (Train #1539)

11:24 AM EST │ Grand Central  (Off Peak) [Line: New Haven]
             │ On Time        Track 2 (Train #1545)

$ gotrain favorite add MNR-149 home
Added MNR-149 to favorites (Alias: home) ✅

$ gotrain departures home
🟦 Departures for New Haven (MNR-149)
──────────────────────────────────────────────────────────
...

$ gotrain alerts
⚠️  Uptown [4][5] trains are running with delays...
   No description....

Commands

| Command | Description | |---------|-------------| | stations [query] | Search/list stations | | departures <id> [--to <id>] | Show departures (optional destination filter) | | arrivals <id> [--from <id>] | Show arrivals (optional origin filter) | | alerts [--station <id>] [--all] | Active service alerts (optional station filter, all alerts) | | favs [add|rm] [id] [alias] | Manage favorites (list, add, remove, toggle) |

Clawdbot Integration

This tool is available as a ClawdHub skill! Use it from any chat where Clawdbot is connected.

Data Source

Powered by MetroFlow API — real-time MTA transit data.

Contributing

PRs are welcome! If you find any bugs or have feature requests, please open an issue.

  • Development: Run ./tests/test_gotrain.py to verify changes locally.
  • Style: Keep the script atomic. No external dependencies if possible.

License

MIT 🐧