Skip to content
trueforge-orgPublic

About

correct smart-scales using dexa-scan results

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

DexaFix logo

DexaFix

Corrects smart-scale results using DEXA scan results.

CI codecov Latest release License Sponsor on Open Collective Go version Container image

Quick start  ·  Features  ·  Documentation  ·  Configuration  ·  Security  ·  Contributing  ·  Sponsor


DexaFix is a Go web app that stores per-user DEXA scans and scale readings, and shows one estimated value per day. Each user has an account and sees only their own data. Users sign in with a password or with an external provider.

Warning

Read Limitations and security before you expose DexaFix to the internet.

✨ Features

Area Feature
📊 Measurements and estimates Per-user DEXA scans and scale readings, entered in the browser or by JSON API.
Each reading records its measurement method (smart scale, caliper, BodPod, hydrostatic, tape, visual AI) and whether athlete mode was on.
One estimate per day for weight, body fat, fat mass, fat-free mass, lean mass, hydration, bone mass, visceral fat index, BMI, fat mass index (FMI), lean mass index (LMI) and the android/gynoid (A/G) fat ratio.
🔐 Accounts and security Password sign-in, plus OpenID Connect, Sign in with Apple and OAuth 2.0 providers. See Accounts and sign-in.
Passkeys (WebAuthn) for signing in without a password, with a device's fingerprint, face or PIN. See Passkeys.
Password reset by one-time link, made by an administrator or requested by e-mail. See Password reset.
Optional two-step verification for password sign-in, with an authenticator app and recovery codes, and an administrator policy for who must use it. Administrators confirm a code again before each Admin page.
New accounts are closed by default, and security-relevant events go to an audit log.
📥 Imports Optional Withings import, so scale readings do not need typing in. See Withings import.
Strength Level sync, per day, with multi-day sync for users an administrator allows.
🗂️ Data Export of settings and personal details, and of all scans and readings, as JSON (GDPR articles 15 and 20). See Your data.
Deleting a user removes their measurements and settings.
🛠️ Operations SQLite (default) or Postgres. Schema changes are versioned migrations, applied on startup. See Database.
Server settings (base URL, trusted proxies, PROXY protocol, audit retention, e-mail) are edited on the Admin page and take effect at once, without a restart.
Optional HTTPS on its own port, with HTTP/2 and HTTP/3 (QUIC), using an uploaded or a self-signed certificate. See Running behind a reverse proxy.
Container image on a scratch base, for amd64 and arm64, built by ContainerForge as ghcr.io/trueforge-org/dexafix.
Signed images and checksums (cosign), published by the release workflow.

🚀 Quick start

Requires the Go version in go.mod.

go run . serve

Open http://localhost:8080 and create an account. The first account becomes the administrator.

Important

Unless DEXAFIX_ENCRYPTION_KEY is set, the first run creates the encryption key file dexafix.key. Back it up: the server does not start without it.

Or run the container image. The key file is then inside the data volume, at /config/dexafix.key:

docker run -p 8080:8080 -v dexafix-data:/config ghcr.io/trueforge-org/dexafix:latest

Continue with Getting started.

🧩 Running as two processes

dexafix serve web runs the pages and the public listeners, and dexafix serve api runs the database and the security decisions. Each can be deployed separately. See Split deployment.

📚 Documentation

The full documentation starts at docs/index.md.

Page What you find there
Using DexaFix Users: the pages, accounts and sign-in, estimates, Withings and Strength Level, encryption and privacy.
Running a server Administrators: getting started, configuration, commands, database, reverse proxy, split deployment, workers, body service, the Admin page, the encryption key, limitations and security.
Developing DexaFix Developers: development, JSON API, estimation details, internals, CI and releases, key rotation design.

🔐 Security

  • Encrypted at rest: e-mail addresses, Withings tokens, the Strength Level login, provider secrets, two-step verification secrets and every server setting (including the SMTP password and an uploaded HTTPS key) are encrypted with AES-256-GCM.
  • Hashed secrets: passwords are hashed with bcrypt, and session and access tokens and recovery codes are stored only as hashes.
  • Optional second step: two-step verification (authenticator app and recovery codes) protects password sign-in. Administrators can require it.
  • Audit log: sign-ins, account and token changes, imports, exports and every administrator action are recorded.
Read more

To report a vulnerability or a bug, open an issue at github.com/trueforge-org/dexafix/issues.

🤝 Contributing and development

Tests, the project layout and how to make schema changes are in Development. CI checks and release builds are described in CI and releases.

Ideas and questions are welcome as GitHub issues.

♥ Support DexaFix

DexaFix is free and open source and is built in spare time. If it helps you, please consider sponsoring it on Open Collective. The app has the same links in its footer.

📄 License

DexaFix is licensed under the GNU Affero General Public License, version 3. See LICENSE.

About

correct smart-scales using dexa-scan results

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages