This is a submission for the Presage SmartSpectra SDK Challenge.
What I Built
Commit Pulse gives your git history a heartbeat. A small local Node app reads your pulse from the camera with the Presage SmartSpectra SDK. Every time you commit, a prepare-commit-msg hook stamps the median of your last minute onto the commit. This one is from the demo below:
fix: handle expired refresh token Heart-Rate: 82 bpm Commit-Pulse: elevated (median of last 56s, SmartSpectra) Then the stress map reads those trailers back out of git log and ranks files by how far their commits sit above your own baseline. Your auth/ folder probably makes your heart race. Now you can prove it.
Demo
One take, real data: my live pulse next to the camera preview, one-click hook install, four real commits, the stress map, git log with the trailers, and pausing the camera.
Code and setup instructions: https://github.com/emilpz320-a11y/commit-pulse
How It Responds to Human Signals
- Live signal: pulse rate (SmartSpectra
cardioMetrics); breathing rate when the chest is in frame. - Smoothing: a 60-second rolling median, with a readiness gate (about 15 s of steady reading) so a commit never gets a stamp from a half-formed measurement.
- Commit hook: asks
127.0.0.1:47647/nowfor the current median. No app, no reading, or a paused camera means no stamp, and the hook never blocks a commit. - Stress map: per-file average pulse versus your personal median. It compares you with you, never with a population norm.
- Phone camera over Wi-Fi: during development the DroidCam virtual webcam driver handed the SDK solid green frames, so the SDK kept saying "No face found." I added an MJPEG input (
lib/mjpeg.js) that decodes the phone's stream and pushes RGB frames through the SDK's custom input (useCustomInput()+sendFrame()) with real capture timestamps. At 640×480 it holds about 28 fps, above the SDK's 25 fps minimum. In this mode the dashboard shows a small local camera preview (newest frame in memory only, relayed to 127.0.0.1) so you can check your framing.
Consent and Data Handling
- The camera is on only while the dashboard says measuring; Pause camera stops the SDK and releases the device.
- Frames are processed on this machine by the SmartSpectra SDK and are never written to disk or sent anywhere by Commit Pulse.
- The only thing stored is a few short trailers, on commits you make, in repositories where you installed the hook. Remove the hook from the dashboard or use
git commit --no-verifyto skip it. Trailers are part of git history, so think before pushing them to a public repo. - No database: at most 60 s of numbers (5 minutes for the live chart) live in memory and vanish when the app closes.
- SDK telemetry is off by default; opt in with
SMARTSPECTRA_TELEMETRY=1. The SDK does authenticate the API key with Presage. - No AI services are used.
- Not medical. "Racing" means "above your usual", nothing more. No diagnosis, no decisions about anyone's health, and it only ever measures the person sitting at their own keyboard who started it.
Prize Categories
Best Thoughtful Real-World Use: a small, consent-first habit tool for developers. It only measures the person who started it, at their own keyboard, and every stamp is something they can see, skip or remove.
Agent Session
Built with Claude Code as a coding agent: it wrote and tested the app, diagnosed the blank DroidCam frames by dumping what the SDK actually received, added the phone-stream input, and recorded and edited the demo.