The best website to check the status of your train (and bus).
If you'd like to try a hosted version of the API, you can find the documentation here. You can also host your own version using the prebuilt container images linked to this repository.
A realtime bus map is available at map.trainstat.us.
- Blazingly fast 😼😼😼😼
- Real-time alerts and arrivals for MTA subways and buses
- Works offline
- Installable as a PWA
- Shallow routing between modals so you never lose your place
- Shareable links for your trip
- Works on mobile and desktop
- No ads or tracking (your geolocation data never leaves your device)
- Simple API that supports JSON and GeoJSON responses.
- Use the prebuilt container images linked to this repository.
- Required environment variables are listed in
backend/README.md
andfrontend/README.md
. - Requires PostgreSQL and Valkey/Redis.
- Podman/Docker
- Mise
- BusTime API Key
- Clone the repository
- Mise should automatically install required dependencies
- Set environment variables as listed in
backend/README.md
insidebackend/.env.toml
- Start PostgreSQL and Valkey with
docker compose up -d
orpodman compose up -d
- Install SQLX CLI with
cargo install sqlx-cli --no-default-features --features native-tls,postgres
- Start backend with
cargo r
- Start frontend with
pnpm dev