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

4.3 KiB

Importing Data

Plans

Plans/routines can be imported from a plain text json file.
The app supports exporting and an export always contain every current routine.

If you don't want to share every plan that you have currently created, you can either:

  • edit the exported json with a text editor
    or (if you don't feel like editing json files):
  • do it in the app itself, in guest mode — the "Continue without account" button on the login screen, which keeps everything in that browser and never talks to the server:
    • import your plans
    • make changes
    • export a new json file for sharing

There is no public demo deployment for this fork to point you at, so guest mode on the instance you already run (or on http://localhost:8080 after docker compose up) is the way to do this without touching a text editor.

If you are using the standalone app on your mobile, you can use guest mode for creating plans on your PC and import them.
Guest mode stores all data in your browser, it is not public or shared in any way — nothing is uploaded, and the plan json is what you move between the two.

Writing a json file yourself will be a bit of a complex task since the IDs of the exercises have to match the IDs in the database.

History

To import your history from other applications, you'll need an export that is in CSV format. The app tries to match the exercise names to link them to the exercises in the database.

Note: The history is a log of past exercises.
Because plans change and history does not, it is completely disconnected from routines.

Exercises depend on name matching, so custom exercises might be named differently, as they might be in other apps.

These apps have been tested to work without adjustments to the column names:

App How to export
FitNotes (Android) Settings → Backup/Export → Spreadsheet Export
FitNotes 2 (iOS) Export workouts as CSV; also manual/auto iCloud backups
Strong Settings → Export Data
Gravl Profile → Export Data
Hevy Profile → Settings → Export & Import Data (Workouts or Measurements), or Settings → Import from Hevy with a Pro API key

Hevy API (direct)

If you have Hevy Pro, you can skip the CSV and import straight from Hevy:

  1. Open Hevy → Settings → Developer and create an API key
  2. In KuentaGYM: Settings → Import from Hevy
  3. Paste the key (used only for that import — it is not saved)
  4. Choose whether to bring workouts, routines, weigh-ins, or any mix, then confirm

Both the API import and a detected Hevy CSV resolve exercises through the same generated lookup (frontend/src/lib/hevy-id-map.js): template id for the API, English title for the CSV. To regenerate (developers): set HEVY_API_KEY in the environment or .env, then run node scripts/build-hevy-id-map.mjs. Unmapped lifts become your own exercises. Workout days that already have data here are left alone; routines are always added as new plans (nothing you already have is overwritten). Localized CSV titles (non-English) still fall back to name matching.

You can also create your own CSV file:

Minimal Example

workout name,exercise,date,weight kg,reps
Leg Day,Squat,2026-08-21,120,5
Leg Day,Squat,2026-08-21,125,4
Leg Day,Leg Press,2026-08-21,200,1

These field names are supported:

Canonical Field Supported CSV Headers (first match wins)
exercise exercise, exercise name, exercise title
date date, workout date
startTime start time, start date
endTime end time
workoutName workout name, title, workout
category category, body part, muscle group
weightKg weight kg
weightLb weight lbs, weight lb
weight weight
weightUnit weight unit, unit
reps reps, repetitions
rpe rpe, rpe rating
rir rir, reps in reserve
distanceKm distance km
distance distance
distanceUnit distance unit
seconds seconds, duration seconds, set duration sec
time time, duration
setType set type
note comment, comments, notes, note, workout notes