Rebrand to KuentaGYM, and start a new profile in pounds and Spanish

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).
This commit is contained in:
dsantillan committed 2026-09-21 14:29:54 -04:00
1 parent f91cde15a1
commit 87bfd6d4c4
152 files changed
+1784 -1604

No files matched your search

+24 -17
View File
@@ -1,12 +1,19 @@
# Third-party notices
openGym — Copyright (C) 2026 Duarte Santos.
openGym's own code is licensed under the **GNU AGPL v3.0** (see [LICENSE](LICENSE)).
KuentaGYM is a **modified fork of openGym**. The original work — and the overwhelming majority
of the code in this repository — is Copyright (C) 2026 Duarte Santos
(<https://gitlab.com/DuarteSantos8/opengym>), licensed under the **GNU AGPL v3.0** (see
[LICENSE](LICENSE)). That copyright notice and licence are unchanged and apply to this fork as
well: the modifications made here (the name, the branding, and the deployment targets) are
released under the same AGPL v3.0.
Upstream project: <https://gitlab.com/DuarteSantos8/opengym>
This fork: <https://git.dploy.lol/dsantillan/kuentagym>
## App store exception
As an additional permission under section 7 of the AGPL v3.0, the copyright holder permits
distribution of the openGym mobile application through app store platforms (such as the
distribution of the mobile application through app store platforms (such as the
Apple App Store and Google Play) whose terms of service would otherwise be incompatible
with the AGPL, provided the corresponding source code remains available under the AGPL at
the project repository. This permission applies to the distribution channel only and does
@@ -46,13 +53,13 @@ SOFTWARE.
## Exercise data & media
openGym obtains both through
KuentaGYM obtains both through
[**hasaneyldrm/exercises-dataset**](https://github.com/hasaneyldrm/exercises-dataset), which
licenses them differently. Neither is covered by openGym's AGPL license.
licenses them differently. Neither is covered by KuentaGYM's AGPL license.
That dataset is itself a redistribution: the content originates from
[**ExerciseDB v1**](https://exercisedb.dev/) by **AscendAPI**. This is verifiable from openGym's
own data — the stored media filenames embed ExerciseDB's `exerciseId` (openGym's `0001` is
[**ExerciseDB v1**](https://exercisedb.dev/) by **AscendAPI**. This is verifiable from KuentaGYM's
own data — the stored media filenames embed ExerciseDB's `exerciseId` (KuentaGYM's `0001` is
`0001-2gPfomN.jpg`; `2gPfomN` is ExerciseDB's id for "3/4 sit-up"), every metadata field matches,
and the instruction sentences are identical apart from stripped `Step:N ` prefixes. See
[issue #5](https://github.com/hasaneyldrm/exercises-dataset/issues/5) on that dataset.
@@ -61,9 +68,9 @@ and the instruction sentences are identical apart from stripped `Step:N ` prefix
The exercise names, attributes and instructions (English in `frontend/src/lib/exercises-data.js`,
other languages in `frontend/src/instr/`, regenerated via `scripts/build-instructions.mjs`)
originate from ExerciseDB v1 and reach openGym through the dataset above, which distributes them
originate from ExerciseDB v1 and reach KuentaGYM through the dataset above, which distributes them
under the MIT license reproduced below. The translations into languages other than English are
openGym's own derivative work and are covered by openGym's AGPL.
KuentaGYM's own derivative work and are covered by KuentaGYM's AGPL.
```
MIT License
@@ -92,7 +99,7 @@ SOFTWARE.
### Images & animations — third-party, not MIT and not AGPL
The exercise thumbnails (180×180) and animations are **not** covered by the MIT license above and
**not** by openGym's AGPL. Their ownership is currently **unresolved**, and openGym states this
**not** by KuentaGYM's AGPL. Their ownership is currently **unresolved**, and KuentaGYM states this
plainly rather than guessing:
- The upstream dataset attributes them to **© [Gym visual](https://gymvisual.com/)**, redistributed
@@ -106,14 +113,14 @@ plainly rather than guessing:
These two claims contradict each other. A clarification has been requested from AscendAPI; this
notice will be updated once the provenance is settled.
**Until then, treat the media as third-party content licensed to neither openGym nor to you.**
**Until then, treat the media as third-party content licensed to neither KuentaGYM nor to you.**
**openGym does not redistribute it.** It is not in this repository, not in its history, and not in
**KuentaGYM does not redistribute it.** It is not in this repository, not in its history, and not in
the published container images or the Android APK. A self-hosted instance downloads it from the
upstream source on first `docker compose up`; the mobile and demo builds load it from a CDN at
runtime.
If you want to reuse the media — in openGym or anywhere else, commercially or not — **clear it with
If you want to reuse the media — in KuentaGYM or anywhere else, commercially or not — **clear it with
the rights holder first**, and keep any attribution that accompanies it intact.
Brazilian Portuguese exercise instructions under
@@ -128,13 +135,13 @@ the source files.
The gym check-in feature (a saved membership code shown as a QR code on the phone, added by
typing, importing a photo, or scanning with the camera) uses three third-party packages. All are
permissively licensed and compatible with openGym's AGPL, and all load on demand: the QR renderer
permissively licensed and compatible with KuentaGYM's AGPL, and all load on demand: the QR renderer
and the browser decoder only when a card is shown or scanned, the ML Kit plugin only in the
Android/iOS app.
### QR/barcode rendering — `lean-qr`
openGym renders each saved code on the phone with [**lean-qr**](https://github.com/davidje13/lean-qr)
KuentaGYM renders each saved code on the phone with [**lean-qr**](https://github.com/davidje13/lean-qr)
by David Evans, used under the **MIT License** and reproduced below. Only the code's stored value
is kept; the picture is generated fresh from that value each time it is shown, never stored.
It runs the same way in the app and in the browser/PWA.
@@ -176,6 +183,6 @@ Video frames are decoded in memory and never uploaded or stored.
In the Android/iOS app, reading a code — from the camera or from an imported photo — uses the
[**@capacitor-mlkit/barcode-scanning**](https://github.com/capawesome-team/capacitor-mlkit) plugin
by the Capawesome Team (Robin Genz), a Capacitor wrapper around Google's ML Kit, used under the
**Apache License 2.0**. openGym pins the `7.x` line to stay on Capacitor 7. The full license text is
**Apache License 2.0**. KuentaGYM pins the `7.x` line to stay on Capacitor 7. The full license text is
available at <https://www.apache.org/licenses/LICENSE-2.0> and in the package's own `LICENSE` file.
The decoded string is what openGym keeps; the photo itself is never stored.
The decoded string is what KuentaGYM keeps; the photo itself is never stored.