Musclog

AI-powered fitness & nutrition tracking — free & open source.

Smart workout tracking
AI photo nutrition logging
Detailed progress charts
100% private & on-device
Try it live
AndroidiOSWeb
Download the AppScan to download for Android

From the workshop

Musclog Blog

Notes on building a private, open-source fitness app — from product decisions to the technology behind it.

Engineering

One workout screen, two views, and 1,662 lines I got to delete

The live workout screen in Musclog had grown into a single 1,662-line file. Rebuilding it as two views (one set at a time, or the whole workout as a table) over one shared controller fixed bugs I did not know I had, starting with the second exercise calling its first set "Set 4".

MusclogReact NativeExpoTypeScriptRefactoringUX
Read article
Engineering

My workout app now explains every number it changes

Progressive overload that silently rewrites your weights is a bug you can't see. Here is how Musclog turned every automatic change into data with a reason attached, and the three coaching bugs the explanations helped me find before release.

MusclogReact NativeTypeScriptProgressive OverloadFitnessUX
Read article
Engineering

Greedy plate math is wrong the moment your gym runs out of plates

Putting the heaviest plate that fits on the bar works until your gym only owns one pair of each. Musclog now models your gym and solves plate loading as a small bounded knapsack, so the weights it suggests are weights you can actually load.

MusclogTypeScriptAlgorithmsFitnessDynamic Programming
Read article
Product updates

I rebuilt my workout notifications to work with no server

Musclog has no backend, so every reminder has to be planned on your phone. Here is the new notification system: a rest alert that actually arrives, reminders that skip days you already trained, quiet hours, and why nothing repeats on its own.

MusclogNotificationsReact NativePrivacyFitnessUX
Read article
Product updates

Existing users never see onboarding, so I built a mini one

Musclog 2.13 adds settings that change how a workout feels, and nobody who already has the app would ever find them. So I built a "what's new" tour that is just JSON per release, with real controls on the pages, and a lot of rules about when it is allowed to appear.

MusclogReact NativeExpoOnboardingUXTypeScript
Read article
Product updates

I rebuilt cycle tracking around the days you actually log

Musclog’s cycle-tracking update adds a flexible daily diary, editable history, transparent predictions, personal patterns, reminders that explain themselves, privacy controls and portable backups. Here is what changed, what a second review caught, and why a failed save belongs in that story too.

MusclogCycle TrackingPrivacyNotificationsUXReact NativeWatermelonDB
Read article
Engineering

I lost my app icon, so now a script draws six of them

I made the Musclog icon once, by hand, and kept nothing. When the app grew six themes I rebuilt it as three layers and a script, then made the launcher icon follow the theme on Android and iOS without breaking deep links.

MusclogReact NativeExpoAndroidiOSsharpApp IconsDesign
Read article
Engineering

Adding light mode exposed my fake theme system

Musclog already had a theme file. Then I added five selectable palettes and discovered that colors, NativeWind variables, system mode, camera overlays, and component decisions were all separate systems pretending to be one.

MusclogReact NativeExpoNativeWindTypeScriptDesign Systems
Read article
Engineering

My camera took 25 seconds to take a photo

A shutter stall that only existed in release builds, survived eight versions and four wrong root causes, and turned out to be one background thread shared by every Expo module in the app.

MusclogReact NativeExpoAndroidCameraXKotlinPerformanceDebugging
Read article
Retro

Breaking my data out of a Game Boy cartridge

I logged a few weeks of food on a 1998 cartridge and then realised it was stuck in there for life. So the Game Boy now beams its save into my phone as a stream of fountain-coded QR codes — no cable, no network, no handshake.

Game BoyGBDKCQR CodesRetroHomebrewOptical Transfer
Read article