Skip to content
JonathanSolvesProblemsPublic

About

Your beta reader's face and pulse leave page flags in your manuscript. Presage SmartSpectra on the reader's laptop, notes as Word comments. DEV Presage challenge entry.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Unskipped

Your beta reader's face and pulse leave page flags in the margin of your manuscript.

A reader who agrees to it reads your chapter on their laptop with the camera on. The Presage SmartSpectra SDK reads their pulse, blinks and smiles, and whether they are talking or looking away, on that laptop. Unskipped turns it into one flag per paragraph:

  • pink: gripped (pulse up, or blinking slowed),
  • yellow: smiled,
  • blue: may have drifted (blinking sped up),
  • clear: no reading (looked away, talking, poor light). It says so instead of guessing.

The reader marks the paragraphs that got them before seeing any flag, reviews every note, keeps or drops each one, and sends a small file. The writer adds it to their manuscript, and each note becomes a Word comment on its paragraph, signed with the reader's name.

Entry for the DEV Presage SmartSpectra SDK Challenge, November 2026.

How to run it

Needs Windows 11 (x64), macOS on Apple Silicon or Linux x64, Node 20 or newer, and a webcam that gives 25 fps or more (the built-in webcam on my Windows laptop gave 29.9).

git clone https://github.com/JonathanSolvesProblems/unskipped
cd unskipped
npm install

Get a free Presage key at https://physiology.presagetech.com/auth/register and put it in a file named .env in the project folder:

PRESAGE_API_KEY=your_key_here

Then:

npm start

Choose Open a chapter to read, pick stories/the-open-window.md (or your own .docx, .md or .txt), and follow the screens. Sit so the camera sees your face and the top of your chest; the first pulse reading takes about 15 seconds of a steady picture. Each 30 seconds of live measurement uses one credit of the free trial's 100.

To write the notes into a manuscript: I'm the writer, choose the manuscript, add the reading files from readings/, and Write the notes into my manuscript. It saves a copy with "(reader notes)" in its name and opens it.

No camera or key? The replay page plays back a real recorded reading through the same scoring code: open app/ui/index.html from a local web server (npx http-server . then /app/ui/), or the hosted copy linked from the DEV post.

Notes on the SDK from building this (SmartSpectra Node SDK 3.5.0, Windows 11 laptop webcam)

  • The built-in webcam held 29.9 fps, enough for pulse.
  • Pulse needs the upper chest in frame as well as the face, and about 16 seconds of steady picture before the first value. The settle screen shows a head-and-shoulders outline for this.
  • Requesting the full cardio bundle gave no pulse at all on this machine; PULSE_RATE alone worked (the same thing is reported in SmartSpectra issue #18).
  • The SDK's own validation kept reporting a readable face while I glanced down at my phone, so Unskipped also reads head turn and tilt from the face mesh.
  • Details and the test runs: results/sdk-notes.md.

If npm start says "could not load packaged runtime ... smartspectra_capi.dll"

On Windows 11 this is usually Smart App Control. The SmartSpectra SDK's DLLs are not code-signed (SDK 3.5.0), and with Smart App Control On Windows refuses to load them (Windows error 4551; Event Viewer, Microsoft-Windows-CodeIntegrity/Operational, events 3077 and 3033 naming smartspectra_capi.dll). It has no per-file exception, so the only fix on that machine is Windows Security > App & browser control > Smart App Control > Off. Recent Windows 11 updates let you turn it back on from the same screen. Machines with it Off or in evaluation mode, and macOS and Linux, are not affected. To see Unskipped without running it, use the replay page.

Screens

In the order of the demo video. Numbers on the slides come from results/summary.json and results/pulse-check.json (py tools/gallery.py re-renders them).

Home screen
A beta reader's reactions land in the writer's margin as page flags, read by Presage SmartSpectra on the reader's laptop.
Consent screen
What the camera reads, that video never leaves the laptop, telemetry off, and that the reader approves every note.
Reading screen
One paragraph at a time, so the app knows which one is read; live pulse and blinks from the laptop webcam beside it.
No reading when it cannot tell
Planted controls: 2 of 3 planted paragraphs refused with the right reason, 2 of 2 normal ones read.
Marks screen
Before any result is shown, the reader marks what got them and what lost them. Those marks are the grader.
Graded result
Graded against the reader's own marks. Random flags would find 1.5; time on the page alone found 3 of 4.
Webcam pulse against a fingertip oximeter
29 of 29 readings within 5 bpm of the oximeter, mean gap 1 bpm. One person, one sitting, pulse rate only.
Notes as Word comments
Every note the reader kept becomes a comment on its paragraph, signed with the reader's name.

Checks

npm test        # unit tests: scoring, grading, Word comments
npm run results # re-score the committed sessions in results/sessions/ into results/summary.json
npm run check   # results, then fail if any number in the published DEV post disagrees with them

How it decides

src/score.js holds every threshold (THRESHOLDS), fixed before the graded read except the head-turn bars, added afterwards for looking-away (the graded read has no head data, so its result is unaffected); results/controls.md lists the pre-registered planted cases and any later change. In short: pulse readings are credited to the paragraph read about 6 seconds earlier (the SDK's pulse is a ~12 second average); a paragraph 4 bpm over the reader's own median, or with blinking under 60% of their own rate, is pink; a smile held 0.7 s is yellow; blinking over 160% of their rate is blue; a paragraph where the SDK reported no forward face, or the reader talked, for most of its time is clear. results/sdk-notes.md records what the first camera tests showed (pulse needs the chest in frame; PULSE_RATE alone works where the full cardio bundle returned nothing).

Privacy

No video or image is recorded or sent. The SDK runs on the reader's machine with telemetry off, and contacts Presage only to check the key and count usage. Reading files contain only the notes the reader kept, their own marks and summary numbers; raw signal samples are included only if they tick a box that is off by default. There is no server. See the Consent and Data Handling section of the DEV post.

Sources

Every quote and number in the demo video and the post, each one opened and read:

The full list, including the story text and the SDK issue, is in post/sources.md.

License

MIT. Saki's "The Open Window" (1914) and the Austen sample are in the public domain; the Saki text is from Wikisource.

About

Your beta reader's face and pulse leave page flags in your manuscript. Presage SmartSpectra on the reader's laptop, notes as Word comments. DEV Presage challenge entry.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages