A lightweight, high-performance rule engine for sports movement injury risk stratification, training load monitoring, and recovery compliance tracking, written in idiomatic MoonBit.
Features
🏃 Training Load Monitoring: Automatic sliding-window calculations for Session RPE (sRPE), Acute Load (7-day), Chronic Load (28-day), and Acute:Chronic Workload Ratio (ACWR).
🛌 Recovery & Compliance Tracking: Rolling monitoring of recovery metrics including average sleep duration, sleep quality, and subjective fatigue.
⚠️ Pain Level & Symptoms Tracking: Tracking of maximum pain scores and localized pain sites.
Ensure you have the latest MoonBit toolchain (v0.10.3 or higher) installed:
# Type-check everything
moon check --deny-warn
# Run the test suite
moon test --deny-warn --target wasm-gc
# Run the command-line demo report
moon run --target wasm-gc cmd/main
MoonBit Injury Risk Rule Engine (
moonbit-injuryrisk)A lightweight, high-performance rule engine for sports movement injury risk stratification, training load monitoring, and recovery compliance tracking, written in idiomatic MoonBit.
Features
>,<,==), and severity (Low,Medium,High).Quick Start Example
The following block is type-checked and executed as part of the test suite:
Run and Test
Ensure you have the latest MoonBit toolchain (v0.10.3 or higher) installed: