This is a submission for the Presage SmartSpectra SDK Challenge
What I Built
Every day, bus drivers, cab drivers and people driving their families home set off tired,
stressed or rushed, and most of them feel "fine". Tiredness and stress rarely announce
themselves.
Rydra is a private, one-minute check-in for drivers. Before you set off, you sit still in front of
your camera for 60 seconds.SmartSpectra reads your pulse, breathing and heart-rate
variability from your face, and Rydra shows how today compares with your own usual, not
with anyone else.
What it does:
Departure check: a 60-second camera check plus a few quick questions about your
sleep and alertness. Your own answers always count more than the camera.
Your usual: Rydra builds a personal baseline from your calm check-ins (at least 3 good
checks, taken at least 4 hours apart). Until then, it tells you plainly that it's still learning.
Rest plan on your route: plan the trip on a map, and Rydra places breaks along the
route. It adds extra breaks on days when your readings are higher than usual.
Break check: when you're parked for a break, a quick check before you carry on.
Settle routine: after you arrive, 60 seconds of guided slow breathing.
For bus and coach, taxi and ride-hail, and private drivers, worldwide, in English, Naija
Pidgin, French and Spanish.
What it deliberately doesn't do: diagnose anything, measure "fatigue", or ever say you're
"safe to drive". It shows how today compares with your normal, in plain words, and leaves
the decision with the driver. It also reminds drivers to never use it while driving.
Demo
▶ Watch the Rydra demo video (Google Drive)
Code
helenn-szn
/
Rydra
A private one-minute check-in for drivers, built with Presage Smartspectra
Rydra
A private check-in for long-distance drivers, before, during and after the journey.
Drivers check their tyres, fuel and engine before a long trip. Rydra is a check for the person behind the wheel. It uses the Presage SmartSpectra SDK to read live pulse and breathing from a laptop camera, compares them with the driver's own usual readings, and builds a rest plan with breaks at real towns on the route.
Built for the Presage SmartSpectra SDK Challenge on DEV.
Watch the demo video: https://drive.google.com/file/d/1WCX_W34yYwRncXCqgQbQQdQRMvA07GyB/view?usp=drivesdk
Try the web demo: https://rydra-pi.vercel.app (the full interface with simulated readings, on any device including phones; the real camera check runs in the desktop app below).
Rydra is a wellness and planning aid. It is not a medical device and never says a driver is "safe to drive" or "fatigued."
Who it's for
Driver
How Rydra works for them
Bus or coach
Plan a route
Setup (Windows, macOS on Apple Silicon, or Linux):
- Install Node.js 20 or newer.
- git clone https://github.com/helenn-szn/Rydra and cd Rydra
- npm install
- Add your SmartSpectra API key, either in a .env file ( SMARTSPECTRA_API_KEY=your_key ) or in the app under Settings.
- npm start (on Windows you can double-click Start Rydra.bat) Full instructions are in the README.
How It Responds to Human Signals
Signals used: breathing rate, pulse rate and HRV from SmartSpectra
( @smartspectra/node-sdk 3.5.0), in an Electron desktop app.
In real time during a check:
-SmartSpectra's validation feedback drives the Light / Position / Stillness chips and the
hint under the camera ("Move a little closer", "Good. Hold still."). The face oval turns
green when everything is right.
-Live pulse and breathing appear while the 60 seconds run. Rydra only keeps samples
that SmartSpectra marks as stable, and uses their median.
-The frame rate is shown under the camera. If it's too low, Rydra retries in a lighter mode
instead of failing.
After the check, Rydra compares the reading with your personal baseline and gives one of
three plain-language outcomes: close to your usual, a bit different, or take care. On "take
care", your rest plan gets extra breaks and the settle routine is offered.
How I integrated the SDK (and what I learned on Windows):
-I started with Presage's Electron quickstart pattern: the renderer captures the camera
and sends frames to SmartSpectra in the main process. On my HP laptop that main-
process work fell behind and froze the window during checks.
-So Rydra now runs SmartSpectra in its own background process (an Electron
utilityProcess ). The window only receives results, status and a small preview. A
watchdog restarts the engine if it stops responding, so a check can never freeze the
app.
-On my machine, pulse and HRV first failed with "configuration failed". SmartSpectra's
log showed device_id is required for remote model download , so Rydra now gives
the SDK a stable random device ID before it starts. It's a random value made once, with
nothing about the person in it.
-When SmartSpectra can't open a camera or video directly, Rydra decodes the frames
with ffmpeg and hands them to the SDK one by one with exact timestamps.
-My laptop processes frames slower than real time. To test reliably, Rydra can also run a
check on a recorded video of yourself. The check screen clearly says when it's using a
recorded video.
Prize Categories
Best Thoughtful Real-World Use: Rydra is for professional and everyday drivers, the
people responsible for passengers and families on the road. I designed it for that context:
-one-minute checks that fit before a shift
-plain language, with no medical claims
-big, simple screens
-several languages, including Naija Pidgin
-rest planning on the actual route
-privacy first, because drivers shouldn't have to share their body data with an employer
or a server to look after themselves.
Consent and Data Handling
-Consent first: on first launch, Rydra explains what the camera check does and what it
doesn't do, and asks for consent before the camera is ever used. If the consent text
changes, you're asked again.
-The camera runs only when you start a check, and stops when the check ends. There
is no background or covert monitoring.
-No video is saved or uploaded by Rydra. Camera frames go only to the SmartSpectra SDK on your device. The SDK contacts Presage to validate the API key and download its models.
-SDK telemetry is off by default. You can turn it on in Settings. Per Presage's docs,
telemetry sends session summaries, not frames or vitals.
-Storage: readings (pulse, breathing, HRV, quality, time) and your answers are stored
only on your device, in a local file in the app's data folder. Nothing is sent to me or any
server of mine.
-Retention: readings are kept for 90 days by default (you can change this in Settings),
then removed automatically.
-Deletion: Delete all my data in Settings erases everything in one tap.
-Maps: if you plan a route, the place names you type go to OpenStreetMap's Nominatim
and the OSRM routing service to find the route. No health data is ever sent with them.
-Sharing: none. The optional shift badge contains no health data.
-No AI services are used for the readings or the advice.
-No diagnosis or medical decisions: Rydra never diagnoses and never says "safe to
drive" or "fatigued". It shows how today compares with your own usual, and your own
answers always count more than the camera.
Top comments (0)