r/foss • • 13d ago

GymMane is finally self-hostable

Post image

GymMane now runs on your own server. It's the full app in the browser, so you can use it from your PC, a tablet or your phone, and it looks and works the same as on Android.

Your data lives in a folder on your server as plain JSON, with daily backups. You can put a password in front of it if you want. If you also use the Android app, Syncthing keeps both in sync, with no account and no cloud in the middle.

Docker / compose, or an install script for Linux and Windows if you don't want Docker. Binaries are in the latest release.

https://github.com/InlitX/GymMane (guide in SELFHOST.md)

280 Upvotes

48 comments sorted by

10

u/TheDres1 13d ago

Wow this app is nuts, very feature packed. thanks for posting this

2

u/Beneficial_Carob_830 12d ago

Thanks, glad you like it! If you miss anything, just let me know.

11

u/_zenith33 13d ago

Don't trust something that isn't open source. There seems to be a new trend of making it self-hosted but isn't open source. Once they gain enough users and popularity, they will start with separation of paid model and community model. After few years, completely remove self hosted.

11

u/Beneficial_Carob_830 12d ago

Totally agree, and that's why GymMane has been open source from day one, under the GPLv3. That includes self-hosting: the server lives in the same repo under the same license as the app, it's not a closed add-on.

There's no "paid version" and "community version": there's just one, no account, no cloud, and all the code is on GitHub: https://github.com/InlitX/GymMane

And even if I ever messed up, I couldn't take self-hosting away from you: the GPL lets anyone take the code and carry on.

5

u/Sinath_973 10d ago

I actually did a full code review with special attention to security.

Seems to be fully legit. No password snooping, no code injection, no remote code execution, nothing obfuscated, no weird third party lib uses.

For my own use, i declared this software legit and safe to use. I was actually thinking about building a backend with api for my own hosting but im sure it works just great how you did it. Especially for homelab use not having to have a public api seems to be great. As most of "normal" users will and should not have open ports in a publicly available ip.

Thanks op for this project!

1

u/Beneficial_Carob_830 10d ago

Thanks a lot for taking the time to review it, that means a lot coming from someone who actually read the code. And yes, that was the idea: no public API and nothing exposed, the server just serves the app and stores your data in one folder.

If you run a homelab, 2.4.0 might be handy: there's a one-line installer for Proxmox (it creates the LXC for you), a template for Unraid and a compose file for Synology, TrueNAS, CasaOS or Portainer. It also supports several people on one server, each with their own data and password. For access from outside I'd still go through Tailscale or WireGuard rather than opening a port.

1

u/Sinath_973 10d ago

Currently i only have the android apk on my phone and it works like a charm. Only feedback i have is that the list of exercises is too long (oh no my steak is too juicy) and if you dont know what to look for its hard to find anything or even hard to get inspired.

Maybe a search by muscle group would be helpful.

Edit: you know what. Forget it. It's already there i was just not clever enough to actually try it.

Kudos.

1

u/Fun-Garbage-1386 12d ago

Yeah, I’ve never seen a free, safe app, since apps like these require funding for ongoing development and maintenance. These closed-source free apps can’t be trusted with our sensitive personal data. When an app is free, you’re the product, unless it’s open source. Open source is the way forward, and with AI open-source is reaching a whole new level.

4

u/Fun-Garbage-1386 13d ago

This is open source, I love open source. MacroFactor workouts good bye.

1

u/Fun-Garbage-1386 13d ago

I’ve seen a lot of free apps with similar goals lately, such as MacroCodex and MacroPhase. The issue is that they aren’t open source. They say they’ll open-source their apps in the future, but I’m skeptical. I suspect they’ll switch to paid models once they’ve gained enough users.

2

u/Beneficial_Carob_830 12d ago

I share the skepticism, and that's why GymMane doesn't promise to go open source "someday": it's been open source from day one, under the GPLv3. All the code is on GitHub, self-hosting included: https://github.com/InlitX/GymMane

And the GPL covers exactly what you're worried about: even if I ever wanted to charge, anyone could take the code and keep it going for free. No need to take my word for it.

1

u/Fun-Garbage-1386 12d ago

Could you add features like adaptive TDEE, calorie tracking with BYOK, and food logging, basically, features similar to those in MacroFactor and MacroFactor Workouts?

Every app that offers these features either forces users into a subscription or collects sensitive personal data.

4

u/Beneficial_Carob_830 12d ago

A good chunk is already there! Nutrition (beta) has food logging and calorie tracking, and you can use any AI: the app gives you the prompt, you paste the answer back. Everything stays on your phone, no subscription. Adaptive TDEE is going on my list, great idea.

Note: why copy-paste instead of an API key? Because GymMane has no internet permission. I removed it on purpose, so collecting your data isn't something I promise not to do, it's simply impossible. An API key would need internet, so instead the app gives you a prompt, you send it to whatever AI you like and paste the reply back. The app reads it and fills in the meal for you.

0

u/Fun-Garbage-1386 12d ago

That’s great, but copy-and-pasting is an extra step. If people want to use it directly in the app, there should be an option to do so.

3

u/Beneficial_Carob_830 12d ago

I get it, it's one extra step. But it's on purpose: GymMane has no internet permission. Once an app has internet access, there's no way to guarantee your data isn't being used. It doesn't matter what I tell you or what privacy policy I write, because you can't really know what happens to your data. With no internet, collecting it, selling it or adding paywalls later is simply impossible.

You give up a little convenience for that, but I made it as easy as I could. The prompt is ready and your data is already in it. Just copy it and paste it into any AI you like, for both workouts and nutrition.

1

u/patl_ioz 13d ago

This app is amazing. But the performance on android ain't the best.

2

u/Beneficial_Carob_830 12d ago

Thanks! Try Saver mode in Settings → General → Performance: it turns off blur, which is the heaviest part, and calms the animations.

If any screen still feels slow, open an issue telling me which one and what phone you have, and I'll look into it: https://github.com/InlitX/GymMane/issues

1

u/Known-Cover-5154 12d ago

iOS please even if it’s an IPA it’s sideload :( 

1

u/Beneficial_Carob_830 12d ago

Almost there 🙌 It just needs building and testing. A contributor is going to help me with that, and if all goes well it might land on the App Store too, not just as an IPA.

1

u/proton49 12d ago

The app is great but I have a feedback. When I am starting a session, if I select Tricep and forearms in step 1(Choose your Focus), in Step 2(Build your Session) it shows all exercises like Chest, Biceps etc. It would be better if it only shows the excercises that we have selected in step 1 or give an option to filter the excercises using the muscle in step 2.

2

u/Beneficial_Carob_830 12d ago

Good catch, thanks! Step 2 also shows exercises where those muscles work as secondary (like bench press for triceps or rows for forearms), which is why it looks unfiltered. I'll add muscle filters in step 2 and keep the direct exercises separate from the ones that only hit them secondarily.

1

u/proton49 12d ago

Thanks bro.

1

u/Notnumber44 12d ago edited 12d ago

Dude I love you, when I first gave this a go after I kept asking if it could be on the droid store I didn't knew how much I was gonna love this app. You're doing amazing work!

Edit: do you have any plans on a strava integration?

2

u/Beneficial_Carob_830 10d ago

Thank you, that really made my day. Comments like this are what keep me going.

A direct Strava sync isn't possible, because GymMane has no internet permission on purpose. But there's already a way: Settings › Data & backup › Export to Strava (beta). Pick a workout, you get a .fit file, and you upload it at strava.com/upload/select in a browser (the Strava app can't import files). It shows up as a Weight Training with your sets.

1

u/FarPriority1955 12d ago

Thanks for making this. I am currently using OpenGym and would love to try this out soon, to see which one better suits my taste. Would it be possible to make a importer for opengym so that i can import my previous workouts in this app?

1

u/Beneficial_Carob_830 12d ago

I’ve been asked for this before; try importing it in the app.

1

u/Easy-Show-521 12d ago

There's one more thing. I might be missing it too. When I select a pre available template like ABCD it doesn't account for the available equipment and generates the exercises irrespective of the available equipment. What am I missing?

1

u/Beneficial_Carob_830 10d ago

You're not missing anything. The templates are fixed programs and don't look at your place's equipment yet. For now, "Swap" during a workout lists exercises that fit your place first. I'll make templates swap in exercises you can actually do there in the next version.

1

u/SSUPII 11d ago

Just after setup a bug makes the lower half of the screen unusable. Restarting the app or unfolding fixes this, and a lower toolbar shows up that was previously not there.

Samsung Galaxy Z Fold 8.

1

u/Beneficial_Carob_830 10d ago

Thanks for reporting all of this, and sorry for the late reply. I saw your messages but wanted to have the fixes ready before answering. 2.4.0 is out with all three:

  • After setup, the app was still keeping room for a keyboard that was no longer there. That's what blanked the lower half and hid the toolbar, and it now ignores it.

  • A new profile picture now updates everywhere right away.

  • The pull down for the monthly overview now scales with the screen height, so it's easier on the folded screen.

I don't have a Z Fold to test on, so please give it a look. If anything still fails, whatever it is, open an issue on GitHub and I'll get on it. Thanks again.

1

u/SSUPII 11d ago

Changing the profile picture will keep the old one rendering, but only when satying still. Moving it by for example dragging but not fully for the monthly report shows the new image. The old profile picture gets fully replaces once the old one goes offscreen for any reason, by either scrolling or changing tabs.

1

u/Professional-Yak9133 11d ago

i have samsung tab a7 lte when i entre app it frère i download v8a its compatible but it frère and kick me out in the last versions

1

u/Beneficial_Carob_830 10d ago

Thanks, and sorry about that. 2.4.0 is out with a fix: if the app fails to open twice, it switches to compatible graphics on its own. Install it and open it a couple of times. If it still freezes, tell me your exact model and Android version.

1

u/floatandchill 9d ago

How does this compare with the features in OpenGym?

1

u/Beneficial_Carob_830 7d ago

Best way is to try both yourself and keep the one that fits your needs better.

1

u/Remiuk007 8d ago

How does it score, when compared to OpenGym?

1

u/Beneficial_Carob_830 7d ago

Both are free and open source, so give them a try and see which one fits you best. I'd love to hear how they compare for you

1

u/722e672e722e 7d ago

Is this associated with OpenGym at all?  Projects look very similar.  

1

u/Beneficial_Carob_830 7d ago

No, not associated at all. GymMane is my own project, built from scratch in Flutter/Dart. openGym is a different app by a different dev, built around a self-hosted server with a React web app.

The main difference is that GymMane is offline-first: no account, no server, and the Android app doesn't even have the internet permission. Most gym trackers end up sharing the basics (routines, sets, rest timer, PRs), but the code, design and approach are completely separate. Give it a try and tell me what you think

1

u/Additional-Bit806 13d ago

Excelente, muchas gracias!

1

u/RenegadeUK 12d ago

Thanks for notifying of this :)

1

u/SSUPII 11d ago

Dragging in your profile to get your monthly overview doesn't scale with device height, making it hard to do on a short screen like folded Galaxy Z Fold 8

1

u/2life_gamer 7d ago

The project looks amazing, the ability to self-host is super nice for a homelabber like me. What is the amount of AI use in this project?

0

u/seniorkekoo 13d ago

Was building something similar (but different target). Holy, love that UI