Files
dsantillan 87bfd6d4c4 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).
2026-09-21 14:29:54 -04:00

9.8 KiB
Raw Permalink Blame History

Third-party notices

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). 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 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 not otherwise limit the license.

Body diagram geometry

The muscle outlines the body maps are drawn from (frontend/src/lib/body-paths.js) are derived from MuscleMap by Melih Colpan, used under the MIT License and reproduced below. MuscleMap ships its path data as Swift source rather than .svg files; the paths were converted to a JSON module, its sub-group shapes were dropped, and nothing else about the artwork was changed.

MIT License

Copyright (c) 2026 Melih Colpan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Exercise data & media

KuentaGYM obtains both through hasaneyldrm/exercises-dataset, which licenses them differently. Neither is covered by KuentaGYM's AGPL license.

That dataset is itself a redistribution: the content originates from ExerciseDB v1 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 on that dataset.

Metadata & instruction text

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 KuentaGYM through the dataset above, which distributes them under the MIT license reproduced below. The translations into languages other than English are KuentaGYM's own derivative work and are covered by KuentaGYM's AGPL.

MIT License

Copyright (c) 2026 Hasan Emir Yıldırım

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation and data files (the "Software"),
to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
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 KuentaGYM's AGPL. Their ownership is currently unresolved, and KuentaGYM states this plainly rather than guessing:

  • The upstream dataset attributes them to © Gym visual, redistributed there with that rights holder's written permission — a permission granted to that dataset and not transferable.
  • ExerciseDB/AscendAPI describes itself as "the original creator and owner" of this content and publishes its own terms, which permit self-hosting, bundling and commercial display, while prohibiting redistribution of the raw dataset or media as a standalone or competing content package.

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 KuentaGYM nor to you.

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 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 scripts/instruction-sources/pt-BR.json and exercise names under scripts/exercise-name-sources/pt-BR.json are original translations of that English source produced with OpenAI Codex and Anthropic Claude Code language-model assistance. They are not copied from a separate Portuguese dataset. Their review status and translation policy are documented alongside the source files.

Gym check-in QR codes

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 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

KuentaGYM renders each saved code on the phone with 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.

MIT License

Copyright (c) 2021-2025 David Evans

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Camera scan & photo decode in the browser — jsQR

In a browser (including the installed PWA), reading a code from the camera or from an imported photo uses jsQR by Cosmo Wolfe, under the Apache License 2.0 (text at https://www.apache.org/licenses/LICENSE-2.0 and in the package's own LICENSE). Where the browser has a native BarcodeDetector, that is tried first and jsQR is the fallback. Video frames are decoded in memory and never uploaded or stored.

Camera scan & photo decode in the app — @capacitor-mlkit/barcode-scanning

In the Android/iOS app, reading a code — from the camera or from an imported photo — uses the @capacitor-mlkit/barcode-scanning plugin by the Capawesome Team (Robin Genz), a Capacitor wrapper around Google's ML Kit, used under the 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 KuentaGYM keeps; the photo itself is never stored.