SparkyFitness: Built for Families. Powered by AI. Track food, fitness, water, and health — together. https://codewithcj.github.io/SparkyFitness/
  • TypeScript 94.4%
  • PLpgSQL 3.7%
  • Python 0.9%
  • Go Template 0.4%
  • JavaScript 0.2%
  • Other 0.3%
Find a file
CodeWithCJ 239179b691
Merge pull request #1369 from CodeWithCJ/dev
fix for MCP Server double-scales logged food nutrients in the diary
2026-05-28 17:42:09 -04:00
.github ci: add typecheck to mobile ci 2026-05-27 11:17:16 -05:00
.husky adjusted percent Slider to adjust to the Numbers 2026-05-26 13:05:15 +02:00
docker feat: add patch file copying and filter installation for Dockerfiles 2026-05-27 20:02:31 -05:00
docs docs(#1349): move 'Build from Source' to dedicated install guide 2026-05-28 18:12:07 +02:00
helm fix(helm): AND nsSel + podSel in externalDatabase NetworkPolicy peer 2026-05-08 14:15:58 +02:00
patches fix(mobile): patch react-native-health-connect for correct aggregate records 2026-05-26 00:39:07 -05:00
shared feat(mobile): equivalent serving sizes 2026-05-25 01:58:15 -05:00
SparkyFitnessFrontend fix for MCP Server double-scales logged food nutrients in the diary 2026-05-28 17:37:19 -04:00
SparkyFitnessGarmin fix(1218): garmin steps not syncing 2026-05-06 07:20:22 +02:00
SparkyFitnessMCP fix for MCP Server double-scales logged food nutrients in the diary 2026-05-28 17:37:19 -04:00
SparkyFitnessMobile Merge pull request #1368 from apedley/mobile-record-ios-distance 2026-05-28 15:32:27 -04:00
SparkyFitnessServer fix for MCP Server double-scales logged food nutrients in the diary 2026-05-28 17:37:19 -04:00
.dockerignore build: fix eslint errors 2026-04-11 08:23:45 +02:00
.gitignore fix: address all reviewer feedback 2026-05-09 21:04:45 +02:00
AGENTS.md Implementation of MCP server and related docker file updates 2026-05-15 15:50:27 -04:00
CLAUDE.md Add Jest testing infrastructure to enable test execution 2026-01-25 11:15:26 +00:00
CONTRIBUTING.md docs: update contribution documenation and add workflow for checkbox validation 2026-04-05 14:54:42 +02:00
DB Backup.cmd Fix for Steps showing from previous days instead of current day 2025-10-23 10:44:20 -04:00
db_backup.sh Mobile app sync for sleep sessions 2025-12-26 18:33:23 -05:00
db_schema_backup.sql feat: add "Show Net Carbs" preference toggle 2026-05-20 09:47:59 -05:00
dev-start.bat dev docker files 2026-02-02 21:34:08 -05:00
LICENSE WIP Meal & Meal Plan Features 2025-07-12 13:41:35 -04:00
package.json chore: update expo to v55 2026-05-26 07:37:10 -05:00
pnpm-lock.yaml feat: add workspace shared dependency to package.json and pnpm-lock.yaml 2026-05-27 20:10:57 -05:00
pnpm-workspace.yaml chore: update expo to v55 2026-05-26 07:37:10 -05:00
README.md docs(#1349): move 'Build from Source' to dedicated install guide 2026-05-28 18:12:07 +02:00
start_garmin_microservice.bat Updated withing to save json as mockup files. renamed few other variables used by developers 2026-02-09 18:32:39 -05:00

SparkyFitness

A self-hosted, privacy-first alternative to MyFitnessPal. Track nutrition, exercise, body metrics, and health data while keeping full control of your data.

Screenshot

SparkyFitness is a self-hosted fitness tracking platform made up of:

  • A backend server (API + data storage)
  • A web-based frontend
  • Native mobile apps for iOS and Android

It stores and manages health data on infrastructure you control, without relying on third party services.

Core Features

  • Nutrition, exercise, hydration, sleep, fasting, mood and body measurement tracking
  • Goal setting and daily check-ins
  • Interactive charts and long-term reports
  • Multiple user profiles and family access
  • Light and dark themes
  • OIDC, TOTP, Passkey, MFA etc.

Health & Device Integrations

SparkyFitness can sync data from multiple health and fitness platforms:

  • Apple Health (iOS)
  • Google Health Connect (Android)
  • Fitbit
  • Garmin Connect
  • Withings
  • Polar Flow (partially tested)
  • Hevy (not tested)
  • OpenFoodFacts
  • USDA
  • Fatsecret
  • Nutritioninx
  • Mealie
  • Tandoor
  • Strava (partially tested)

Integrations automatically sync activity data such as steps, workouts, and sleep, along with health metrics like weight and body measurements, to your SparkyFitness server.

Optional AI Features (Beta)

SparkyAI provides a conversational interface for logging data and reviewing progress.

  • Log food, exercise, body stats, and steps via chat
  • Upload food images for automatic meal logging
  • Retains conversation history for follow ups

Note: AI features are currently in beta.

Quick Start (Server)

Get a SparkyFitness server running in minutes using Docker Compose.

# 1. Create a new folder
mkdir sparkyfitness && cd sparkyfitness

# 2. Download Docker files only
curl -L -o docker-compose.yml https://github.com/CodeWithCJ/SparkyFitness/releases/latest/download/docker-compose.prod.yml
curl -L -o .env https://github.com/CodeWithCJ/SparkyFitness/releases/latest/download/default.env.example

# 3. (Optional) Edit .env to customize database credentials, ports, etc.

# 4. Start the app
docker compose pull && docker compose up -d

# Access application at http://localhost:8080

🎥 Video Tutorial

Watch the video

Quick 2-minute tutorial showing how to install SparkyFitness (self-hosted fitness tracker).

Documentation

For full installation guides, configuration options, and development docs, please visit our Documentation Site.

Need Help?

  • Post in Github issues/discussion.
  • For faster response and get help from other community memebers Join our Discord

Star History

Star History Chart

Translations

Weblate Translations

Translation status

Repository activity

Alt

Contributors

⚠️ Known Issues / Beta Features ⚠️

SparkyFitness is under active development. Breaking changes may occur between releases.

  • Auto-updating containers is not recommended
  • Always review release notes before upgrading

The following features are currently in beta and may not have been thoroughly tested. Expect potential bugs or incomplete functionality:

  • AI Chatbot
  • Family & Friends access
  • API documentation