⚡ Labs

Building PerfRide: A Ride Analysis Web App Using Antigravity and Strava API

Building PerfRide: A Ride Analysis Web App Using Antigravity and Strava API

An avid cyclist and developer has created "PerfRide," a web application designed to unlock advanced cycling analytics without the need for a premium Strava subscription. By leveraging the public Strava API, the project aims to provide deep insights into ride data and training progression that are typically behind a paywall.

The app focuses on two primary pillars: Ride Management and Training Planning. Under management, users can review past rides, visualize power and heart-rate distributions by intensity zones, and monitor critical metrics like Training Stress Balance (TSB), Chronic Training Load (CTL), and Acute Training Load (ATL). This data-driven approach allows cyclists to gauge their current condition and avoid overtraining.

PerfRide is built using the Antigravity framework and consists of the main analytics engine and an intelligent agent for workout recommendations. The Dashboard serves as the hub, connecting directly to Strava to pull recent activity and display fitness progress charts. Each ride detail includes synchronized overlays of heart rate zones, power profiles, and elevation data.

Technical depth is further enhanced by several experimental features. The "Climb Simulator" employs a physics-based model—accounting for variables like air resistance, rolling resistance, and drivetrain loss—to predict climbing times based on a rider’s power-to-weight ratio. Additionally, the "Pace Optimizer" uses a numerical design methodology from a 2025 Sports Engineering research paper to calculate optimal pacing strategies for individual time trials. The application also includes a "Training Planner" that generates periodized schedules backward from a target race date, ensuring athletes reach peak form for their events.

↗ Read original source