SparkyFitness: Built for Families. Powered by AI. Track food, fitness, water, and health — together. https://codewithcj.github.io/SparkyFitness/
  • TypeScript 94.9%
  • PLpgSQL 3.5%
  • Python 0.6%
  • Go Template 0.3%
  • JavaScript 0.2%
  • Other 0.2%
Find a file
CodeWithCJ 86675252f2
Merge pull request #1806 from jsandai/feature/mobile-meals-in-search-landing
feat(mobile): include recent and frequent meals in the food search landing
2026-07-13 21:52:34 -04:00
.claude/skills/new-migration agent improvements 2026-07-08 16:33:56 -04:00
.gemini agent improvements 2026-07-08 16:33:56 -04:00
.github ci: publish documentation on release instead of push to main 2026-07-13 17:43:46 -04:00
.husky adjusted percent Slider to adjust to the Numbers 2026-05-26 13:05:15 +02:00
agent-docs docs: update agent docs 2026-07-08 19:09:05 -05:00
docker removed unnessary override of nginx variables as they are already defined in previous steps 2026-07-06 09:03:43 -04:00
docs docs: document English-only keyword classifier limitation and LLM fallback 2026-07-13 11:51:39 -04:00
helm reverted port back to 80 and fixed the non-root issue using chmod on multiple nginx folders 2026-07-05 22:53:56 -04:00
nix chore(nix): update pnpm deps hashes 2026-07-13 16:32:45 +00:00
patches chore: live activity 2026-07-13 02:00:31 -05:00
shared Merge pull request #1812 from apedley/workouts-v2-improvements 2026-07-13 12:31:06 -04:00
SparkyFitnessFrontend Merge pull request #1811 from joeledwardson/fix/food-search-resets-page 2026-07-13 12:21:52 -04:00
SparkyFitnessGarmin fix(garmin): pass token string to garmin.login(), not a parsed dict 2026-06-23 07:43:00 -05:00
SparkyFitnessMobile Merge pull request #1806 from jsandai/feature/mobile-meals-in-search-landing 2026-07-13 21:52:34 -04:00
SparkyFitnessServer Merge pull request #1812 from apedley/workouts-v2-improvements 2026-07-13 12:31:06 -04:00
.dockerignore Show empty input when serving size is cleared 2026-06-02 21:46:09 +02:00
.gitignore NixOS module 2026-06-22 01:56:30 +00:00
AGENTS.md chore: live activity 2026-07-13 02:00:31 -05: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 feature: Added Global Food & Exercise data provider. 2026-06-20 18:05:48 -04:00
db_schema_backup.sql fix(food): preserve YAZIO serving variants 2026-07-12 17:50:00 +02:00
dev-start.bat dev docker files 2026-02-02 21:34:08 -05:00
flake.lock NixOS module 2026-06-22 01:56:30 +00:00
flake.nix NixOS module 2026-06-22 01:56:30 +00:00
LICENSE WIP Meal & Meal Plan Features 2025-07-12 13:41:35 -04:00
package.json feedback & cleanup 2026-07-07 21:07:29 -04:00
pnpm-lock.yaml chore: live activity 2026-07-13 02:00:31 -05:00
pnpm-workspace.yaml chore: live activity 2026-07-13 02:00:31 -05:00
README.md Revise cloud deployment section in README 2026-07-12 12:07:37 -04: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. image

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)
  • Google Health API
  • Fitbit
  • Garmin Connect
  • Withings
  • Polar Flow
  • Hevy (not tested)
  • OpenFoodFacts
  • USDA
  • Fatsecret
  • Nutritioninx
  • Mealie
  • Tandoor
  • Strava (partially tested)
  • Norish
  • Yazio (uses unofficial API)
  • Swiss Food Database
  • Free Exercise DB (Github)
  • Wger

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.

Installation

Choose one of the two ways to run SparkyFitness:

1. Self-Hosted

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

Note: For other self-hosted installation methods, refer to the documentation at https://codewithcj.github.io/SparkyFitness/.

2. Cloud (for non-technical users)

If you are not a technical user and prefer not to run SparkyFitness on your own server, you can deploy a hosted instance in the cloud using one of the following providers.

Run on PikaPods
Deploy with Zenith

Note: These are independent third-party services. We encourage you to explore features provided by each provider to determine the one that best fits your needs.

🎥 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