Fitness training log store
State: open/building · Kind: module · Audience: system
Summary
Section titled “Summary”- A SQLite-backed training log library: people, sessions, sets, health observations and nutrition, with rollups over them.
- Also provides free-text set capture, activity file import, food lookup and a portable export bundle.
Statement
Section titled “Statement”determined-fitness is an importable Rust library that keeps one training-log database plus a rebuildable food-lookup cache for a person’s training data. It is not backed by the markdown vault, because a set log is written one row at a time and read back as aggregates, which is a SQL question. It opens against a path and needs no platform context. determined-platform consumes its generated CRUD and custom handlers.
What it provides
Section titled “What it provides”- FitnessStore: open, migrate and seed one SQLite training log
- Domain rollups: volume per muscle group, estimated 1RM, best sets, session and effort queries
- Free-text capture grammar (e.g. 3x8@60kg) with an optional on-device interpreter
- Activity import from GPX, TCX, FIT and Apple Health exports, deduplicated by file hash
- Food lookup over FDC and Open Food Facts with a local cache
- Export bundle with versioned upgrade and JSON Schemas
- Generated CRUD and API forwarders via ontogen
Underlying implementation
Section titled “Underlying implementation”- solutions/determined/crates/determined-fitness/src/
- solutions/determined/crates/determined-fitness/build/
Locations
Section titled “Locations”solutions/determined/crates/determined-fitness/solutions/determined/crates/determined-fitness/src/lib.rs#FitnessStoresolutions/determined/crates/determined-fitness/src/port.rssolutions/determined/crates/determined-fitness/src/domain/solutions/determined/crates/determined-fitness/src/capture/solutions/determined/crates/determined-fitness/src/import/solutions/determined/crates/determined-fitness/src/food/solutions/determined/crates/determined-fitness/src/bundle/solutions/determined/crates/determined-fitness/build/