{"by":"friggeri","descendants":495,"id":44522683,"kids":[44555594,44557872,44561009,44556490,44557158,44557081,44557454,44526638,44555914,44542392,44555315,44555725,44560456,44557128,44557529,44555414,44564159,44556580,44558205,44558511,44557262,44556122,44556399,44561177,44561528,44556332,44556672,44556853,44556253,44527744,44557200,44559833,44557656,44558120,44562645,44572166,44563418,44557133,44557389,44568019,44557591,44556007,44573139,44555731,44559979,44523558,44557427,44556545,44566285,44555298,44557150,44560095,44585523,44524760,44558010,44555274,44556360,44558021,44559051,44556972,44555722,44562330,44557409,44561385,44555226,44557205,44556263,44556687,44558958,44555946,44561927,44557254,44563360,44569625,44557423,44537602,44537621,44531768,44563339,44556096,44557674,44550147,44555764,44557290,44563209,44562038,44555884,44557149,44567116,44556957,44555889,44559638,44563355,44562603,44563076,44561012,44557233,44556506,44563336,44556445,44556947,44559563,44621618,44621617,44555923,44556416,44556703,44561090],"score":958,"text":"Today marks ten years, 3653 consecutive days, of running at least one mile every day under the USRSA rules [1]. To celebrate, I built an interactive dashboard that turns a decade of GPX files into charts you can explore.<p>Running has truly changed my life: I&#x27;ve made lifelong friends, explored beautiful places, and more importantly invested into my own health and fitness, which I&#x27;m starting to see the positive benefits as I get older.<p>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.<p>I used the Strava bulk export to pre-populate the database, and I&#x27;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.<p>Happy to answer anything about the stack, data pipeline, or how I stayed motivated for 10 years!<p>[1] <a href=\"https:&#x2F;&#x2F;www.runeveryday.com\" rel=\"nofollow\">https:&#x2F;&#x2F;www.runeveryday.com</a> Run Streak Association rules: ≥ 1 mile per day","time":1752164473,"title":"Show HN: Ten years of running every day, visualized","type":"story","url":"https://nodaysoff.run"}