This is a submission for the Presage SmartSpectra SDK Challenge
What I Built
Modern developers, engineers, and digital creators spend 8 to 14 hours daily glued to screens in deep cognitive immersion. However, this continuous focus silently induces acute physiological dysregulations:
- Screen Apnea (Unconscious Breath-Holding): Over 80% of computer workers involuntarily hold their breath or breathe shallowly while typing, coding, or debugging, causing elevated cortisol and sympathetic nervous system overdrive.
- Asthenopia & Ocular Fatigue: Natural blink rates drop drastically from 15–20 blinks/min down to 4–6 blinks/min, triggering severe dry eye strain, headaches, and computer vision syndrome.
- Hidden Sympathetic Exhaustion: Elevated resting pulse rates and depleted Heart Rate Variability (HRV) go undetected until physical burnout hits.
MindCalm Workspace is a contactless, real-time biofeedback and ergonomic companion. Powered by the Presage SmartSpectra v3.4 SDK using an ordinary laptop camera and zero wearable hardware, MindCalm continuously measures:
- Photoplethysmography (PPG Pulse Wave) and instantaneous Pulse Rate (BPM)
- Heart Rate Variability (HRV - RMSSD) reflecting autonomic nervous system tone
- Thoracic Respiration Trajectory and Breaths-Per-Minute (RPM) to combat screen apnea
- Real-Time Blink Dynamics tracking cumulative blink counts and visual fatigue alerts under the 20-20-20 ergonomics rule
When high cognitive strain or shallow respiration is detected, MindCalm dynamically responds in real time with an autonomic Breathing Pacer (Box 4-4-4-4, Coherent 5-5, and Relax 4-7-8) featuring Biofeedback Coherence Sync, alongside an Adaptive Neuro-Acoustic Soundscape Generator using the native Web Audio API (Binaural Beats modulated dynamically to Alpha 10Hz flow or Theta 4Hz calming).
Demo
- Live Web Application: https://mindcalm-workspace.onrender.com
- Video Walkthrough: (Video walkthrough in production — will be uploaded to YouTube and embedded shortly!)
Key Live Features:
- 30Hz Dual-Waveform Visualizer: Renders real-time rPPG blood volume pulses and thoracic respiratory waves simultaneously on HTML5 Canvas.
- Biofeedback Coherence Sync: Dynamically matches user respiration to optimal vagal nerve pacing patterns with live resonance feedback.
- Adaptive Audio Synthesis: Generates binaural sine-wave audio and filtered Brownian noise directly in the browser's Web Audio API.
- SmartSpectra Optical Viewport: Features an in-memory face reticle and 30 FPS local sampling indicator.
Code
- GitHub Repository (Public & MIT Licensed): https://github.com/diusazzad/mindcalm-workspace
Architecture & Tech Stack:
- Presage SmartSpectra SDK v3.4.0 with native Windows x64 FFI bindings (
@smartspectra/node-sdk-win32-x64) - Backend: Node.js (v18+), Express, WebSocket (30Hz high-frequency telemetry broadcasting)
- Frontend: React 18, Vite, Tailwind CSS, Lucide Icons, HTML5 Canvas, Web Audio API
- Testing: Native Node.js Test Suite (
node:test, 10/10 automated tests passing with GitHub Actions CI)
How It Responds to Human Signals
MindCalm Workspace interfaces directly with the official @smartspectra/node-sdk to listen for high-frequency physiological signals:
javascript // server/services/smartspectra.js import { SmartSpectraSDK, breathingMetrics, cardioMetrics } from '@smartspectra/node-sdk'; this.sdkInstance = new SmartSpectraSDK({ apiKey: this.apiKey, metrics: [cardioMetrics, breathingMetrics], onTelemetry: (data) => this._handleNativeSdkMetrics(data) }); ## Prize Categories ### Best Thoughtful Real-World Use - **Real-World Need:** Screen-bound knowledge workers and software developers suffer from chronic posture stress, screen apnea, and digital eye strain. Wearable devices (smartwatches, chest straps) are restrictive, require recharging, and are uncomfortable during long desk hours. - **Who It's For:** Engineers, remote workers, students, and digital creators who spend extended periods working at computer screens. - **Thoughtful Design:** MindCalm requires zero wearables, zero configuration, and zero invasive installations. It operates seamlessly in the background through an ambient browser dashboard, turning existing laptop webcams into a non-intrusive biofeedback guardian. ## Consent and Data Handling MindCalm Workspace was engineered with a strict **Privacy-First & Zero-Knowledge Architecture**: 1. **Explicit Opt-In Consent Gate:** - Camera hardware is **never** accessed automatically. The application requires users to read and explicitly confirm the `ConsentGateModal` before optical sampling begins. - Users can revoke consent or pause telemetry at any time with a single click, which immediately kills active streams and destroys in-memory buffers. 2. **100% Ephemeral In-Memory Processing:** - All optical sampling and rPPG extraction happens exclusively in volatile RAM. - **Zero raw video frames, facial images, biometrics, or identifiable crops are ever recorded, saved to local disk, or transmitted over any external network.** 3. **Strict Non-Medical Ergonomics Disclaimer:** - MindCalm Workspace is strictly a non-clinical wellness and ergonomics tool for workplace productivity. - **It is NOT a medical device and does NOT diagnose, treat, mitigate, or prevent any medical condition or disease.** 4. **Hardware-Free Simulation Fallback:** - Evaluators without webcam access can test the entire platform through deterministic mathematical simulation reproducing genuine human physiological responses. ## Agent Session The end-to-end design, implementation of the Presage SmartSpectra v3.4 SDK bindings, 30Hz WebSocket stream engine, and Web Audio API synthesis were developed collaboratively using AI agent orchestration. - **Agent Tooling:** Antigravity CLI / Gemini CLI / DevRelay Gateway - **Session Transcript:** Preserved with zero personal credentials and public-ready.