Skip to content
nimatime
·v1.0.0·Apache-2.0

HealthKit Log@axint/healthkit-log

Log a health metric to Apple Health via Siri — weight, glucose, heart rate, blood pressure

healthapp-intent#health#healthkit#siri#productivity
GitHub-linked publisherCompiler 0.3.9Source includedDocs attachedValidated 20h agoPolicy clear for v1.0.0
Cloud report
0 installsSupports typescript
Validation healthy20h ago
0E / 0W / 0I · axint 0.4.28

Package activity is a directional signal based on registry install requests. Use source, validation, and publisher metadata before treating it as adoption proof.

HealthKit Log animated demo

HealthKit Log

Animated Registry demo · @axint/healthkit-log

v1.0.0
Live playground
Built in 42ms
Source
32 lines
Generated Swift
31 lines
axint typescript → Swift
README

@axint/healthkit-log

Log a health reading to Apple Health from a Siri phrase or Shortcut.

axint add @axint/healthkit-log

What it does

One App Intent that writes to HealthKit. Pass a metric name, a value, and optionally a unit and notes string. The intent returns a confirmation the user hears back from Siri.

Supported metrics out of the box:

  • weight — pounds or kilograms, auto-detected from locale
  • glucose — mg/dL or mmol/L
  • heart-rate — BPM
  • bp-systolic / bp-diastolic — mmHg

What you get

Compiling this template through Axint produces:

  • LogHealthMetric.swift — the App Intent conformance
  • Info.plist.fragment — HealthKit usage descriptions
  • A valid entry for INIntentsList in your app's Shortcuts metadata

Permissions

Your host app must request both NSHealthShareUsageDescription and NSHealthUpdateUsageDescription in its Info.plist. The plist fragment emitted alongside the Swift output includes these with safe defaults you should customize.

Integration

Pair with @axint/ios-shortcuts-donator (coming soon) to donate the intent to Shortcuts on first run, so the user sees it in the Shortcuts gallery without manual setup.

License

Apache-2.0