Show HN: Ten years of running every day, visualized (opens in a new tab)nodaysoff.run
958 pointsRunning has truly changed my life: I've made lifelong friends, explored beautiful places, and more importantly invested into my own health and fitness, which I'm starting to see the positive benefits as I get older.
The stack is pretty simple: a NextJS app, with a Postgres database to keep all my running data, and all the stats are pre-computed and cached in Redis, so I effectively only hit the database once a day when a new run is ingested. On the fronted, I toyed with the idea of using D3 or pre-existing data viz libraries, but ended up rolling my own using SVGs directly, it gave me more control on the visualizations.
I used the Strava bulk export to pre-populate the database, and I'm using their webhook API to do incremental updates. I have to tap into OpenWeatherMap and OpenCageDate to enrich the running data a little bit.
Happy to answer anything about the stack, data pipeline, or how I stayed motivated for 10 years!
[1] https://www.runeveryday.com Run Streak Association rules: ≥ 1 mile per day

Comments (495) 108 threads
Earlier commentsI was in the on phase, and we decided to get a puppy. She lives to sniff, run, and explore. So, looking forward to a long streak!
The 16-17 hour flights from the US to Asia are really hard to manage when you are trying to run every day. Depending on when you take off, you may be in the air an entire calendar day, based on starting the flight in the time zone were you leave in the US and ending it in the time zone where you land in Asia. (Like Singapore airlines flight 23. Takes off 10:15 pm from New York on a Wednesday and lands 19 h 15m later on Friday morning 5:30 am in Singapore.) Either you decide that your first run in Singapore is going to be on New York time, or you say running in place on the plane is going to count, or you don’t take that kind of flight.
Flying the other way is easy to keep your streak with though. Take off from Singapore at 11:35 pm and land in New York at 6 the next morning (18 1/2 hours later)
It doesn't have to start big, you can start by running down your block once a day and go from there.
Start small, think big.
All comments shown.
Couldn't load more comments. Check your connection and try again.