跳到正文
DEV Community· zeroXflame·· 41 分鐘前AI 評分40

Offcall:面向事故後兩分鐘的桌面應用程式

Offcall is a desktop app for the two minutes after an incident

AI 導讀

Offcall 透過 Presage SmartSpectra SDK 讀取呼吸率,以呼吸穩定程度決定交接問題何時出現,並以潮汐動畫呈現呼吸節奏。用戶回答三個問題後,可取得純文字交接紀錄;呼吸讀數不會寫入紀錄,也不會儲存影片、影格、讀數或歷史資料。

正文

This is a submission for the Presage SmartSpectra SDK Challenge

What I Built

Offcall is a desktop app for the two minutes after an incident, before the handoff note gets written. An on-call engineer closes a ticket at 02:14 and immediately writes the note the next person will trust — while still in the incident, still holding the whole system in their head, still breathing like someone who just fixed something.

The app opens the camera and reads one signal: breathing rate, through the Presage SmartSpectra SDK. That number does exactly two things. It paces a tide on screen — a steadier breath gives a slower, larger swell — and it decides when the next handoff question appears. Then the session forgets the reading entirely.

Three questions, in order: What happened · What is still open · What you are putting down.

The output is a plain-text handoff note you can paste anywhere. No score, no history, no vitals dashboard, no advice. Offcall never tells you how you are doing; it changes how fast the next two minutes move.

Demo

— watch the live breathing rate at top left, the tide changing shape as it stabilises, question two opening after fifteen steady seconds, question three after twenty-three, and the sealed note with no readings in it. It also shows Skip the pause, which closes the camera immediately.
i analyze video of someone breathing to test it
Code

/home/phntm/hacking/hackathons/awsmsp/experiences/offcall
(MIT) it 's branch offcall of my feature building — npm install && npm start , paste a key from physiology.presagetech.com. No login. Judging without a webcam: npm test (28 tests), npm run simulate , npm run test:ui (drives the real window, no camera needed).

How It Responds to Human Signals

SmartSpectraSDK with the SDK's preload bridge and bindSmartSpectraIpc ; requestedMetrics: [...breathingMetrics] only, so a key without a cardio entitlement is enough. decodeMetrics → metrics.breathing.rate.at(-1) gives a value and a stable flag. Stability becomes a contiguous streak: one unstable reading resets it, and the streak — not a stopwatch — opens questions at 15 and 23 steady seconds. Rate sets the tide's period ( 60/rate × 1.2 , clamped 3.5–9s); steadiness sets amplitude, and an unsteady signal makes the tide smaller, never sharper. validationStatus hints are shown verbatim; stop() / destroy() run on seal, skip and close. All thresholds live in one dependency-free module with 28 tests.

Prize Categories

Best Thoughtful Real-World Use and Most Creative or Delightful Use. The first: handoffs written by tired people, for an audience that cannot be coached or scored at 2am — pause offered not imposed, camera-free path first-class, nothing to look at from outside, failures designed (refused key returns to the key field; no reading is admitted after eight seconds). The second: the tide is the whole interface and the only reward; question three is the one no handoff template asks; and the playful part is the refusal — a camera that can see your chest move, used only to decide when to ask you something.

Consent and Data Handling

Consent is a gate: the pause cannot open without the checkbox and a key; camera starts only on the press; preview stays visible; consent is cleared per session. Breathing rate only. Nothing stored — no video, frames, readings or history; a three-minute in-memory array; no database, localStorage , analytics or server; the Electron permission handler grants camera-only media to the bundled page only. SDK telemetry is off ( enableTelemetry: false , and checkDeviceReadiness() is never called) — disclosed rather than implied, because the SDK defaults it on and it is authenticated and account-correlatable. No AI services: requestInsight() is never called. Not a medical device, no diagnosis or monitoring.

來源:DEV Community · dev.to