This is a submission for the Presage SmartSpectra SDK Challenge
What I Built
Blink Board is a desktop communication aid for people who can't speak or use their hands. Six large tiles (Water, Washroom, Pain, Too hot/cold, Call someone, Yes / No) light up one at a time. To choose one, do a long blink while it's highlighted: close your eyes, wait for a soft beep, then open them, and the word is spoken aloud.
That's the whole interaction: no hands, no voice, no special hardwareβjust a laptop webcam.
When someone can't speak, their family often has to guess what they need. I wanted to see if an ordinary laptop webcam could give that person back a few of the most important words, like water, pain and call someone, with something a family could set up on a normal laptop.
The flow:
- Consent screen. The camera stays off until you press Start.
- Blink calibration (~10 s, with spoken prompts). "Keep your eyes openβ¦", then "Now close your eyes until you hear a beep." The app learns what your open and closed eyes look like.
- The board. Tiles are highlighted every 1.5 s. A long blink chooses; normal blinks do nothing.
- Privacy view. Instead of the camera picture, the screen shows only face dots on a dark background, and the eye dots turn green when your eyes count as closed.
Blink Board is not a medical device, makes no health claims, and shouldn't be anyone's only way to communicate.
Demo
βΆοΈ Watch the demo video: https://www.loom.com/share/f197e24798a1486e9d79f4aebd200473
Code
Blink Board
A prototype communication aid for people who can't speak or use their hands Large tiles light up one by one. The user picks the lit tile with a long deliberate blink, and the app speaks the word aloud.
It uses the Presage SmartSpectra SDK to read the face from a webcam, and runs as a desktop app (Electron).
Not a medical device. Blink Board is a prototype. It makes no health claims, doesn't diagnose or monitor anything, and should not be anyone's only way to communicate. Lighting, glasses, camera angle, tiredness and involuntary blinks can all cause missed or wrong choices.
How it works
- Consent screen. The camera stays off until you press Start (or Camera check).
- Blink calibration (about 10 seconds, with spoken prompts): keep your eyes open then close them until you hear a beep. The app learns what your open and closed eyesβ¦
The README covers setup (npm ci, an API key in .env, npm start), troubleshooting, and a full "Camera consent & data handling" section.
Stack: Electron 45 + @smartspectra/node-sdk 3.5.0, using Presage's recommended three-process setup (bindSmartSpectraIpc in main, the SDK preload with contextIsolation and sandbox, the SDK in the renderer). Plain JavaScript, bundled with esbuild. No server, no database, no AI service.
I built Blink Board with Claude Code as my coding assistant, working in phases: consent and an SDK debug panel, then calibration and the board, the privacy view, and the README.
How It Responds to Human Signals
Blink Board doesn't use pulse or breathing. Its live signal is the eyes, from SmartSpectra's face metrics:
const sdk = new SmartSpectraSDK({
requestedMetrics: [MetricType.FACE_LANDMARKS, MetricType.BLINKING],
enableTelemetry: false,
});
sdk.on('metrics', (buf) => {
const m = decodeMetrics(buf);
processLandmarks(m.face?.landmarks ?? []); // 478 points, ~30 sets/s
processBlinking(m.face?.blinking ?? []);
});
(Simplified; the full code is in src/renderer/app.js.)
What I learned about BLINKING: my first plan was to time a "long blink" with the SDK's BLINKING metric. Phase 1 of the project was a debug panel to measure it, and it showed that detected is a short event: normal blinks read about 30β210 ms, and even with my eyes closed for 2β3 seconds it never went above 208 ms. Great for counting blinks, but it can't tell a deliberate hold from a normal blink.
So the long blink comes from Presage's landmarks. From the fixed eye points in the 478-point layout, I compute eye openness (eye height Γ· eye width):
const openness = (dist(upper1, lower1) + dist(upper2, lower2)) / (2 * dist(outerCorner, innerCorner));
In testing it read about 0.28 with eyes open and as low as 0.08 closed, and it timed real closures accurately: two normal blinks logged as 96 and 144 ms, two deliberate closures as 1393 and 2928 ms.
How the experience responds in real time:
- Eyes close β scanning freezes on the tile that was highlighted at the moment they closed. I use the SDK timestamp of the closure, so processing lag can't shift the choice to the next tile.
- 0.5 s β a beep, because the person can't see the screen with their eyes shut.
- Eyes open between 0.5 and 3 s β selected, and the word is spoken with a local Windows voice. Closures longer than 3 s (resting, dozing) are ignored, so nothing is chosen by accident.
-
Face lost β scanning pauses by itself. The app uses SmartSpectra's validation status (
kNoFaceFound,kMultipleFacesFound) and the flow of landmarks. - Calibration sets each person's closed line between their measured open and closed values, with hysteresis so the state doesn't flicker.
- The privacy view is drawn live from the same landmarks.
Prize Categories
Best Thoughtful Real-World Use.
The need: some people, for a while or for good, can't speak or use their hands, but can still control their eyes. Eye-controlled communication aids exist, but often need special hardware. Blink Board explores what's possible with only a normal laptop webcam.
Designed for the person using it:
- Huge tiles and one action. A long blink is the only input. No gaze accuracy needed, just one deliberate gesture.
- Audio cues for closed eyes. The beep tells you when you can let go; you can't see the screen with your eyes shut.
- Hard to trigger by accident. Normal blinks, closures over 3 s, and moments when the face isn't visible never choose anything. After a choice there's a 1 s pause, and the eyes must open before the next one.
- Personal calibration, because everyone's eyes are different.
- Caregiver controls: Pause, Resume and Recalibrate.
- Privacy view on by default, so a face isn't on show to everyone in the room.
What's next: an editable board, a spelling mode, and testing with real users and caregivers.
Consent and Data Handling
- Consent before the camera. The first screen explains, in plain words, how the camera and data are used, that SDK telemetry is off, and that this is not a medical device. The camera starts only when the user presses Start, and Stop fully releases it.
- Video is processed on this computer. Frames are processed in memory by the SmartSpectra SDK. Blink Board itself never records, saves or uploads video, images or readings, and has no server or database.
-
SDK telemetry is off. The app requests it off, and the main process forces
enableTelemetry: falsewhatever the page sends. - Network: the SDK still contacts Presage's servers to verify the API key and device. Blink Board itself sends nothing anywhere.
-
Storage and deletion: Blink Board saves no video, images or readings. Calibration lives in memory and is forgotten when the app closes. The SDK keeps a small local cache (including a device key), and Electron keeps housekeeping files, both under
%APPDATA%\blink-board. Blink Board writes no video or readings there. The README explains how to delete them. - The API key is read only in Electron's main process and never reaches the app window. It's redacted from error text and logs, and excluded from git.
- Speech uses only voices installed on the computer, so spoken words never go to an online service. No AI service is used in the app.
- No covert monitoring. The camera works only after consent, and only during a session the user starts and can stop at any time.
Top comments (2)
The measurement that sold me on this is the BLINKING metric topping out around 210 ms even with your eyes closed for 2β3 seconds β that is exactly the kind of SDK behavior you only find by building the debug panel first, and deriving the long blink from landmark eye openness instead is the right call. Freezing the scan on the tile highlighted at the SDK timestamp of the closure, rather than when the event is processed, is the detail that makes the selection trustworthy, and the 0.5β3 second window neatly separates a deliberate choice from a normal blink and from dozing off. You mention testing with real users and caregivers is next β is the calibration the part you expect to be hardest for them, since everyone's open and closed values differ?
Thank you! The debug panel really was the turning point. I only found the BLINKING limit because I measured it first. Yes, I think calibration will be the hardest part. Everyoneβs eyes are different. Some people have very small eyes and some have very large eyes, so their open and closed values are different. Even for the same person, the values can change from one session to the next because of tiredness or lighting. Right now, a caregiver can press the Recalibrate button to measure the eyes again. In the future, Iβd like the app to adjust the threshold automatically during a session, so recalibrating isnβt needed as often.