Skip to main content

Built a nutrition app on the Strava API that adjusts daily macro targets based on relative effort

  • May 19, 2026
  • 2 replies
  • 35 views

Forum|alt.badge.img+1

Been working on a project for a while that I think might be interesting to people here from a technical standpoint.

The core idea is simple. Strava's relative effort metric is a really underused data point. Most apps just display it. I wanted to use it as the input for something more actionable, specifically adjusting daily nutrition targets based on what you actually did rather than a static guess.

So I built Velorific. It connects to Strava via the API, pulls the relative effort score after each activity, buckets the session into easy, moderate, hard or very hard using thresholds calibrated against real ride data, then sets macro targets accordingly. Carbohydrate targets follow the Burke et al ranges from the Journal of Sports Science. Protein sits at 1.6 to 1.8g per kg. The day after a very hard session the deficit gets waived entirely based on the IOC RED-S consensus guidelines.

From a technical perspective the most interesting challenge was calibrating the relative effort thresholds in a way that held up across different rider types, fitness levels and activity types. Happy to go into detail on that if anyone is curious.

The Strava webhook integration means targets update the moment a ride finishes which was important for the use case. Nobody wants to manually trigger a sync after every session.

App is live on iOS now. Would be genuinely interested in feedback from other developers who have built on the Strava API, particularly around relative effort and how others have approached using it as a meaningful signal rather than just a display metric.

2 replies

Jan_Mantau
Superuser
Forum|alt.badge.img+27
  • Superuser
  • May 19, 2026

Wouldn’t be the calories Strava returns an easier way to calculate nutrition adaptions?


Forum|alt.badge.img+1
  • Author
  • Hub Rookie
  • May 19, 2026

Yes, that is actually exactly what it does! Strava returns the calorie burn and relative effort for every activity and Velorific uses that to adjust your macro targets for the day automatically. So it is not a manual calculation at all, it just happens the moment your ride or run syncs.

The difference from something like MyFitnessPal is that MFP gives you the same static macro targets every single day regardless of what you did. So on a day where Strava says you burned 1,400 calories on a hard ride your carb target is identical to a rest day. Which makes no sense at all when you think about it.

When I started using the actual Strava data to drive my targets I realised I was massively under-fuelling carbs on my hard days. Like not even close to what I actually needed. Fixed that and the difference in how I felt and performed was significant. Stronger sessions, better recovery, could actually string good weeks together consistently.

That is the whole idea behind it really. The data is already there in Strava. Velorific just puts it to work. Thanks for the comment!