Breathmarks:朋友不會告訴你第三章拖沓,但呼吸會
Breathmarks: your friends are too kind to tell you chapter 3 drags. Their breathing isn't.
Breathmarks 利用 Presage SmartSpectra SDK,按段落讀取讀者的呼吸、脈搏和眨眼訊號,並與讀者開始閲讀前的個人基準比較,為小説草稿生成段落旁註。讀者可先私下檢視、保留或刪除註記;只有按下分享後,附有保留註記的文字才會傳給作者,不會傳送影片或原始生理數據。
This is a submission for the Presage SmartSpectra SDK Challenge
What I Built
In Poe's The Tell-Tale Heart, the narrator keeps insisting he is perfectly calm. His heart gives him away.
I'm an architecture graduate student in Japan who writes short fiction on the side — very short pieces, in Japanese, set vertically. When I share a draft with friends, I almost always get the same answer: 「面白かった」, "it was fun." It's kind. It's also useless for revising. Nobody remembers which paragraph pulled them in and which one they drifted through, and asking for line-by-line notes is a lot to ask of a friend.
Anyone who has published a post here knows a version of this: scroll analytics tell you where readers left, not where they leaned in.
Breathmarks is a beta-reading desk for fiction. A friend reads your draft silently on their laptop. The Presage SmartSpectra SDK reads their breathing, pulse rate and blinks from the webcam, paragraph by paragraph, and compares every paragraph only with that reader's own calm 30 seconds before reading. The result is the manuscript returned with handwritten-style marks in the margin:
- no breath for ~4 s
- breathing quickened (11/min, calm 8)
- lingered (3.5× usual time)
- read quickly (skimmed?)
- steady
(These are the actual marks from the demo recording below.)
The important part is who sees it first. The reader does. After reading, the camera turns off and the reader gets a private review: the summary, a strip of their breathing across the whole read, and every margin note. They can mark any note keep private, or delete everything. Only when they press Share with the writer does anything leave their laptop — and what leaves is the text with the kept notes, never video, raw pulse or breathing data, or how long they spent reading.

(Screenshot from the app's clearly labelled SIMULATED mode; the video below is the live SDK.)
The flow:
-
Open the draft the writer sent (
.txt/.md, Project Gutenberg headers stripped) or paste it. Japanese drafts can be read in vertical layout (縦書き), the way I write. - Agree. A plain-language consent screen: what the camera is used for, what stays on the computer, what the writer gets.
- Sit back for thirty seconds. The calm reference. Preview blurred by default.
- Read. One paragraph in focus at a time (arrow keys, Space or click). A small corner indicator shows the signal status and a thin live chest-movement line; nothing else interrupts the story.
-
Review privately, keep or remove notes, then share as a self-contained web page, a
.breathmarks.jsonfor the app, or Markdown. - Writer's view. Open the file, read the margin, flag paragraphs to revise.
Demo
Recorded with the live SDK on a laptop webcam (not the simulator). For the demo I play both the writer and the reader, reading the story for the first time; my face is blurred with the app's own preview setting.
- 0:00 why: "Loved it!" is kind, and useless for revising
- 0:23 the reader opens the draft and agrees
- 0:28 30 seconds of calm (4× speed)
- 0:37 silent reading with live signals (4× speed)
- 1:12 the reader's private review: breath paused at ¶6 (~4 s), breathing quickened in ¶1–¶2, ¶12, ¶13 and ¶15 read quickly
- 1:30 what the writer will and won't get
- 1:41 the writer's view: ¶6 held the reader's breath, so it stays; the ending was skimmed, so ¶12–¶15 get tightened
The story in the demo, The Lost Property Office, was written for the demo with AI help and is CC0. I hadn't read it before pressing record. It ships with the app, along with a second English story (The Night Ferry, also CC0) and one of my own short pieces in Japanese for the vertical layout.
Code
https://github.com/RyujiIshiguro/breathmarks
Electron + @smartspectra/node-sdk 3.5.0, following Presage's Electron quickstart (bindSmartSpectraIpc in the main process, the SDK preload bridge, SmartSpectraSDK in the renderer). Setup is npm install && npm start, then paste a Presage API key in Settings. Without a key, Try with simulated signals runs the whole flow with scripted values that are labelled SIMULATED on every screen and in every exported file.
The analysis lives in one pure module, src/core/reading.js, with unit tests (npm test).
How It Responds to Human Signals
Requested from the SDK, hand-picked for data minimisation: CHEST_BREATHING, ABDOMEN_BREATHING, BREATHING_RATE, PULSE_RATE, BLINKING, TALKING. Not requested: expressions, face landmarks, HRV.
- Breath pauses. Reading silently is the one situation where camera breathing is at its best: no speech, little motion. The chest-movement trace is detrended and breaths are found as upward crossings with hysteresis, scaled to the reader's own calm breath size. A pause is a gap between breaths that is long for this reader (over 1.8 × their calm period and period + 4 s) and contains at least 4 s where the trace barely moves. Gaps that overlap "no face" time or speech are skipped. The SDK's apnea field is documented as unavailable in 3.5.0, so this is done in the app.
- Breathing per paragraph is counted from the trace, because the SDK's breathing rate is a 30-second average — too slow for one paragraph. I show the SDK rate live only during the calm reference.
-
Pulse uses the SDK's stable
PULSE_RATEsamples while the paragraph is on screen, shifted a few seconds later to allow for its ~12 s averaging, against the reader's calm median. -
Blinks come from
face.blinkingonsets per minute, compared with the calm rate, and only when the calm rate predicts enough blinks for a fair comparison. - Pace (time per word, or per character for Japanese) is compared with the reader's own median pace.
-
Validation status matters:
NO_FACE_FOUNDfor 3 s or more becomes "looked away", and those seconds are excluded from the breathing analysis rather than guessed. - Light matters too. My first evening attempt failed: in a dim room the webcam dropped its frame rate, the SDK reported low frame rate, and after a while it ended the session on its own. Breathmarks doesn't paper over that. The calm reference only counts seconds of good signal, and when the SDK stops, the app returns the reader to the start instead of inventing marks. The demo was recorded the next morning. Even then the corner indicator shows "Frame rate is low" at times; you can see it in the video. The session completed, and the paragraph with too little signal (¶16) is marked "not enough signal" rather than guessed.
- Most paragraphs come back steady, and the app says so. In my own recording, 8 of 16 paragraphs had a mark.
The wording is deliberately descriptive. Breathmarks never calls a paragraph exciting or boring, never reads emotions, and never compares one reader with another.
Prize Categories
Most Creative or Delightful Use — the signal ends up as red pencil in a manuscript margin, not a dashboard. It works in vertical Japanese too, with the margin notes in English or Japanese.
Best Thoughtful Real-World Use — it targets a real, everyday gap in how writers get feedback, and it is built around the reader's consent: they see their own marks first, can withhold any of them, and decide whether anything is shared at all.
Consent and Data Handling
- Camera: on only after the reader ticks the consent box; video only (no microphone), only for the app's own local page. It turns off automatically when reading ends, or with Stop camera.
- Video: processed by the SDK on the reader's computer. Never recorded or saved. The preview can be shown, blurred (default) or hidden.
- Readings: in memory only. The app writes nothing to disk except a report the reader explicitly saves. Delete everything discards a reading.
- What the writer receives: the text, the notes the reader kept, and a short summary. Not raw pulse/breathing/blink series, not timestamps or reading time, not video. Withheld notes appear as "no note shared".
- Network: the SDK contacts Presage to verify the API key and meter usage. SDK telemetry is off by default. Presage documents that with breathing and cardio metrics active the SDK may send pulse and breathing numbers to its insights gateway; Breathmarks never requests insights, and turning off Pulse in Settings avoids this.
-
API key: encrypted with Electron
safeStorage(or read from an environment variable), released to the renderer only after camera consent, never written into project files. - Not medical, not emotion detection. These are camera estimates used as reading feedback.
Thanks to Presage and the DEV team for the challenge.
I built Breathmarks with help from an AI coding assistant (Claude); the demo story was also drafted with it.
來源:DEV Community · dev.to