This is a submission for the Presage SmartSpectra SDK Challenge
In 1840 a portrait took a minute. You had to hold still. Your heart could not.
What I Built
Long Exposure is a portrait studio from 1840. You sit in front of your webcam for about a minute, keeping your head still and breathing normally, and a portrait develops on a silver plate. It is made only from what the SmartSpectra SDK reads through the camera which are the geometry of your face, your pulse, your breathing. No photograph of you is taken or kept.
The finished plate is alive. It flushes faintly in time with your real pulse, and the bust rises and falls with your own recorded breaths. Turn it over, and the back (the verso) shows the evidence: the raw readouts, how the beats were timed, your pulse waveform when the signal was strong enough to draw, and a timestamped log of the sitting.
Why a minute? The SDK needs time before each signal is reliable: about 12 seconds for the pulse, about 30 for the breathing. Most apps hide that wait behind a spinner. Long Exposure makes the wait the point. 1840 cameras needed a long exposure too, and sitters had to keep still for it. Here the exposure stages follow the SDK's own warm-up:
| Exposure | Stage | What the SDK provides | What you see |
|---|---|---|---|
| 0–12 s | Focusing | 478 face landmarks | A ghost of your face emerges as engraving on silver |
| 12–30 s | The heart | Pulse waveform and rate | A flush travels from forehead to chin on each beat, with a soft heartbeat sound |
| 30–60 s | The breath | Breathing rate and chest trace | The bust rises and falls with your chest, and goes still when you hold your breath |
| 60 s+ | Fixing | A locked pulse | A guilloché seal drawn from this sitting rhythm is engraved in the corner |
A stage only starts when the SDK says it signal is ready: marked stable, or for the pulse, a confidence of at least 40. The plate never pretends. If a signal never settles, the plate develops underexposed and says which signal was missing.
The studio is strict, the way a 19th-century photographer was:
- Talking caps the lens (after a second and a half, so a stray word does not). The exposure clock stops, and the cap is logged.
- Moving, poor light, or leaving the frame caps it too, and the caption says what to fix.
- A second face caps it at once. If it stays for two seconds, the sitting ends and everything is discarded. The plate is for one consenting sitter.
Under the plate, a kymograph scratches your live pulse and chest trace as they arrive, like the soot-drum recorders of the 1800s. The front never shows a number.
Double Exposure: load a friend's saved plate and the two portraits sit side by side, each beating in its own rhythm.
Demo
Try it in your browser, no install or key: long-exposure-brown.vercel.app. Press Watch a real sitting to play back a real sitting recorded with the SDK. A live sitting needs the desktop app and your own SmartSpectra key (instructions in the repo).
The video is one live take. Only the camera warm-up and the wait for my breath are sped up, the heart and breath stages play in real time. The video has no sound because my screen recorder didn't capture the app's audio. In the app, each flush comes with a soft heartbeat sound. At about 0:48 someone walked behind me: the plate darkens with "Someone else is in frame", then recovers when they leave. I kept it in.
Code
Long Exposure
A finished plate from a real recorded sitting: it brightens on each heartbeat and breathes with the sitter's recorded breaths.
A 60-second living daguerreotype. You sit for a portrait, as people did in 1840. The plate develops while you keep your head still and breathe normally, and the finished portrait flushes at the pace of your real pulse and breathes with your own recorded breaths. No photograph of you is taken or kept.
Try it in your browser, no install or key: long-exposure-brown.vercel.app. Press Watch a real sitting to play back a real 90-second sitting recorded with the SDK.
Built for the DEV Presage SmartSpectra SDK Challenge with @smartspectra/node-sdk.
In 1840 a portrait took a minute. You had to hold still. Your heart couldn't.
How a sitting works
The SDK needs time before each signal is reliable: about 12 s for pulse and 30 s for…
How It Responds to Human Signals
Every live signal has one job on the plate, and nothing on the plate moves without one:
| SDK signal | What it does, in real time |
|---|---|
| Face landmarks (478 points) | Draw the portrait itself, and the framing guide |
| Pulse rate and waveform | Start the heart stage, and time the flush and the heartbeat sound |
| Breathing rate and chest trace | Start the breath stage, and make the bust rise and fall |
| Talking | Caps the lens, the way a photographer would stop you talking |
| Smile | A smile held for three seconds is engraved into the plate |
| HRV, when the SDK marks it stable | Can settle the rhythm for the seal |
| Validation status (face, light, movement) | Caps the lens and tells you what to fix |
The kymograph under the plate draws the pulse and chest traces as the packets arrive, so you can watch the plate respond.
How I built it
- Electron + TypeScript. The SDK runs natively in the main process. My first version used the SDK's renderer path, which copies every camera frame from the window to the main process. On my 4-core laptop that delivered only 8–18 of the camera's 30 frames per second, and the SDK stopped with
kSustainedLowFrameRate. Reading the camera natively keeps the frames inside the SDK, so the window only receives the decoded results: a few kilobytes. - The portrait is drawn, not photographed. One WebGL fragment shader turns face geometry into a lit, engraved silver plate in a stamped brass mat. No camera pixel is ever drawn into the portrait.
- Beats, honestly. The flush lands on beats detected in the SDK's pulse waveform when it arrives early enough. Otherwise it falls back to beats predicted from recent intervals, or to the SDK's pulse rate. The verso says which method was used. In the sitting in the video the waveform was too faint, so the beats were spaced from the SDK's averaged pulse rate, and the verso says exactly that rather than claiming more.
- Stability first. The breath stage waits for the SDK's
stableflag. The heart stage waits forstableor a pulse confidence of at least 40, plus a beat timing the tracker can trust. The flag flickers from packet to packet, so a signal counts as ready if it was ready within the last 15 seconds. - Tests. 56 unit tests cover the sitting state machine, beat and breath tracking, the loop, and the plate file. CI runs typecheck and tests on every push. Recorded sittings replay through the same pipeline.
A tip for other SmartSpectra builders. If your Electron app stops with error 14 (low frame rate), move the SDK to the main process with
useCamera(), and send the decoded metrics to the window.
Credits. GIF export uses gifenc by Matt DesLauriers (MIT). Everything else is my own code on top of the SmartSpectra Node SDK.
Lineage. Rafael Lozano-Hemmer's Pulse Room made heartbeats into public light. Long Exposure makes one heartbeat into a private portrait, and gives it back to the sitter.
Prize Categories
Most Creative or Delightful Use.
What inspired it. The SDK's first minute. Pulse takes about 12 seconds to settle and breathing about 30, and the usual answer to that is a loading spinner. Then I remembered that early daguerreotypes also took about a minute, and sitters had to hold still the whole time, sometimes with an iron head brace. The wait was the same length, so I made the wait the experience.
What makes it original. Vital signs are usually shown as numbers and charts. Here they are a portrait instead: your pulse is a warm flush on silver, your breath is the bust rising and falling, and the plate back is the only place a number appears. The SDK's limits become the studio's rules: talking caps the lens because the SDK can't read you while you talk, and a second face ends the sitting because the plate is for one person.
What's playful or unexpected. You get a portrait with no photograph in it, one that keeps breathing after you've left the chair. You can load a friend's saved plate beside yours, and the two beat out of step, each in its own rhythm.
Consent and Data Handling
Written with Presage's Telemetry and Privacy notes in hand.
- Nothing happens until you agree. The camera opens only after you read the sitting agreement and press I agree to sit. There is no auto-start and no background mode.
- One consenting person. A second face caps the lens at once, and ends the sitting (discarding everything) if it stays for two seconds. Each sitter agrees for themselves; the privacy notes ask a parent or guardian to sit with a minor and agree for them.
- No photographs. Camera frames stay inside the SDK. Long Exposure never stores or exports them, and the portrait is never drawn from them. One exception, off by default: the Show me the camera option opens a live mirror beside the plate so you can check your framing. It is shown only, never recorded or saved.
- Memory only. Decoded signals and the finished plate live in memory until you press Sit again or Leave the studio (one click, always visible, wipes everything).
- Exports only where you choose. The GIF, PNGs and
.plate.jsongo through a save dialog. A plate holds no photograph, but it is derived from your body (face geometry, heart and breath rhythm), and the app says so. Share it as you would a photo. - What leaves the device. The app's page makes no network requests: it runs under a strict Content Security Policy, and the main process blocks and logs any request. The SDK contacts Presage to check the API key and meter usage. Presage telemetry is off by default.
- Deliberately not used: the stress index, emotion scores, and the SDK's AI insights. The only expression read is the smile, a smile held for three seconds is engraved into the plate. The app makes no judgement about how you feel or how healthy you are.
Network audit (Windows 11, telemetry off, live session of about five minutes; every TCP connection owned by the app, sampled twice a second):
| Time | Process | Host | What it is |
|---|---|---|---|
| 23–30 s | main (SDK) | cont-api.physiology.presagetech.com:443 | SDK start-up: key check and model download |
| 252 s | main (SDK) | cont-api.physiology.presagetech.com:443 | The SDK's periodic usage check |
No other host was contacted. Full method and limits: PRIVACY.md.
Not a medical device. Long Exposure is portraiture. It does not diagnose, monitor or treat anything. The numbers on the verso are there only as evidence that the portrait responded to a real, live signal.
What I'd do next
- More sitters, skin tones and lighting. My live sittings are all one person, in one room.
- Exact beat timing (
waveformtier) on faster machines. - Blinks that reliably leave ghost eyes. The SDK's blink flag was too sparse in my sittings, and the face landmarks were too coarse to detect blinks myself.
If you sit for a plate, post its GIF in the comments. I'd love to see your heart.




