The app is now KuentaGYM everywhere a user can see it, and a fresh profile no
longer starts on upstream's English/kg defaults. Both are this fork's decisions,
so both are pinned by tests rather than left to a find-and-replace.
Rename (1,270 references, 149 files)
- Visible surfaces: the Login/Home/mobile-onboarding wordmark, the Settings
version line, the printed plan, the PWA title + manifest, and the 17 branded
strings across all 14 locale packs.
- Infrastructure: repo links, the container images and the release endpoints now
name git.dploy.lol/dsantillan/kuentagym; .gitea/workflows/docker-publish.yml
publishes to this forge's registry instead of gitea.com.
- The Android/iOS application id stays ch.duartesantos.opengym on purpose:
changing it would make the mobile app a different app that could never update
an installed copy.
Three things the mechanical pass would have broken, fixed here
- The update check asked gitlab.com for upstream's releases and would have
installed upstream's APK, putting the old name back on the phone. It now reads
this fork's Gitea releases API (the assets shape differs), with the tests
rewritten to the payload Gitea actually returns.
- Renaming the mobile state/pairing files (opengym-state.json,
opengym-remote.json) would lose the on-device copy of a history whose WebView
storage may have been evicted, and silently unpair the device. Both are read
under their old names and written forward under the new ones.
- Renaming the exported plan-file marker (openGym_plan) rejected every plan
shared before the rename as "not a plan file". Both markers are accepted.
Defaults: pounds and Spanish
- DEF.unit = 'lb', DEF.lang = 'es', plus every fallback that independently
assumed en/kg (the <html lang> attribute, the Settings pickers, the Store, the
MCP, the Coach payload).
- Server-generated push copy existed only in English and pt-BR, so a Spanish
profile would have been notified in English; Spanish added.
- The demo seed states unit: 'kg' — its seeded numbers are kilograms, and
inheriting the new default would have introduced an 82.4 lb lifter benching 60.
- The module-level language in i18n-core stays English: it is the only language
whose strings need no pack, so `t()`, dates, numbers and lists agree before a
pack loads. Starting there on 'es' formats a Spanish-shaped UI with English
strings.
Also
- api/package.json's test glob missed push-messages.test.js and
verify-error.test.js, which sat beside the modules they cover and never ran.
- README, docs/, website/ and the issue templates no longer describe upstream's
GitLab/GitHub pipeline, Discord, sponsorship or public demo as if they were
this fork's; upstream history and attribution are preserved (NOTICE.md).
A push to main or a v* tag on GitHub is forwarded to gitlab.com by a workflow, fast-forward
only, main before the tags so the tag pipeline finds its commit on main. Pull mirroring on
gitlab.com is paid, so the push runs from this side; it needs a project token with the single
scope write_repository (Maintainer role, for the protected main and v*) as the secret
GITLAB_MIRROR_TOKEN, handed to git through a credential helper rather than a URL.
README, CONTRIBUTING, MOBILE and the changelog now say what the site says: issues and pull
requests on GitHub, the GitLab mirror only for the CI that builds the release artefacts, the
merge requests still open there reviewed until they are through.
The README, CONTRIBUTING, MOBILE and SELF_HOSTING pages said the GitHub repo was offline and
GitLab was the only home. The account is back: GitHub gets the tags, the releases v1.2.9 to
v1.3.5 with APK and checksum, the GHCR images and the Pages demo; GitLab keeps its CI, issues
and merge requests. Links now name both, the pages.yml comment no longer calls itself dormant.
build:apk was a manual job on main since it cost ~8 shared-runner minutes; the project runner
on the VM pays for it now, so every main push produces the APK (same key as the release,
artifact at /-/jobs/artifacts/main/browse?job=build:apk) and a broken Android build is caught
before the tag. Merge requests keep the manual button.
build:ios: mobile bundle + xcodebuild archive without a signing identity → unsigned .ipa
(AltStore/Sideloadly), tag builds also into the generic package registry opengym-ios/<ver>/.
Only exists once IOS_RUNNER_TAG names a registered Mac runner; untested until then.
Was die Pipeline neu kann:
- release:preflight prueft auf einem v*-Tag, dass frontend/api-package.json und CHANGELOG
zum Tag passen und der Commit auf main liegt - bevor 40 Minuten Build anlaufen.
- test:* liefern JUnit (Fehler stehen im MR-Widget) und Coverage (Badge + Diff-Annotation);
test:frontend misst das Bundle und zeigt im MR die Differenz zu main.
- verify:stack startet die gerade gepushten Images ueber die echte docker-compose.yml und
fragt sie durch nginx ab; verify:scan (Trivy) scannt beide Images und legt je ein
CycloneDX-SBOM ab, das der Release verlinkt.
- Der Release nennt Digests, Pull-Befehl und APK-SHA-256.
- mr:fork-pipelines startet die Pipelines von Fork-MRs bekannter Contributor hier im
Projekt (Fork-Pipelines laufen sonst im Fork ohne Runner); Erstkontakte bekommen das
Label ci-approval-needed. Braucht PIPELINE_API_TOKEN und den Zeitplan SCHEDULE_JOB=fork-mrs.
Korrekturen:
- web/Dockerfile: npm ci --ignore-scripts statt "npm ci || npm install" - der
sharp/libvips-Download hatte v1.3.1 rot gemacht, und der Fallback ignorierte das Lockfile.
- interruptible + Retry bei Runner-Fehlern fuer alle Jobs, Timeouts pro Job,
release-cli gepinnt, Docker-/Rules-Vorlagen statt Copy-Paste.
- Zeitplaene unterscheiden sich per SCHEDULE_JOB, damit Renovate und der MR-Starter sich
nicht gegenseitig ausloesen.
Der Server war nur auf der Website verlinkt - im Repo selbst nirgends, obwohl
dort inzwischen das meiste passiert. Jetzt: Badge und eigener Punkt im
Community-Abschnitt der README, erste Zeile der Tabelle in CONTRIBUTING, und ein
Hinweis in der Frage-Vorlage.
Mit der Trennung, die der Sache entspricht: Discord fuer die schnelle Frage,
Issue fuer alles, was der Naechste ueber die Suche finden koennen soll - und
Exploits gehoeren in keines von beiden, sondern in ein vertrauliches Issue.
Statischer Badge, kein Live-Zaehler: das Server-Widget ist aus, shields.io wuerde
sonst "widget disabled" anzeigen.
gitea.com hat keinen Actions-Runner, also gab es dort seit dem Umzug weder
Container-Images noch einen gebauten APK noch gruene Tests auf Merge Requests.
GitLab kann alles vier, also zieht das Projekt dorthin um.
.gitlab-ci.yml deckt die komplette Kette ab:
- test: Frontend-Suite (346 Tests), Locale-Checks, Fatigue-Probe, MCP-Suite
- build: api- und web-Image nach registry.gitlab.com/duartesantos8/opengym/*,
auf v*-Tags amd64+arm64 mit latest/X.Y/X.Y.Z, sonst amd64 als edge
- package: signierter APK (zipalign + apksigner) plus Upload in die Generic
Package Registry; der Key liegt in geschuetzten CI-Variablen und existiert
damit nur auf main und v*-Tags
- deploy: der Browser-Demo-Build auf GitLab Pages
- release: GitLab-Release mit dem passenden CHANGELOG-Abschnitt und Links auf
APK und Images
GitHub konnte "Tag gepusht" von "Release veroeffentlicht" unterscheiden und hat
Images nur aus letzterem gebaut (Issue #87). GitLab kann das nicht - dort ist die
Tag-Pipeline das, was das Release anlegt. Die Regel steht deshalb als Kommentar
im CI-File, und v*-Tags sind geschuetzt.
Ausserdem: Issue-/MR-Vorlagen unter .gitlab/, und saemtliche Repo-Links in
README, Docs, App, Dockerfile-Labels, docker-compose und Website zeigen auf
GitLab. site.js liest Sterne und Releases jetzt aus der GitLab-API (andere
Feldnamen, deshalb neue sessionStorage-Keys). SECURITY.md hat wieder einen
privaten Meldeweg: ein vertrauliches Issue.
.github/ und .gitea/ bleiben liegen - Spiegel bzw. fuer den Tag, an dem das
GitHub-Konto zurueckkommt.
Das GitHub-Repo ist mit dem gesperrten Account weg, mit ihm die GHCR-Images, die
Pages-Demo und die Discussions. Alles, was jemand zum Selbsthosten anklickt, zeigte
aber weiter dorthin.
- docker-compose zieht jetzt gitea.com/duartesantos/opengym-{api,web}; die
Dockerfile-Labels (source/url/documentation) ebenso
- README, SECURITY, CONTRIBUTING und docs/SELF_HOSTING zeigen auf gitea.com.
Discussions gibt es dort nicht: Fragen und Ideen laufen als gelabelte Issues,
Security-Meldungen ueber eine Issue-Anfrage nach einem privaten Kanal statt
ueber GitHubs Advisories
- Badges auf die Gitea-Shields umgestellt, die tote Pages-Demo aus dem Kopf
genommen (die APK bleibt der Weg zum Ausprobieren)
- .gitea/workflows: Tests und Docker-Publish, weiter mit Release- statt
Tag-Trigger. Kein type=gha-Cache, den gibt es auf den Gitea-Runnern nicht;
der Push braucht ein Repo-Secret PACKAGES_TOKEN mit write:package
- .gitea/ISSUE_TEMPLATE mit denselben Formularen wie auf GitHub
- .github/* bleibt unangetastet, falls der Account zurueckkommt
Die alten Issue-/PR-Nummern im CHANGELOG bleiben als reiner Text stehen - sie
zeigen auf ein totes Repo und passen nicht auf die Nummerierung hier.
MCP: read-only stdio server for LLM apps to query workout history
Ein Node-Prozess, den der LLM-Client selbst startet und der dieselben reinen
Helfer aus frontend/src/lib benutzt wie die Stats-Seite — also stehen dort
dieselben Zahlen. Read-only, kein Container, kein zusaetzliches Auth, nichts
verlaesst die Box. Wer keinen KI-Client benutzt, merkt nichts davon.
· entryView was passing `e.target || { id: e.id }` to modeOf, which
doesn't put id on the target when target exists — so a cardio config
saved as {sets, min, speed} (no mode, no id) fell through to 'reps'
and the label came back as "0×0". Now uses the same pattern every
app call site uses (Workout.jsx, Stats.jsx, progression.js):
modeOf({ ...(e.target || {}), id: e.id }). Same fix applied to the
setLabel call right below. Added a regression test using a real
cardio exercise id with a target that has no mode key — would have
caught the original bug.
· requireIso/ISO/fmt/friendlyDate/MUSCLES were unused (zod regexes
cover ISO validation at the SDK layer). Removed, along with the
misplaced comment that described requireIso but sat above entryView.
· estimate_1rm's exercise_id schema description referenced
search_exercises (v1.5) which doesn't exist yet — an LLM reading
the schema would try to call it. Dropped the reference; the
Roadmap section in mcp/README.md drops the same mention.
· resolveUid threw "set OPENGYM_UID to one of: " (empty list) when
there were zero state files but multiple users in db.json — the
files array was empty so files.join(', ') rendered nothing. Now
falls back to the db.json user ids in that branch.
· Dropped Stryker entirely. The MCP SDK's 93 transitive runtime
packages are tolerable since mcp/ is opt-in and never enters
Docker, but a second test toolchain for a 39% mutation score
wasn't carrying its weight next to the plain vitest suite.
Removed .stryker.conf.json, the two Stryker devDeps, the
mutation:test script, the .gitignore entries, and the README
section. mcp/ now has a single devDep (vitest); 0 vulnerabilities
(was 2 moderate).
· CONTRIBUTING.md layout block + a one-line cross-reference in
README.md's Tech section pointing at mcp/README.md, so people can
actually find it.
92 frontend + 33 MCP tests pass.
openGym ships passkeys, a signed session cookie and an admin dashboard, and
people run it on the open internet. Until now someone finding a hole had no
option but a public issue.
SECURITY.md documents the model as it actually is, verified against server.js
rather than described from memory: what the session cookie is and how long it
lasts, that it cannot be revoked individually, that ./data is unencrypted and
its holder can mint a session for any account, that there is no rate limiting,
and what changing RP_ID costs. A self-hoster deciding whether to run this for
other people deserves that list up front.
Dependabot is monthly and grouped one PR per ecosystem — a default setup on a
solo project produces noise that stops being read, which is the opposite of the
point. Android/iOS are left out on purpose: Capacitor pins those to the npm
packages, so bumping them separately breaks the mobile build.
Also: api/ has had two dependencies since notifications landed. CONTRIBUTING
still claimed one.
Discussions has been enabled since the start and empty since the start, so
every question arrives as an issue — the tracker is carrying design debates and
"how do I" alongside actual bugs, and the answers end up buried in closed
issues where the next person searching won't find them.
The "New issue" screen now offers Q&A, Ideas and Show-and-tell before the
templates, which is where that traffic gets intercepted; README and CONTRIBUTING
say the same thing in a table.
FUNDING.yml does nothing until the account is enrolled in GitHub Sponsors —
GitHub simply doesn't render the button. Stated plainly next to it: openGym is
AGPL, there is no paid tier and nothing is held back for sponsors. A project
that starts selling access to its maintainer stops being the thing people
starred.
v1.2.2 was tagged but never published, so by the versioning rule everything since the last
published release — v1.2.1 — belongs in this one number: the mobile app, the importer, plan
sharing, the QA fix series, and now timed sets, progression rules and estimated 1RM.
The changelog was missing plan sharing and the fix series entirely; both are written up
here rather than left to the git log.
A second flavor of openGym (VITE_MOBILE=1) that runs entirely on the
phone: no account, no server, no sync. State is mirrored into a file in
the app's private storage (survives WebView storage eviction), the
workout-day reminder is a native local notification scheduled on planned
weekdays, and backups export through the OS share sheet. Exercise media
loads from the same CDN as the demo build. npm run build:mobile, then
Android Studio / Xcode — see docs/MOBILE.md. NOTICE.md gains an AGPL §7
app-store exception.
Ersetzt die 1900-Zeilen-Vanilla-SPA durch eine strukturierte React-App:
- frontend/src: views/ (9 Views), components/ (Modals, LineChart, Heatmap,
TabBar, Media, Stepper, RestTimer, Toast), store/ (Zustand: State+Sync,
UI), lib/ (format, history, exercises, api/WebAuthn, sound, nav)
- React Router (Hash), Zustand-Store mit localStorage + Server-Sync
- Reaktives DOM-Diffing löst das manuelle Re-Render-Ruckeln (GIF läuft beim
Set-Abhaken flüssig weiter)
Self-Hosting bleibt ein Befehl: web/ ist jetzt ein Multi-Stage-Dockerfile,
das das Frontend IM Container baut und mit nginx ausliefert — keine lokale
Node/Build-Kette nötig. Übungsmedien nach ./media ausgelagert.
Voller Ablauf im Headless-Browser getestet (Login→Plan→Workout→Stats→
Library→Settings, Feature-Parität) und Standalone-Compose Ende-zu-Ende
(React-Build im Docker, /api-Proxy, geforgter Passkey-Login) verifiziert.
Rebranding GymLog → openGym. Ein-Befehl-Self-Hosting via Docker Compose:
web (nginx serviert App + Proxy /api → api, ein Origin für Passkeys), api
(Node/WebAuthn), media-Service lädt Übungs-GIFs beim ersten Start automatisch.
Passkey-Domain über .env konfigurierbar (RP_ID/ORIGIN/WEB_PORT/RP_NAME),
Secure-Cookie nur bei HTTPS (http://localhost funktioniert). MIT-Lizenz,
README fürs Self-Hosting, docs/SELF_HOSTING.md, CONTRIBUTING.md.
Standalone-Stack Ende-zu-Ende getestet (Passkey-Register/-Login, Daten-Sync,
User-Isolation über den Proxy auf http://localhost).