whentrain.nyc

2023

the sign from the subway stations, on your phone or on your wall


See it live ↗️

A rewrite of an older project.

The original whentrain.nyc was a Svelte single-page app. Ever since I learned SvelteKit I’ve been dreaming of rewriting it so I could just bookmark the nearby page.

I used SvelteKit, but I wrote the backend in its own separate service, which I am intending to make available as a JSON API at some point.

I also used Bun for both the frontend and the API. I used Hono for the API. Overall, using these newer technologies was speedy and fun, but the combo of Bun + SvelteKit ended up causing me enough pain at deploy time (I couldn’t use use adapter-auto) that I switched to deploying it in a NodeJS container.