Archetype: Breathwork / calm
Timed breathing phases — 4-7-8, box breathing, recovery breaths.
Minimum permissions
["activity.complete", "host.haptics", "host.timer"]
APIs to use
host.timer.start({ duration_s, tick_s, onTick })— phase countdownhost.haptic("medium")— inhale / exhale transitionsactivity.complete({ kind: "breathwork", duration_seconds })activity.cancel()if user exits early
Example flow
- Explain the pattern (e.g. 4-7-8)
- Run timer per phase; haptic at phase change
- Repeat cycles; complete with total duration
Preview persona: ?preview=1&persona=low_recovery includes timer mock.