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 publisherPublished with Axint 0.3.9Source includedDocs attachedLast revalidated on Axint 0.3.9 · 17h agoPolicy clear for v1.0.0
Open in Cloud
Installs 0 totalSupports typescript
Validation healthy17h ago
0E / 0W / 0I · Last revalidated on Axint 0.3.9
Publish policy clear2d ago
0 fail / 0 warn / 3 clear · v1.0.0
All current publish policy checks are clear.

Registry installs are directional counts from install requests. Use source, validation, and publisher metadata before treating them as adoption proof.

Browser preview
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

@axint/healthkit-log · Log a health metric to Apple Health via Siri — weight, glucose, heart rate, blood pressure · Axint Registry