Table of Contents:
Important
Why do I create this? The Strava Year in Sport stats round-up of a user's activity from the past 12 months is along the lines of similar features offered by other apps, such as Spotify Wrapped. However, while many, like Spotify, give all users the round-up regardless of if they use the free version or pay for a subscription, Strava has put its Year in Sport behind a paywall as a paid feature.
If you wonder, the logo.png is generated by Gemini Nano Banana Pro.
- Complete Statistics - Distance, time, elevation, and more for every sport
- Streaks & Consistency - Your longest streaks, most active days, training patterns
- Performance Highlights - Fastest runs, longest rides, biggest climbs
- Location Tracking - Countries and cities where you trained
- Personal Insights - Unique insights tailored to your habits
- Activity Heatmap - GitHub-style calendar showing daily activity
- Monthly Charts - Bar charts visualizing monthly progress
- Sports Pie Chart - Distribution of activities by sport type
- Achievement Badges - Unlock badges like "Century Rider" and "Everest Climber"
- Fun Facts - "You ran 47 marathons worth of distance!"
- Share Card - Generate downloadable stats image for social media
- Local Caching - Instant load with 1-hour cache, refresh button to update
- Go to Strava API Settings
- Create an application
- Set Authorization Callback Domain to
<yourdomain>(If you run it locally, just enterlocalhost) - Note your Client ID and Client Secret
# Clone the repository
git clone https://github.com/ntk148v/strava-rewind.git
cd strava-rewind
# Install dependencies
bun install
# Copy environment file
cp .env.example .env.local
# Edit .env.local with your Strava credentialsSTRAVA_CLIENT_ID=your_client_id
STRAVA_CLIENT_SECRET=your_client_secret
NEXT_PUBLIC_APP_URL=http://localhost:3000# Development
bun run dev
# Production build
bun run build
bun run startVisit http://localhost:3000 and click Connect with Strava!
Connect with your Strava account to get started.
View your complete year in sport with statistics, insights, and more.



