Amtrak.js is a super simple and easy way to interact with the Amtrak's train tracking API in both Node.js and the browser. Everything from fetching data, parsing it, and cleaning it is handled for you, so you can focus on the real work. Also, it's open source!
I've had a love for trains for some time now, and naturally, being from the US and now living in Chicago (the passenger train capitol of the US), I wanted to make my own tracking program to see which trains I might be able to catch or see. The thing is, Amtrak's train tracking API is fairly difficult to work with, as the returned data is encrypted, and encrypting it is just a headache. As I knew there were more people out there with my goal, I decided to use my skills to create this library: an *actually useful* project for once (look at my ProductHunt profile and you'll see what I mean).
I hope you enjoy my library, and if you don't use JS/TS, stay tuned tomorrow for my free API launching tomorrow which does the same as this library!
Amtraker NEXT
The Met
Amtraker NEXT