<?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: M S Abhishek</title>
    <description>The latest articles on DEV Community by M S Abhishek (@msabhishek22).</description>
    <link>https://dev.to/msabhishek22</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%2F4259583%2Fa9ac2f0f-5472-41c2-88a1-a840d145e44e.jpg</url>
      <title>DEV Community: M S Abhishek</title>
      <link>https://dev.to/msabhishek22</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/msabhishek22"/>
    <language>en</language>
    <item>
      <title>Pulse Coach — a webcam that notices a racing pulse and breathes with you</title>
      <dc:creator>M S Abhishek</dc:creator>
      <pubDate>Mon, 23 Nov 2026 02:49:48 +0000</pubDate>
      <link>https://dev.to/msabhishek22/pulse-coach-a-webcam-that-notices-a-racing-pulse-and-breathes-with-you-4lfe</link>
      <guid>https://dev.to/msabhishek22/pulse-coach-a-webcam-that-notices-a-racing-pulse-and-breathes-with-you-4lfe</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;Pulse Coach is a small web app that watches your pulse through your webcam while you work. Most of the day it just shows you the number, your breathing rate, and the live signal. The part I cared about is what it does next: if your pulse stays at or above 100 beats per minute for a full five seconds, the page says so, plainly, and starts a slow breathing guide — a circle that grows while you breathe in for four seconds and shrinks while you breathe out for six. When your pulse stays under 90 for five seconds, it tells you that you settled, and how high it had peaked.&lt;/p&gt;

&lt;p&gt;I built it because my own warning signs are easy to miss at a desk. Three hours into a hard problem, my shoulders are up and my breathing is shallow and I am always the last to know. A number on a screen I can ignore; a page that notices, and then breathes with me, is harder to ignore.&lt;/p&gt;

&lt;p&gt;This is a wellness toy, not a medical tool. It does not diagnose or treat anything.&lt;/p&gt;

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

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/1OzUB13VuPc" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;One honest note about the video: it was recorded on a build machine with no camera and no Presage key yet, so it shows the app's local-estimate mode (labelled as such on screen, the whole time) reading a test camera feed — a simple generated face whose colour pulses at a known rate. You can watch the app read 72 beats per minute off that feed, then track it up to 114, hold its nerve for five full seconds, and only then raise the flag and start the breathing guide. Nothing in the video is a screenshot or a mock: the pipeline is really running. With a key and a real camera, the same page runs on the SmartSpectra SDK instead — the steps are in the repo, and the reaction you see is identical, because both modes feed the same logic.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://github.com/MSAbhishek22/pulse-coach" rel="noopener noreferrer"&gt;https://github.com/MSAbhishek22/pulse-coach&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Setup is in the README: &lt;code&gt;npm install&lt;/code&gt;, put a free Presage key in &lt;code&gt;.env&lt;/code&gt;, &lt;code&gt;npm start&lt;/code&gt;, open the page. Nine small tests cover the signal maths (&lt;code&gt;npm test&lt;/code&gt;).&lt;/p&gt;

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

&lt;p&gt;The app uses two live signals from the SmartSpectra SDK: &lt;strong&gt;pulse rate&lt;/strong&gt; and &lt;strong&gt;breathing rate&lt;/strong&gt; (with the SDK's confidence score driving the signal-quality bar). A small Node server runs the SDK (&lt;code&gt;@smartspectra/node-sdk&lt;/code&gt;, asking for its breathing and cardio metric sets) on the machine's camera, decodes each metrics packet, and streams the values to the page over Server-Sent Events. The page keeps the last few minutes of pulse readings and applies one simple rule, on purpose: nothing reacts to a single high second. The pulse has to stay high for five seconds before the flag rises, and stay low for five seconds before the page calls it settled. Spikes, laughs and one deep breath never trigger anything.&lt;/p&gt;

&lt;p&gt;If the server has no Presage key, the page does not give up: it makes its own rough estimate in the browser (the green channel over the face area, cleaned up and measured for its rhythm), and labels itself, in plain words, as a local estimate and not a Presage reading. I would rather ship an honest fallback than a page that only shows an error to anyone without a key — and the flag, the guide and the settled note all work the same.&lt;/p&gt;

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

&lt;p&gt;I am entering both.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best Thoughtful Real-World Use&lt;/strong&gt; is the main one. The need is ordinary: people sit wound up at desks for hours and notice it late. The design choices follow from that — consent before the camera, no accounts, no stored data, plain words instead of scores and streaks, and a reaction that helps in the moment instead of a chart you feel bad about later.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Most Creative or Delightful Use&lt;/strong&gt;, because the app does not just show your body back at you — it answers it. The breathing circle is the whole interface at the moment it matters: no settings, no numbers to read, just in as it grows, out as it shrinks.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;The camera starts only after the user reads a short consent card and clicks "Start the camera". There is no background or hidden capture, ever, and a Stop button (or closing the tab) ends it at once.&lt;/li&gt;
&lt;li&gt;The app itself records nothing and stores nothing. No accounts, no database, no analytics. Numbers live in the page's memory and are gone when the tab closes.&lt;/li&gt;
&lt;li&gt;Local-estimate mode: all processing happens in the browser, on the device. Video never leaves the device.&lt;/li&gt;
&lt;li&gt;Presage mode: the SmartSpectra SDK connects to Presage's service to authenticate the API key and process the signal, as described in Presage's own telemetry and privacy documentation. That traffic is between the SDK and Presage. My app adds no other network calls and keeps no copy of anything. The API key sits in a local &lt;code&gt;.env&lt;/code&gt; file on the server, is never sent to the browser, and is gitignored.&lt;/li&gt;
&lt;li&gt;No diagnosis or treatment claims anywhere in the app, and the page says so up front.&lt;/li&gt;
&lt;/ul&gt;

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