This is a submission for the Presage SmartSpectra SDK Challenge
What I Built
Desk Calm is a small Windows desktop app for people who sit at a computer all day. You look at the webcam, sit still for about half a minute, and the app shows your live breathing rate. One sentence under the camera changes with that number:
- 20 or more breaths per minute: slow down and drop your shoulders
- 13 to 19: this is a steady desk pace
- 12 or fewer: breathing looks slow and quiet, stay with it
It is a break cue, not a health judgment. I built it for the same kind of day I have at work: long stretches at a desk, shoulders up, no reminder to pause except a clock. The app does not tell you that you are sick, stressed, or healthy. It only reflects the breathing number the SDK is reporting right now and suggests a simple action.
Demo
The video shows the consent checkbox, Start staying disabled until it is ticked, the live breathing number, the colored banner updating from that number, and Stop turning the camera off.
Code
https://github.com/Sreesangeethan/desk-calm
Setup is in the README. Short version:
- Install Node.js 22.12 or newer.
- Clone the repo, then run
npm install. - In
renderer.js, replaceYOUR_API_KEY_HEREwith a free Presage API key from https://physiology.presagetech.com/ - From Command Prompt, run
npm start. Do not use the VS Code terminal. It setsELECTRON_RUN_AS_NODE=1and Electron quits immediately. - Tick the camera box, click Start, and sit still with your face and upper chest in frame.
The API key is not in the repository.
How It Responds to Human Signals
The live signal is breathing rate from the Presage SmartSpectra SDK (breathingMetrics). Cardio and face metrics are still available as optional toggles from the official Electron quickstart, but the Desk Calm banner does not use them.
The app is the official Node.js Electron quickstart, then three additions:
-
index.htmladds a consent checkbox and a banner,#calm-banner, between the camera and the readouts. -
renderer.jsreads the latest breathing sample insidehandleMetricswithlastValue(metrics.breathing.rate)and passes that number toupdateCalm. -
updateCalmsets the banner text and color: amber at 20 or above, green from 13 to 19, blue at 12 or below.
Start is wired so it does nothing until #consent-camera is checked. The same check runs again when the SDK returns to idle, and after Stop or Reset, so the button cannot turn itself back on behind the user's back.
The SDK returns a breathing rate after roughly a 30-second window. Until that number exists, the banner says to sit still.
Prize Categories
Best Thoughtful Real-World Use.
The person this is for is someone at a desk who will not put on a chest strap just to remember to breathe. The flow is one checkbox, one button, one sentence. The copy never says "diagnosis," "stress score," or "you should seek treatment." A fast number only asks you to drop your shoulders. A quiet number asks you to stay with it. If the camera cannot get a clean reading, the app waits instead of inventing a result.
Consent and Data Handling
- The camera consent checkbox starts unchecked. Start stays disabled until the user ticks "I allow this app to use my camera while it is open. Video is not saved."
- The camera turns on only after Start. Stop releases the preview. Closing the window destroys the SDK session.
- This app does not save video, screenshots, or measurements to disk. There is no account and no database.
- This app does not upload frames to its own server and does not send them to a third-party AI service.
- The SmartSpectra SDK runs the measurement on the computer. It contacts Presage to authenticate the API key. I did not add any extra telemetry.
- Nothing is retained after the window closes, so there is nothing for the user to delete.
This project does not claim to diagnose, treat, or support a medical decision. The camera is never used without the checkbox.
Agent Session
No supported agent-session transcript. I used an AI chat assistant for the integration steps, then edited index.html, renderer.js, and styles.css locally and verified them on a webcam.
Top comments (0)