<?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: Beauty Benedict</title>
    <description>The latest articles on DEV Community by Beauty Benedict (@beautybenedict).</description>
    <link>https://dev.to/beautybenedict</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%2F4249121%2Fa49d323e-9048-4539-8dbb-f236285e986e.jpg</url>
      <title>DEV Community: Beauty Benedict</title>
      <link>https://dev.to/beautybenedict</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/beautybenedict"/>
    <language>en</language>
    <item>
      <title>CalmRR: a party game your heartbeat plays</title>
      <dc:creator>Beauty Benedict</dc:creator>
      <pubDate>Tue, 17 Nov 2026 07:34:24 +0000</pubDate>
      <link>https://dev.to/beautybenedict/calmrr-a-party-game-your-heartbeat-plays-1o8b</link>
      <guid>https://dev.to/beautybenedict/calmrr-a-party-game-your-heartbeat-plays-1o8b</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/devteam/join-the-presage-smartspectra-sdk-challenge-3000-in-prizes-across-10-winners-1370"&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;&lt;strong&gt;CalmRR&lt;/strong&gt; is a party game where your body is the controller. You sit in front of your webcam, the game learns your normal pulse and breathing (your baseline), and then it throws 60 seconds of scares at you: red flashes, screen shakes, fake alerts and loud stings. The closer you keep your real pulse and breathing to your baseline, the higher your Calm % stays. At the end you get a rank, from &lt;strong&gt;Monk Mode&lt;/strong&gt; to &lt;strong&gt;Total Meltdown&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You can play solo, or in Duel mode where two players take the exact same scares one after the other and the calmer body wins.&lt;/p&gt;

&lt;p&gt;Your heartbeat is also the soundtrack: the beat of the music follows your live pulse, and your breathing opens and closes the sound filter. When you panic, you hear yourself panic.&lt;/p&gt;

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

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

&lt;p&gt;The video is a short motion-design walkthrough with screen footage of the real app. It shows how CalmRR works (two signals from one webcam, the scares, the scoring and the ranks) and the real interface, including the camera consent screen that must be accepted before the camera turns on. Unreliable internet on my side during the challenge made it hard to record a stable live-signal round, so the video does not show live readings. The live Presage integration is in &lt;code&gt;presage.js&lt;/code&gt; in the repo.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://github.com/BeautyBenedict/Calmrr" rel="noopener noreferrer"&gt;https://github.com/BeautyBenedict/Calmrr&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Setup instructions are in the README. In short:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install Node.js (LTS), then run &lt;code&gt;npm install&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;npm start&lt;/code&gt; runs the game in simulator mode, with no camera and no API key needed&lt;/li&gt;
&lt;li&gt;For the live experience, get a free key from the Presage developer portal, copy &lt;code&gt;.env.example&lt;/code&gt; to &lt;code&gt;.env&lt;/code&gt;, paste the key in, then run &lt;code&gt;npm run start:live&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No login is needed to test it. To test live mode you need your own Presage API key and a webcam.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Live signals used:&lt;/strong&gt; pulse (&lt;code&gt;cardio.pulseRate&lt;/code&gt;) and breathing rate (&lt;code&gt;breathing.rate&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How the SDK is integrated:&lt;/strong&gt; all SmartSpectra calls live in one file, &lt;code&gt;presage.js&lt;/code&gt;. The Electron main process creates a &lt;code&gt;SmartSpectraSDK&lt;/code&gt; (&lt;code&gt;@smartspectra/node-sdk&lt;/code&gt; 3.5.0) with custom input and requests the breathing and cardio metrics. The app window opens the webcam so the player can see themselves, and sends RGBA frames to the SDK. Metrics events are decoded with &lt;code&gt;decodeMetrics&lt;/code&gt;, and the newest pulse and breathing samples are passed to the game together with their stability flag and the SDK's validation hints (for example, "place more of the chest in view"). Those hints are shown to the player on screen while the SDK is locking on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How the game responds in real time:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Baseline: the game averages your stable pulse and breathing readings to learn your normal.&lt;/li&gt;
&lt;li&gt;Scoring: every second it compares your live pulse and breathing with your baseline. Staying at or under baseline earns full points, and the further above it you go, the fewer points you get.&lt;/li&gt;
&lt;li&gt;Sound: the heartbeat of the soundtrack runs at your live pulse, and your breathing rate controls the sound filter.&lt;/li&gt;
&lt;li&gt;Display: live pulse and breathing lines are drawn with your baseline marked.&lt;/li&gt;
&lt;li&gt;Safety net: if the SDK reports a recoverable error, the app reconnects automatically instead of freezing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;A note on the simulator:&lt;/strong&gt; the repo includes a built-in simulator so the game can be developed and demoed without a camera. It is clearly labelled on screen and is never used in Live mode.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Most Creative or Delightful Use.&lt;/strong&gt; Most heart-rate demos show you a number. CalmRR turns your nervous system into the game: the thing being scared is also the thing being scored, and it is the soundtrack. It is meant to be played with friends, laughing at who panics first.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Camera consent:&lt;/strong&gt; the camera is only used in Live mode, and only after the player ticks an explicit consent box on the start screen. It runs only while the game is running, and it stops when the game ends or the player returns to the menu.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who is on camera:&lt;/strong&gt; the player consents for themselves. In Duel mode each player takes their own turn in front of the camera, so nobody is monitored without knowing. There is no covert or background monitoring.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Processing:&lt;/strong&gt; pulse and breathing are computed by Presage's SmartSpectra native runtime on the player's computer. The SDK contacts Presage's servers to authenticate the API key and fetch its models.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SDK telemetry:&lt;/strong&gt; Presage telemetry is on by default, and this app turns it off (&lt;code&gt;enableTelemetry: false&lt;/code&gt; in &lt;code&gt;presage.js&lt;/code&gt;). Per Presage's documentation, telemetry does not include raw video frames or measured physiological values. Presage's own privacy policy still applies to authentication requests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage, sharing, retention, deletion:&lt;/strong&gt; the app does not save, share or upload video, readings or scores. Nothing is written to disk, so closing the app deletes everything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Optional AI services:&lt;/strong&gt; none are used.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No medical claims:&lt;/strong&gt; CalmRR is a game. It makes no diagnosis or treatment claims and must not be used for medical decisions. The scores are for fun only.&lt;/li&gt;
&lt;/ul&gt;

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