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 commentsUnreal that you rolled your own svg's for this instead of using d3.js. That absolutely blows my mind, great work!
I’m not going to run it but I’ve hiked up in there a bunch of times.
I'm a trail runner and I've been running over 18 years or so, not every day, but two or three times a week. Sickness or health, injury, birthdays, holidays, rain, snow, -30C. My last big run was around Christmas. After that I had about three months medical off-time. Now it's very hard to get back on track. I just had to cancel some summer running events. It's not just motivation, but general stiffness and musculoskeletal pains like shin splints and knee and ankle soreness. My guess is that at my (middle) age, you either do it or lose it.
I advise anybody to find something they like and stick with it. Vary it according to how your body feels, but always do something. Keep the body (and the brain) working.
"Roger Federer says he was injured giving daughter bath"
https://www.espn.com/tennis/story/_/id/15059810/roger-federe...
All comments shown.
Couldn't load more comments. Check your connection and try again.