All member projects

Website · Built by members

FitSquad Garmin Sync

A technical write-up of how FitSquad pulls Garmin activity data into Supabase, including a per-second time series for each activity.

Conceptual illustration: A technical write-up of how FitSquad pulls Garmin activity data into Supabase, including a per-second time series for each activity.
AI-generated editorial illustration, not a product screenshot.

What it is

FitSquad Garmin Sync is a public write-up of the pipeline that moves Garmin Connect activity data into FitSquad, a fitness app. It explains the architecture and the data in enough detail for someone to build the same thing.

A Python FastAPI service on Railway uses the unofficial garminconnect library to fetch activities, normalise them and write them to Supabase. The Next.js front end starts a sync on request or every six hours on a schedule.

What it does

  • Fetches activity summaries and per-second metrics such as heart rate, speed, power, cadence and elevation.
  • Samples each activity down to at most 2,000 points for storage.
  • Lists which Garmin metrics are available and which are not, such as GPS tracks and lap splits.
  • Stores Garmin credentials encrypted with AES-256-GCM.
  • Backfills time series for activities synced earlier.

Built with

  • Python
  • FastAPI
  • Railway
  • Next.js
  • Vercel
  • Supabase
  • PostgreSQL
  • garminconnect
  • Playwright
  • health & lifestyle

More from the community

App

Gather

by Nigel

A coordination app for family gatherings and multi-day events. It works out who brings what, invites each guest and follows up on replies. There is a demo to try.

App

Meal Planner NZ

by Nathan

A week of dinners planned around the time you have each night, with one shopping list for the supermarket.

App

Ring for Me

by Ming

An AI assistant that phones businesses for you to check availability and make bookings, with transcripts and a spending cap.

Back to all member projects