<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sree San Geethan (Sree)</title>
    <description>The latest articles on DEV Community by Sree San Geethan (Sree) (@sree_sangeethan).</description>
    <link>https://dev.to/sree_sangeethan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3770108%2F4724eb5f-1d7e-4c60-9e28-6c231965cdee.png</url>
      <title>DEV Community: Sree San Geethan (Sree)</title>
      <link>https://dev.to/sree_sangeethan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sree_sangeethan"/>
    <language>en</language>
    <item>
      <title>Desk Calm : a camera break cue that follows your breathing</title>
      <dc:creator>Sree San Geethan (Sree)</dc:creator>
      <pubDate>Fri, 20 Nov 2026 11:26:20 +0000</pubDate>
      <link>https://dev.to/sree_sangeethan/desk-calm-a-camera-break-cue-that-follows-your-breathing-published-true-541</link>
      <guid>https://dev.to/sree_sangeethan/desk-calm-a-camera-break-cue-that-follows-your-breathing-published-true-541</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/presage-2026-11-04"&gt;Presage SmartSpectra SDK Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;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:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;20 or more breaths per minute: slow down and drop your shoulders&lt;/li&gt;
&lt;li&gt;13 to 19: this is a steady desk pace&lt;/li&gt;
&lt;li&gt;12 or fewer: breathing looks slow and quiet, stay with it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://youtu.be/V0tOSlPJ3rk" rel="noopener noreferrer"&gt;https://youtu.be/V0tOSlPJ3rk&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/Sreesangeethan/desk-calm" rel="noopener noreferrer"&gt;https://github.com/Sreesangeethan/desk-calm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Setup is in the README. Short version:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install Node.js 22.12 or newer.&lt;/li&gt;
&lt;li&gt;Clone the repo, then run &lt;code&gt;npm install&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;In &lt;code&gt;renderer.js&lt;/code&gt;, replace &lt;code&gt;YOUR_API_KEY_HERE&lt;/code&gt; with a free Presage API key from &lt;a href="https://physiology.presagetech.com/" rel="noopener noreferrer"&gt;https://physiology.presagetech.com/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;From Command Prompt, run &lt;code&gt;npm start&lt;/code&gt;. Do not use the VS Code terminal. It sets &lt;code&gt;ELECTRON_RUN_AS_NODE=1&lt;/code&gt; and Electron quits immediately.&lt;/li&gt;
&lt;li&gt;Tick the camera box, click Start, and sit still with your face and upper chest in frame.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The API key is not in the repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Responds to Human Signals
&lt;/h2&gt;

&lt;p&gt;The live signal is &lt;strong&gt;breathing rate&lt;/strong&gt; from the Presage SmartSpectra SDK (&lt;code&gt;breathingMetrics&lt;/code&gt;). Cardio and face metrics are still available as optional toggles from the official Electron quickstart, but the Desk Calm banner does not use them.&lt;/p&gt;

&lt;p&gt;The app is the official Node.js Electron quickstart, then three additions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;index.html&lt;/code&gt; adds a consent checkbox and a banner, &lt;code&gt;#calm-banner&lt;/code&gt;, between the camera and the readouts.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;renderer.js&lt;/code&gt; reads the latest breathing sample inside &lt;code&gt;handleMetrics&lt;/code&gt; with &lt;code&gt;lastValue(metrics.breathing.rate)&lt;/code&gt; and passes that number to &lt;code&gt;updateCalm&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;updateCalm&lt;/code&gt; sets the banner text and color: amber at 20 or above, green from 13 to 19, blue at 12 or below.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Start is wired so it does nothing until &lt;code&gt;#consent-camera&lt;/code&gt; 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.&lt;/p&gt;

&lt;p&gt;The SDK returns a breathing rate after roughly a 30-second window. Until that number exists, the banner says to sit still.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Best Thoughtful Real-World Use.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Consent and Data Handling
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;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."&lt;/li&gt;
&lt;li&gt;The camera turns on only after Start. Stop releases the preview. Closing the window destroys the SDK session.&lt;/li&gt;
&lt;li&gt;This app does not save video, screenshots, or measurements to disk. There is no account and no database.&lt;/li&gt;
&lt;li&gt;This app does not upload frames to its own server and does not send them to a third-party AI service.&lt;/li&gt;
&lt;li&gt;The SmartSpectra SDK runs the measurement on the computer. It contacts Presage to authenticate the API key. I did not add any extra telemetry.&lt;/li&gt;
&lt;li&gt;Nothing is retained after the window closes, so there is nothing for the user to delete.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This project does not claim to diagnose, treat, or support a medical decision. The camera is never used without the checkbox.&lt;/p&gt;

&lt;h2&gt;
  
  
  Agent Session
&lt;/h2&gt;

&lt;p&gt;No supported agent-session transcript. I used an AI chat assistant for the integration steps, then edited &lt;code&gt;index.html&lt;/code&gt;, &lt;code&gt;renderer.js&lt;/code&gt;, and &lt;code&gt;styles.css&lt;/code&gt; locally and verified them on a webcam.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>presagechallenge</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
