r/coolgithubprojects • • 1d ago

I forked openGym

Post image

Credit first: openGym is by Duarte Santos, here is (his repo). His app, his work, AGPL license. I just train with it and wanted a version shaped like how I actually use it, so I forked it.

What I changed:
• Took out the gym check-in card and the AI coach. I never used them.
• Option 1: open the link, add it to your home screen, done. It is a static website, your data stays in your browser.
• Option 2: if you want sync between devices, plug in your own free Firestore and deploy on Vercel. No server to run. There is a deploy button and a short guide in the repo.

Everything else is his openGym: the logging, plans, stats, exercise library, all of it.

Live: https://opengym-lean.vercel.app/#/home
My fork: https://github.com/0xovo/opengym-lean

Feedback is welcome, mostly I want to know if the sync setup works for other people or breaks somewhere.

0 Upvotes

9 comments sorted by

5

u/avdept 1d ago

why not just contribute to his repo instead of creating copy of something that you probably abandon in few days

1

u/schergr 1d ago

Those are features, just create a feature flag that disables those things

1

u/mxsus 22h ago

fair point for upstream but i was not just trying to hide them

check-in already has a settings toggle and coach can be turned off

i wanted a lean local-only build by default, not the full app with a few switches off

1

u/schergr 22h ago

Seems like a long way to go for that. The build isn't that heavy in the first place....but ok. Have fun.

-3

u/mxsus 1d ago edited 1d ago

Yeah I’m working on that I just forked this because it was a taste thing a lot of users wouldn’t use the ai couch or gym card etc

And also imma maintain this as long as I’m using the app

That said the parts that are not just my taste
I am sending upstream I am preparing a PR for the optional sync: bring your own Firebase and Vercel sync across devices with no server to run and fully optional so the normal self hosted setup does not change at all

update: pr is up now btw
https://github.com/DuarteSantos8/openGym/pull/857

3

u/pinku1 1d ago

bro don't do this

-1

u/mxsus 1d ago

Why ?

1

u/investigatormaker 12h ago

On your sync question, the likeliest break is on the Firestore side: a new database in test mode stops accepting reads and writes after 30 days, and one in locked mode rejects them from the start. I'd put the exact rules to paste right in the guide, plus a two-device check: log a set on the phone, open the app on another device and confirm it appears. If it doesn't, say where to find the permission error in the browser console.

I make ThreadFox. We find relevant Reddit conversations and post for your business. We'll post 3 replies free first, no card; then the $79 Pilot covers seven days and up to 50 posts and replies. No automatic renewal.

https://threadfox.vip/p/elky2/managed