Using My Website to Track my Strava Miles

submited by
Style Pass
2025-01-14 04:00:04

I built a simple React component that keeps track of all the miles I've walked, run, and cycled throughout the current year. It pulls data from my Strava account and displays the total distance, providing a real-time snapshot of my athletic activities. Here it is:

The component consists of two main parts: a Next.js Edge Function that handles the Strava API interaction and data processing, and a React component that displays the results.

Why not? I wanted a simple way to track my cumulative progress throughout the year across different types of activities. While Strava provides great activity-specific stats, I was interested in seeing my total mileage across all endurance activities in a single number. But mostly I just like adding cool shit to my blog.

The current implementation is intentionally minimal, but it provides a solid foundation for adding more features while maintaining its core simplicity.

Leave a Comment