Spec-driven Garmin FIT activity codec with byte-exact round-trip, TCX decoding, and measured cross-format divergence reports.
moon add lin2077-zeming/moonfitmoon run cmd/moonfit -- unitsmoonfit version print the module version exit 0
moonfit units print the wire-unit table exit 0
moonfit --help print usage exit 0
moonfit no command given exit 2
moonfit <unknown> usage error, diagnostics on stderr exit 2moon run examples/wire_unitsposition : 22.351311072707176, 113.58801428228617
timestamp : 2026-11-14T09:11:59Z
distance : 31704.45 m
speed : 6.964 m/s
altitude : -8.4 m (exact, via -84 dm)
naive float : -8.399999999999977 m (a different Double)
timer time : 4310 s
inverse : 2458 (round trip exact)
odd dm : no exact altitude raw, reported as Nonemoonfit version print the module version
moonfit units FIT wire-unit table + constant provenance
moonfit info <f.fit> header, CRC status and message counts (JSON)
moonfit verify <f.fit> total validity; exit 0 valid / 1 invalid
moonfit dump <f.fit> JSONL of raw field values per data message
moonfit roundtrip <in> <out> structure-preserving re-encode (byte-exact)
moonfit metrics <f.fit> [bounds] [window] derived metrics (JSON)
moonfit tcx <f.tcx> TCX -> canonical model summary (JSON)
moonfit diff <f.fit> <f.tcx> FIT vs TCX divergence report (JSON)
moonfit redact <in> <out> [trim] [dlat] [dlon] native redactionmoon check --target all --deny-warn
moon test --target native --deny-warn
moon test --target wasm --deny-warn
moon test --target wasm-gc --deny-warn
moon test --target js --deny-warn
python3 scripts/check_docs.py --self-test
python3 scripts/check_boundaries.py --self-test
python3 scripts/smoke_cli.py --self-testsrc/units/ native-unit types and the conversions between them
src/fit/ FIT container layer: CRC-16, file header, the sixteen base types
cmd/moonfit/ command line entry point
scripts/ corpus tooling and the CI gates, each with a self-test
docs/ boundaries, verification gates, and the measured corpus profile
corpus/ redacted activity files and their provenance
examples/ runnable examplesInstall
Download zipSpec-driven Garmin FIT activity codec with byte-exact round-trip, TCX decoding, and measured cross-format divergence reports.