An evidence-aware strength training system that turns workout logs into interpretable strength and hypertrophy signals.
Most lifting apps are good notebooks: they record exercises, sets, reps, and personal records. Heracles is built around a stronger requirement — the analytical model should be inspectable. It combines a practical training ledger with explicit movement and muscle models, RIR-aware strength estimation, body-weight context, provenance, and documented limitations.
The goal is not to manufacture a single authoritative "progress score." It is to preserve the underlying training evidence and derive useful signals in ways that remain understandable and contestable.
Heracles covers both the act of training and the analysis that follows it:
- start or resume persistent workout sessions and record exercises, equipment, sets, reps, load, and RIR;
- use previous-performance context while training;
- review completed sessions and progression over time;
- calculate multiple observed and RIR-adjusted e1RM estimates without averaging them into a false single truth;
- optionally normalize strength estimates to body weight when valid body-weight evidence exists;
- model exercise-to-muscle relevance through explicit, versioned movement and muscle matrices;
- manage reusable workout presets;
- expose the reasoning, evidence quality, scientific foundations, and limitations through the Literature surface.
Heracles deliberately does not treat weight × reps / tonnage as a default hypertrophy metric. Product decisions like this are documented rather than hidden inside an opaque scoring layer.
Heracles is a domain-specific system rather than a whole-person model:
- Heracles owns resistance-training history, training-specific analysis, and strength evidence.
- Kleos can consume relevant Heracles outputs as evidence when modelling the broader current state of the person.
- Ariadne connects current state and desired direction to priorities, projects, opportunities, and action.
Conceptually:
Training observations → Heracles analysis → Kleos current-state evidence → Ariadne strategy and action
Heracles goes deep on one domain. Kleos goes broad across the person. Ariadne turns desired change into execution.
The application has two access states:
- Signed out: a crawlable public front page with Sign in in the top-right. It shows the product through an animated live-workout demo, a tour of each signed-in screen (clearly labelled as illustrative example data), a scroll-driven walk-through of one set from entry to progression, an e1RM calculator that runs the app's own
set-model.js, and an explorer for the complete exercise-to-muscle hypertrophic-relevance matrix loaded from its authoritative CSV. It also covers principles, evidence boundaries, the Fabbro Systems context, and the Literature library. - Signed in: Home (start or resume a workout, a year-long heatmap of analytical working sets per day, plus recent sessions) and live-workout flow, Session History, My Data analytics, My Stuff preset management and workout-order preference, a Literature hub, Settings for body-weight data, and sign-out controls.
The signed-in workout flow supports persistent session state, equipment-aware exercise history, previous-performance context, recovery-oriented autosave behavior, and a post-workout recap shown after a workout is successfully concluded. From Session History, a completed workout can be deleted after confirmation or reopened in the live-workout editor for full correction (only while no other workout is in progress); discarding a correction restores the original. See Workout session lifecycle. The application is deployed as a static GitHub Pages site and uses Supabase Auth plus owner-scoped workout data and global reference data in Postgres.
Branding note: the product is Heracles everywhere: the GitHub repository (
NeoLorenzo/Heracles), the Supabase project, and the canonical production application atheracles.fabbrosystems.com. "Lorenzo's Lifting Ledger" is a retired former name and must not be reintroduced. Early migrations still reference the original gym-data CSV filename as immutable import provenance; that is historical data, not product branding.
config.js contains a Supabase project URL and a publishable key. Both are designed to be public in browser apps. Never put any of these in this repository:
- a Supabase secret key or legacy
service_rolekey - a Google OAuth client secret
- database passwords
- private access tokens
All future user-owned tables must enable Row Level Security before the app writes data.
data_importsrecords body-weight CSV provenance and checksums per user.exercisesis the global, app-managed exercise catalogue shared by every user.movement_patternsdefines the global biomechanical dimensions used by the movement matrix.musclesdefines the ordered 40-entity global muscle catalogue used by the hypertrophy model.movement_mapping_versionsrecords immutable published matrix metadata and source hashes.exercise_movement_pattern_coefficientsstores every exercise-by-pattern cell for each matrix version, including explicit zeroes.movement_muscle_mapping_versionsrecords immutable movement-pattern-to-muscle functional-matrix metadata and source hashes.movement_pattern_muscle_coefficientsstores all 1,600 explicit cells in each 40-by-40 functional matrix version.exercise_muscle_mapping_versionsrecords the exact upstream versions and composition algorithm used for each derived exercise-to-muscle matrix.exercise_muscle_coefficientsstores all 4,640 explicit raw composition scores in the current 116-by-40 derived matrix.exercise_muscle_relevance_versionsrecords immutable provenance for the authored exercise-specific hypertrophic-relevance layer.exercise_muscle_relevance_coefficientsstores all 4,640 explicit relevance cells of the current version using the documented0,0.25,0.50,0.75, and1.00contract.gymsis the top-level owner-scoped gym list.equipmentis the owner-scoped canonical equipment catalogue: one row per real piece of equipment, never per gym.kindisgeneric(Dumbbell, Barbell, EZ Bar, Bodyweight — usable at every gym),machine(a specific machine model), orunknown_model(a placeholder such asMachine (unknown model) — Gym namefor older entries whose model was never recorded; rename it to the real model). Names are unique per owner after case and whitespace normalization.equipment_gym_availabilityrecords which gyms a machine or placeholder is available at. It is location metadata, not identity; generic implements never need a row.gym_equipmentis the legacy pre-issue-#22 gym-scoped equipment list. It is kept unchanged for history and undo and is no longer written.workout_sessionsstores completed and in-progress workouts. A partial unique index allows only one in-progress session per owner; blank active sessions may not have a gym yet.workout_session_reopen_snapshotsstores the owner-scoped pre-correction copy of a completed session while it is reopened for editing, so discarding the correction restores the original instead of deleting it. See Workout session lifecycle.session_exercisesstores ordered exercise occurrences by canonicalexercise_idplus the canonical equipment used (canonical_equipment_id, nullable when not recorded) and anequipment_name_snapshotof its name at the time.exercises.nameis the sole exercise label. The legacygym_equipment_idand free-textequipment_idcolumns are kept for history and undo only.exercise_setsstores each numbered weight/reps pair, warm-up/drop-set/superset flags, reported RIR and its provenance, legacy/deprecated RPE observations, and generated observed and RIR-adjusted Brzycki/Epley estimated 1RM values.workout_presetsstores each owner-scoped, uniquely named reusable exercise pool.workout_preset_exercisesstores unordered, deduplicated exercise references plus a reusable set count. Starting from a preset creates blank set slots without copying load, reps, RIR, or warm-up state; each exercise defaults to the canonical equipment last used for it at the selected gym. The exercises are ordered deterministically from the owner's workout-order preference: a balanced rotation of the order actually completed in the last workout from the same preset (alphabetical for the first one), optionally with priority muscle groups first, and by default alternating exercises between main muscle groups. The order is never random; the reasons are stored inworkout_sessions.exercise_order_basisand shown in the live workout. See Preset workout order.body_weight_measurementsstores owner-scoped raw scale observations in kilograms from CSV imports or Apple Health synchronization. CSV observations remain date-canonical and retaindata_importsprovenance; Apple Health observations use deterministic source keys, exact timestamps, and optional source metadata, and multiple distinct Apple Health observations may share a calendar date.user_settingsstores the owner-scoped, default-offrelative_e1rm_enabledpresentation preference and the preset workout-order mode and alternation setting.user_priority_muscle_groupsstores the owner-selected user-facing muscle groups placed first in priority mode.
Body-weight CSV imports use column A as an exact DD/MM/YYYY date and column B as a positive kilogram value; optional headers and additional ignored columns are supported. The filename and export source are not part of the contract. Raw same-day observations are preserved, while body_weight_daily_series selects one deterministic representative per measured day for analytics and calculates missing days only between measured representatives using linear interpolation: W(d) = W1 + (W2 - W1) × (days from d1 / days between d1 and d2). Calculated/interpolated values are not persisted as scale observations and are never extrapolated. Settings supports previewing, importing/correcting, inspecting measurement coverage and last-import freshness, and deleting only the signed-in user's body-weight dataset. See Body Weight Data for the complete CSV, Apple Health provenance, daily-series, and interpolation contract.
When explicitly enabled in Settings, each absolute e1RM formula value is divided independently by the measured or interpolated body weight on each workout date and displayed as a dimensionless × BW value. Absolute generated e1RM columns remain canonical and unchanged. Relative values are unavailable outside body-weight coverage because the app does not extrapolate. Dumbbell relative e1RM remains per dumbbell.
All dumbbell exercise weights use one product-wide convention: the stored value is always the weight of one dumbbell, for both unilateral and bilateral exercises. A set performed with two 30 kg dumbbells is therefore stored as 30 kg, not 60 kg; dumbbell e1RM values use and retain that same per-dumbbell unit. Because exercise names no longer state the implement, the recorded Dumbbell equipment decides the per-dumbbell label.
Every user-data table has an owner_id reference to auth.users. Row Level Security limits select, insert, update, and delete operations to the signed-in owner. Parent/child foreign keys also include the owner ID so records cannot be connected across users. Global exercise and movement reference tables are readable by authenticated users but are not writable from the public client. Personal gym and body-weight exports remain local and are ignored by Git because this repository is public.
The current scientific catalogue contains 116 active, equipment-independent global exercise definitions (plus 23 retired definitions kept for provenance), 40 movement patterns, 40 muscles, a current 4,640-cell exercise-to-pattern mapping version, a current 1,600-cell movement-pattern-to-muscle functional mapping version, a current 4,640-cell derived exercise-to-muscle composition version, and a current 4,640-cell exercise-to-muscle hypertrophic-relevance version. Canonical workout history lives only in the normalized workout hierarchy.
Exercise names are globally standardized and describe the movement only (for example Lateral Raise (Seated), Chest Press (Incline 30)); cable handles such as V-Bar or EZ Bar Attachment remain part of the name for now. session_exercises.exercise_id is the sole performed-exercise identity and the current exercises.name is always used for presentation. Equipment is recorded separately on each performed exercise because different machines for the same movement can have different resistance profiles; My Data draws one progression series per exercise and canonical equipment, across every gym. Issue #22 merged exercises that differed only by equipment; the decisions, scoring sources, and the reversible migration are recorded in docs/scientific/issue-22-canonical-exercise-identity.json.
The movement-pattern schema, access model, import guarantees, and current follow-up work are documented in Movement-pattern data model. Coefficient semantics and limitations are documented separately in Movement-pattern contribution coefficients. The 40-entity hypertrophy model is defined in Muscle Group Taxonomy for Hypertrophy Modelling. The functional link between movement patterns and muscles is documented in Movement Pattern → Muscle Function Matrix. The deterministic matrix product is documented in Exercise × Muscle Functional Composition Matrix. The exercise-specific filtering and weighting layer is documented in Exercise → Muscle Hypertrophic Relevance Matrix, with shared scientific limits stated in Current Limitations of Muscle Group Mapping.
The app intentionally does not calculate or display weight × reps, tonnage, or volume load. The scientific and product rationale is documented in Why the app does not track tonnage.
RIR is the active proximity-to-failure input; RPE is retained only as a legacy historical observation. Warm-ups store no RIR. Non-warm-up sets with reported RIR 0–3 are analytical working sets, while the stored bucket 4 means open-ended 4+ RIR and remains visible only as high-RIR history. Historical non-warm-up sets were backfilled to RIR 0 with historical_backfill provenance; future saved entries use user_entered provenance. The 0–3 cutoff is an app analytical rule, not a biological claim that 4+ RIR produces zero hypertrophy.
For each representative RIR 0–3 working set, strength progression preserves four calculated e1RM values: Brzycki and Epley using completed reps, plus both formulas using completed reps + reported RIR. The representative set is selected from observed completed performance only, before RIR adjustment. Values use Brzycki weight × 36 ÷ (37 − reps) and Epley weight × (1 + reps ÷ 30), retain the formulas' existing validity limits, and are rounded to two decimal places.
The four-value model spread is not averaged into one estimate, is not a confidence interval or a measured true 1RM, and does not introduce a literature-derived true-RIR uncertainty model. High-RIR 4+ sets are excluded because their open-ended RIR cannot provide a finite adjusted repetition count. Relative presentation divides each formula value independently by body weight on the workout date; it does not store or replace those absolute estimates.
After a successful conclusion, the recap summarises the stored session (date, exercises, RIR 0–3 working sets; no duration, because session end times are not stored) and compares each exercise on the same canonical equipment, at any gym, with the latest earlier comparable completed session. It uses one clearly labelled value, the lower of the observed Brzycki and Epley estimates from completed reps of the existing representative working set. Changes under 1 % either way are shown as Similar, which is a product display rule. A new best is reported separately from beating the last session, and first sessions are baselines. The recap shows a transparent count rather than a workout score. It can be reopened from any completed session in Session History, and shared as an image card or text through the device share sheet. Shared output leaves out the gym name. See Post-workout recap.
- App: https://heracles.fabbrosystems.com/ — canonical production domain for Heracles.
- Supabase project:
Heracles(yfhmjwkscqbpzblrpsoy, London). - Production Site URL and redirect allow-list are configured in Supabase.
- GitHub Pages deploys from
mainat/ (root)with HTTPS enforced.
- In Google Cloud Console, create an OAuth 2.0 Client ID of type Web application.
- Add
https://yfhmjwkscqbpzblrpsoy.supabase.co/auth/v1/callbackas its authorized redirect URI. - In Supabase, open Authentication → Providers → Google, enable Google, and enter the Google client ID and client secret. The secret stays in Supabase and must never be committed.
OAuth callbacks require an HTTP origin; do not open index.html directly from disk.
npm run devThen visit http://127.0.0.1:5173/. The development server disables browser caching so frontend edits appear after a refresh.
Run the repository checks with:
npm testindex.html— minimal app shellapp.js— Supabase Google sign-in/session handling, top-level orchestrationfeatures/body-weight.js— body-weight import/deletion controller and relative e1RM preference settingsfeatures/dashboard.js— My Data / Dashboard UI controller, state management, date-range and muscle exposure filtering, progression charts, and recent change renderingfeatures/presets.js— My Stuff / presets creation, editing, deletion controller, and preset exercise picker UIbody-weight.js— generic body-weight CSV parsing, validation, preview, and interpolation helperspresets.js— pure preset name normalization, draft validation, and unique exercise extraction helperspreset-ordering.js— pure, deterministic preset workout ordering (rotation, priority, alternation) and its in-workout explanationfeatures/preset-order-settings.js— My Stuff workout-order preference controllerfeatures/session/preset-order-inputs.js— loads the preset, preference, and previous completed session used to plan a preset workout's orderrelative-e1rm.js— pure absolute-to-relative e1RM range and effective-mode helpersworkout-recap.js— pure post-workout recap calculations (comparable-series selection, change classification, new-best detection)features/workout-recap.js— post-workout recap loader, renderer, and share flow, opened after a successful workout conclusion or from Session Historyfeatures/workout-recap-card.js— browser-only canvas renderer for the shareable recap image cardliterature.js— safe in-app Markdown rendering and the Literature document registryconfig.js— public browser configuration onlystyles.css— shared base styles and the Fabbro Application Sidebar shellpublic.css— signed-out public site (Fabbro Public Shell)features/public-showcase.js— signed-out interactive showcase (live-workout demo, product tour, set walk-through, e1RM calculator, relevance-matrix explorer); calculated values reuseset-model.jsandanalytics.js, and the matrix is read fromEXERCISE_TO_MUSCLE_HYPERTROPHIC_RELEVANCE.csvapp.css— signed-in application design layer; every rule is scoped to#signed-inorbody.is-authenticatedso it cannot affect the public sitemanifest.webmanifestandservice-worker.js— installable PWA metadata and offline shelldocs/— app-facing scientific methods, product decisions, model interpretations, limitations, and evidence-quality specifications surfaced through Literature; filenames use uppercase snake case