Skip to content
1 viewer
View

Breath reference

1 page, 20 routes, 20 connections and 0 CLI commands, generated from the declarations of Breath without reading storage or running anything.

AboutCode

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

Declared views
PageView idRoleRouteOrderParentEntityNavigation
Overviewbreath.homehome/view/breath0in navigation
Breath sessionbreath.itemdetail/view/breath/{session_id}110breath.homeBreathSessionhidden
2 rows

Connections · 20

Breath.DeleteGoal

Remove a subject's incentive goal vertex.

Calls and output
  • Output keybreath.result
  • Classificationreal
  • DELETE /breath/goalHTTP route

Breath.DeletePattern

Remove a cataloged breath pattern.

Breath.DeletePattern input
FieldTypeRequiredDescriptionAllowed
pattern_idrequired
1 row
Calls and output
  • Output keybreath.result
  • Classificationreal
  • DELETE /breath/patternHTTP route

Breath.DeleteSession

Remove a breath session vertex.

Breath.DeleteSession input
FieldTypeRequiredDescriptionAllowed
session_idrequired
1 row
Calls and output
  • Output keybreath.result
  • Classificationreal
  • DELETE /breath/sessionHTTP route

Breath.GetGoal

Get a subject's incentive goal.

Calls and output
  • Output keybreath.result
  • Classificationroute_handler
  • GET /breath/goalHTTP route

Breath.GetPattern

Get a single cataloged breath pattern by id.

Breath.GetPattern input
FieldTypeRequiredDescriptionAllowed
pattern_idrequired
1 row
Calls and output
  • Output keybreath.result
  • Classificationroute_handler
  • GET /breath/patternHTTP route

Breath.GetSession

Get a single breath session by id.

Breath.GetSession input
FieldTypeRequiredDescriptionAllowed
session_idrequired
1 row
Calls and output
  • 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.

Breath.IngestFrames input
FieldTypeRequiredDescriptionAllowed
framesrequired
session_idoptional
2 rows
Calls and output
  • 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.

Breath.IngestReading input
FieldTypeRequiredDescriptionAllowed
volume_mlrequired
hold_secondsoptional
session_idoptional
3 rows
Calls and output
  • Output keybreath.result
  • Classificationreal
  • POST /breath/readingHTTP route

Breath.ListPatterns

List cataloged breath patterns, optionally filtered by category or tag.

Calls and output
  • Output keybreath.result
  • Classificationroute_handler
  • GET /breath/patternsHTTP route

Breath.ListSessions

List breath sessions, optionally filtered by subject or technique.

Calls and output
  • 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).

Breath.LogSession input
FieldTypeRequiredDescriptionAllowed
techniqueoptional
target_volume_mloptional
breathsoptional
3 rows
Calls and output
  • 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.

Calls and output
  • 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.

Calls and output
  • 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.

Breath.SavePattern input
FieldTypeRequiredDescriptionAllowed
nameoptional
pattern_idoptional
phasesoptional
cyclesoptional
4 rows
Calls and output
  • 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.

Breath.ScoreSession input
FieldTypeRequiredDescriptionAllowed
session_idrequired
1 row
Calls and output
  • 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.

Calls and output
  • 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.

Breath.SetGoal input
FieldTypeRequiredDescriptionAllowed
target_volume_mloptional
daily_session_targetoptional
reminder_interval_minutesoptional
3 rows
Calls and output
  • Output keybreath.result
  • Classificationreal
  • POST /breath/goalHTTP route

Breath.Status

Breath subsystem status (session + breath counts, best volume on record).

Calls and output
  • 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.

Breath.SyncDevice input
FieldTypeRequiredDescriptionAllowed
transport_idoptional
session_idoptional
2 rows
Calls and output
  • 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).

Breath.ViewPatch input
FieldTypeRequiredDescriptionAllowed
session_idoptional
1 row
Calls and output
  • Output keybreath.result
  • Classificationroute_handler
  • GET /breath/document/patchHTTP route

Schema and data model

Declared storage and kinds. Linked kinds open their app pages.

Declared storage
  • Authorityhyper
  • Preferred truthhyper
  • App ownerBreath
  • SQL projectionnone · DDL declarations: 0
Hyper vertex kinds read
Hyper vertex kinds written
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • None declared.
Asset namespaces minted
  • None declared.
Model warnings
  • No model warnings were reported.

Capabilities and dependencies

Depends on
  • Hyperdb

Structure review · 1

Warnings · 1
  • Breath · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)