An iOS app that reads step count and flights climbed from HealthKit and exports the data to an HTTP endpoint or local JSON files.
- Exports step count and flights climbed as daily totals
- Two export modes: HTTP POST or local JSON files (one file per year, e.g.
2026.json) - Preset lookback periods: 1 Day, 7 Days, 1 Month, 1 Year, All Time
- Test export with mock data to verify your configuration
- Files accessible via Files app on iPhone
- iOS 18.0+
- iPhone with Health app
brew install xcodegengit clone git@github.com:bensquire/healthkit-exporter.git
cd healthkit-exporter
xcodegen generate
open FitnessExporter.xcodeprojmake build # build (unsigned, for local testing)
make test # run unit tests
make clean # clean build artefactsEach year's data is written to <year>.json:
{
"year" : 2026,
"exportedAt" : "2026-03-03T12:00:00Z",
"data" : [
{
"date" : "2026-01-01",
"flightsClimbed" : 4,
"stepCount" : 8542
}
]
}MIT