Wer sich anmeldet, wer es vergeblich versucht und was ein Admin aendert, stand bisher nirgends — der Server hat schlicht nichts protokolliert. Aktivitaetslog: - ./data/audit.log, eine JSON-Zeile pro Event, angehaengt statt neu geschrieben. Bewusst NICHT in db.json: die Datei wird bei jedem Save komplett neu geschrieben, und der Login-Handshake ist unauthentifiziert — ein Log darin haette aus einem Muell-Request einen vollen Rewrite gemacht. - Aufbewahrung ist eine Obergrenze, kein Archiv: AUDIT_MAX (5000) bzw. AUDIT_DAYS (90). - Per Default an (AUDIT_LOG=0 schaltet es ganz ab). IP-Adressen per Default AUS; AUDIT_IP=net speichert nur das Netz, full die ganze Adresse. Nie der User-Agent, nie die Passkey-ID eines Fehlversuchs, nie ein abgelehnter Invite-Code. - Adresse kommt aus CF-Connecting-IP, dann X-Forwarded-For, dann X-Real-IP — ein Cloudflare-Tunnel schreibt den Besucher NICHT in XFF, dort steht sonst nur der Tunnel selbst und sieht dabei voellig plausibel aus. - Loeschen wird selbst protokolliert, die Event-IDs zaehlen weiter: die Luecke bleibt sichtbar. - Neue Karte in views/Admin.jsx (Filter, "Show more"), Aufbereitung in lib/audit.js mit 20 Tests. GET /api/admin/audit und POST /api/admin/audit/clear, beide hinter requireAdmin. Demo: - Die Live-Demo laeuft wieder, jetzt auf der Projektseite selbst statt auf GitHub Pages: opengym.duarte-santos.ch/demo/. Das eingebettete Telefon auf der Startseite geht damit auch wieder — es muss derselbe Host sein, X-Frame-Options ist SAMEORIGIN. Doku: README-Config-Tabelle, .env.example, SELF_HOSTING, SECURITY (inkl. der api/server.js-Zeilenverweise, die wieder stimmen).
134 lines
7.0 KiB
HTML
134 lines
7.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<title>About — openGym</title>
|
|
<meta name="description" content="The story behind openGym: a gym tracker that started as a tiny personal app on a homelab server and grew into an open-source project.">
|
|
<meta name="theme-color" content="#0c0e12">
|
|
<link rel="icon" type="image/png" sizes="512x512" href="icon-512.png">
|
|
<link rel="icon" type="image/png" sizes="180x180" href="icon-180.png">
|
|
<link rel="apple-touch-icon" href="icon-180.png">
|
|
<link rel="stylesheet" href="styles.css?v=3">
|
|
<!-- Umami web analytics for opengym.duarte-santos.ch (self-hosted, cookieless). -->
|
|
<script defer src="https://stats.duarte-santos.ch/script.js" data-website-id="db36019e-50f4-453c-9c56-d0588aefe233"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<nav><div class="wrap nav-in">
|
|
<a class="brand" href="/">
|
|
<img src="icon-180.png" alt="" width="26" height="26" style="border-radius:6px">
|
|
openGym
|
|
</a>
|
|
<div class="nav-links">
|
|
<a href="/#features" class="hide-s">Features</a>
|
|
<a href="/#screens" class="hide-s">Screenshots</a>
|
|
<a href="/#demo" class="hide-s">Demo</a>
|
|
<a href="docs.html">Docs</a>
|
|
<a href="about.html" class="hide-s">About</a>
|
|
<a href="https://gitea.com/DuarteSantos/openGym" rel="noopener"><span data-gh="stars">Gitea</span></a>
|
|
<a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>
|
|
<a class="cta" href="/#download">Download</a>
|
|
</div>
|
|
</div></nav>
|
|
|
|
<!-- TEMPORARY: GitHub account suspended -> repo lives on gitea.com. Remove this block and
|
|
revert the links (+ site.js) to github.com once the account is restored. -->
|
|
<div class="alert" role="alert"><div class="wrap">
|
|
<div class="alert-tag">⚠️ Important notice</div>
|
|
<h2>My GitHub account has been suspended — the openGym repo is gone with it</h2>
|
|
<p><b>github.com/DuarteSantos8/openGym is offline.</b> The repository and the releases are
|
|
unreachable — not by choice. openGym itself is unaffected: the app, the APK on this page,
|
|
the demo (now hosted here) and every self-hosted install keep working exactly as before.</p>
|
|
<p>Until I get the account back, the code lives here — and the Discord is where I will announce
|
|
the moment it is resolved:</p>
|
|
<div class="alert-actions">
|
|
<a class="btn alert-btn" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">gitea.com/DuarteSantos/openGym</a>
|
|
<a class="btn dc-btn" href="https://discord.gg/e62jY6fwVb" rel="noopener">Join the Discord</a>
|
|
</div>
|
|
<p class="alert-note">Every repository link on this site now points at that mirror — same code,
|
|
same AGPL-3.0 license, same history.</p>
|
|
</div></div>
|
|
|
|
|
|
<main class="wrap prose">
|
|
<h1>About openGym</h1>
|
|
<p class="lead">openGym wasn't planned as a product. It started as a tiny app I built for
|
|
one user: me.</p>
|
|
|
|
<p>I wanted three things at the gym: log my workouts, track my body weight, and see whether
|
|
any of it was going anywhere. Every app I tried wanted a subscription, an account, or my
|
|
training data on someone else's servers — usually all three. So I did the homelab thing:
|
|
built a small mobile web page, put it on my own server, and started logging.</p>
|
|
|
|
<p>It turns out a tracker you build for yourself gets sharpened in a way products don't.
|
|
Every awkward tap at the squat rack became that evening's fix. The guided workout flow,
|
|
the weight pre-fills, the rest timer, the "ask my body weight before the first set"
|
|
ritual — none of that came from a feature list. It came from actually standing in the
|
|
gym with the thing in my hand.</p>
|
|
|
|
<p>Then friends wanted in. That brought passkey profiles — sign in with your fingerprint,
|
|
no passwords, everyone's data separate — and sync, so the log survives any phone.
|
|
Somewhere along the way the little page got rewritten into a proper React app, learned
|
|
12 languages, grew a muscle map that reads three ways — where the volume went, what is
|
|
still recovering, and what each muscle is actually strong at — plus importers for
|
|
FitNotes, Strong, Hevy and Apple Health, and finally became a native Android app you can
|
|
install from this site.</p>
|
|
|
|
<p>In July 2026 I open-sourced the whole thing under the <b>AGPL</b>. The license is the
|
|
point, not a footnote: your training data should be yours, the software that holds it
|
|
should be inspectable, and nobody — including me — should be able to take a closed,
|
|
paid version of it away from the community.</p>
|
|
|
|
<p>openGym still runs on the same homelab server it started on, and I still log every
|
|
session with it. That's the quality bar: I'm the first user of every release.</p>
|
|
|
|
<p class="who" style="color:var(--faint)">— <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a></p>
|
|
|
|
<h2>Milestones</h2>
|
|
<!-- The releases below are a static fallback: site.js replaces them with the live list
|
|
of published GitHub releases, so this page never needs manual updating. Only the
|
|
first entry (pre-GitHub) is permanent. -->
|
|
<ul class="tl" id="milestones">
|
|
<li><b>The personal app</b><span class="when">early summer 2026</span>
|
|
<p>A hand-written vanilla-JS page on my own server. One user, zero ambitions.</p></li>
|
|
<li data-fallback><b>v1.0.0 — open-sourced</b><span class="when">July 20, 2026</span>
|
|
<p>Docker-Compose self-hosting, passkey profiles, guided workouts, 1,324-exercise
|
|
library. AGPL from day one.</p></li>
|
|
<li data-fallback><b>Every release since</b><span class="when">ongoing</span>
|
|
<p>See the full list on <a href="https://gitea.com/DuarteSantos/openGym/releases" rel="noopener">Gitea → Releases</a>.</p></li>
|
|
</ul>
|
|
|
|
<h2>Principles</h2>
|
|
<ul>
|
|
<li><b>Your data is yours.</b> Local-first, one-file backups, no lock-in — leaving
|
|
openGym must always be one export away.</li>
|
|
<li><b>No telemetry, ever.</b> If a feature needs analytics to justify itself, it
|
|
doesn't ship.</li>
|
|
<li><b>Dependency-light.</b> The backend is one Node file with a single dependency;
|
|
the frontend is React, a router and a store. Small enough to actually audit.</li>
|
|
<li><b>Open source that stays open.</b> AGPL-3.0, so every fork and every hosted
|
|
version owes its code back to everyone.</li>
|
|
</ul>
|
|
|
|
<div class="hero-btns" style="justify-content:flex-start;margin:30px 0 10px">
|
|
<a class="btn" href="/#download">Get openGym</a>
|
|
<a class="btn ghost" href="https://gitea.com/DuarteSantos/openGym" rel="noopener">Star it on Gitea</a>
|
|
</div>
|
|
</main>
|
|
|
|
<footer><div class="wrap foot">
|
|
<span>openGym · AGPL-3.0 · © 2026 <a href="https://duarte-santos.ch" rel="noopener">Duarte Santos</a></span>
|
|
<div class="links">
|
|
<a href="docs.html">Docs</a>
|
|
<a href="about.html" class="hide-s">About</a>
|
|
<a href="https://gitea.com/DuarteSantos/openGym" rel="noopener">Gitea</a>
|
|
<a href="https://discord.gg/e62jY6fwVb" rel="noopener">Discord</a>
|
|
<a href="/#download">Download</a>
|
|
</div>
|
|
</div></footer>
|
|
|
|
<script src="site.js" defer></script>
|
|
</body>
|
|
</html>
|