Breath reference
1 page, 20 routes, 20 connections and 0 CLI commands, generated from the declarations of Breath without reading storage or running anything.
Code · 0 files
No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.
Pages · 2
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| Overview | breath.home | home | /view/breath | 0 | in navigation | ||
| Breath session | breath.item | detail | /view/breath/{session_id} | 110 | breath.home | BreathSession | hidden |
Connections · 20
Breath.DeleteGoal
Remove a subject's incentive goal vertex.
- Output keybreath.result
- Classificationreal
- DELETE /breath/goalHTTP route
Breath.DeletePattern
Remove a cataloged breath pattern.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| pattern_id | required |
- Output keybreath.result
- Classificationreal
- DELETE /breath/patternHTTP route
Breath.DeleteSession
Remove a breath session vertex.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| session_id | required |
- Output keybreath.result
- Classificationreal
- DELETE /breath/sessionHTTP route
Breath.GetGoal
Get a subject's incentive goal.
- Output keybreath.result
- Classificationroute_handler
- GET /breath/goalHTTP route
Breath.GetPattern
Get a single cataloged breath pattern by id.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| pattern_id | required |
- Output keybreath.result
- Classificationroute_handler
- GET /breath/patternHTTP route
Breath.GetSession
Get a single breath session by id.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| session_id | required |
- Output keybreath.result
- Classificationroute_handler
- GET /breath/sessionHTTP route
Breath.IngestFrames
Parse a batch of raw device frames (CSV or JSON, one breath each) and append them to a session — the direct hardware-bridge POST seam for an ESP-class sensor.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| frames | required | |||
| session_id | optional |
- Output keybreath.result
- Classificationreal
- POST /breath/framesHTTP route
Breath.IngestReading
Append a single live breath reading (volume_ml + hold_seconds) to a session, creating one if needed. The entry point an external spirometer device POSTs to.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| volume_ml | required | |||
| hold_seconds | optional | |||
| session_id | optional |
- Output keybreath.result
- Classificationreal
- POST /breath/readingHTTP route
Breath.ListPatterns
List cataloged breath patterns, optionally filtered by category or tag.
- Output keybreath.result
- Classificationroute_handler
- GET /breath/patternsHTTP route
Breath.ListSessions
List breath sessions, optionally filtered by subject or technique.
- Output keybreath.result
- Classificationroute_handler
- GET /breath/sessionsHTTP route
Breath.LogSession
Record a completed breath-exercise session. Persists a BreathSession vertex with a normalized list of per-breath readings (inspiratory volume + hold) and derived stats (best volume, breaths that reached the target, total hold time).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| technique | optional | |||
| target_volume_ml | optional | |||
| breaths | optional |
- Output keybreath.result
- Classificationreal
- POST /breath/sessionHTTP route
Breath.Progress
Today's progress for a subject: sessions done vs daily target, best volume vs target.
- Output keybreath.result
- Classificationroute_handler
- GET /breath/progressHTTP route
Breath.Remind
Fire a 'take a deep breath' nudge for a subject through the Notification dispatch seam. Best-effort: a no-op when no dispatch provider is registered.
- Output keybreath.result
- Classificationreal
- POST /breath/remindHTTP route
Breath.SavePattern
Create or update a cataloged breath exercise — a named sequence of timed phases (inhale / hold / exhale / hold-empty) repeated for N cycles. Persists a BreathPattern vertex.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| name | optional | |||
| pattern_id | optional | |||
| phases | optional | |||
| cycles | optional |
- Output keybreath.result
- Classificationreal
- POST /breath/patternHTTP route
Breath.ScoreSession
Score how well a session adhered to the pattern it followed (completion, target rate, hold adherence, volume consistency) as a 0–100 blend.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| session_id | required |
- Output keybreath.result
- Classificationroute_handler
- GET /breath/scoreHTTP route
Breath.SeedPatterns
Install the built-in starter catalog of breath exercises (box breathing, 4-7-8, coherent, pursed-lip, diaphragmatic, physiological sigh, power breaths). Idempotent: existing patterns are left untouched.
- Output keybreath.result
- Classificationreal
- POST /breath/patterns/seedHTTP route
Breath.SetGoal
Set or update the per-subject incentive goal: target inspiratory volume, daily session target, and reminder cadence. Persists a BreathGoal vertex.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| target_volume_ml | optional | |||
| daily_session_target | optional | |||
| reminder_interval_minutes | optional |
- Output keybreath.result
- Classificationreal
- POST /breath/goalHTTP route
Breath.Status
Breath subsystem status (session + breath counts, best volume on record).
- Output keybreath.result
- Classificationroute_handler
- GET /breath/statusHTTP route
Breath.SyncDevice
Pull buffered frames from a device transport (via the Device app's Device.ReadFrames dispatch seam) and ingest them. Best-effort: a no-op when no Device app is registered.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| transport_id | optional | |||
| session_id | optional |
- Output keybreath.result
- Classificationreal
- POST /breath/device/syncHTTP route
Breath.ViewPatch
Live patch frame for the breath session SSR view — re-renders the session's status pills as new breaths arrive (polled by the document view's live slot).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| session_id | optional |
- Output keybreath.result
- Classificationroute_handler
- GET /breath/document/patchHTTP route
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authorityhyper
- Preferred truthhyper
- App ownerBreath
- SQL projectionnone · DDL declarations: 0
- BreathGoal
- BreathPattern
- BreathSession
- BreathGoal
- BreathPattern
- BreathSession
- None declared.
- None declared.
- None declared.
- No model warnings were reported.
Capabilities and dependencies
- Hyperdb
Structure review · 1
- Breath · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)