Skip to content

Margin heartline: a letter with its pulse drawn beside every line - #6

Open
ubmids wants to merge 1 commit into
mainfrom
margin-heartline
Open

ubmids wants to merge 1 commit into
mainfrom
margin-heartline

Conversation

@ubmids

@ubmids ubmids commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Do not merge yet. This is for a look first.

What changed

The replay's heartbeat was too quiet to notice. The letter now has a strip of chart paper bound into its left margin, and the writer's pulse is drawn down it beside each line as that line is written. Where the heart was quicker the beats stand taller, closer and warmer, and the ink of the words warms and feathers with them. The live figure sits at the pen's tip with a mark that beats in time.

Before After
10 s into the sample
Finished letter
Front page
Phone

Writer:

More in docs/screens (margin- files): envelope, phone front page, writer states, sealed screen.

The pieces

  • Margin heartline in reader and writer, drawn from the stored heart rate (four readings a second, so it shows the rate, not each beat).
  • Ink: wider cool to warm range, every stop AA on the paper, soft feathering at a quick heart. One pencil note the first time it warms, never again.
  • Paper: fits the letter, opens from the envelope, grows with the writing, two faint creases. Pauses and taken-back words are pencil notes. Smiles get a pencil stroke.
  • Type: Literata (SIL OFL 1.1), two subset files inlined by the build. Small capitals and old-style figures for labels. Nothing under 13px.
  • Front page is a letter to the visitor, written by the same engine and labelled as a demonstration.
  • Postscript replaces the closing card.
  • Sample re-cut: ink warms 2.8 s into the replay.
  • Writer: same sheet; camera states live at the top of the strip; works at 390px; signal sources behind one interface so a browser source can be added; envelope and worded copy confirmation after sealing.
  • Finish: loading, broken-link and no-script states, page titles, in-page icon, link preview picture.

Privacy

The reader still makes no requests. The CSP gains only font-src data:. No storage, no cookies. PRIVACY.md gains a paragraph on chat-app link previews (true before this change too). Consent screen wording is untouched.

Checks

npm run build, npm test (41 pass, was 28), npm run smoke, npm run sample all pass. Ran the real app in simulator mode: fonts load, no console errors.

Known rough edges

  • The consent screen still says smiling words "glow softly". They are now underlined in pencil. The wording was left alone on purpose and needs a decision.
  • The heartline's beats are a drawing convention. At a calm heart they are small.
  • On a wide screen there is a lot of dark desk under a short letter.

…se beside every line

The heart was too quiet in the replay. Now a pulse trace runs down a strip
bound into the left of the sheet, drawn beside each line as it is written:
taller, tighter and warmer where the heart was quicker, quiet at a long
pause. The live figure rides at the pen's tip with a mark that beats in time.

- Ink: a wider cool-to-warm range (every stop AA on the paper) and a soft
  feathering at a quick heart. A one-time pencil note explains the first change.
- Paper: the sheet fits the letter, opens from the envelope and grows with the
  writing, with two faint creases. Pauses and taken-back words are pencil
  notes in the right margin (in the line on a phone). Smiles get a pencil stroke.
- Type: one serif, Literata (SIL OFL 1.1), inlined by the build as data: URLs.
  Small capitals and old-style figures for labels. Nothing below 13px.
- Front page: a letter to the visitor written by the same engine, labelled as
  a demonstration, ending in the sample link and a Write a letter entry.
- Closing card: now a postscript in the letter.
- Sample: re-cut so the ink warms 2.8 s into the replay.
- Writer: the same sheet. The camera's states (waiting, looking for a face,
  more light, finding the pulse, reading, stopped) live at the top of the
  strip. Works at phone width. Sources sit behind one small interface.
  After sealing: the envelope as it will arrive, and a worded copy confirmation.
- Finish: loading, broken-link and no-script states, page titles, an in-page
  icon and a link preview picture made from the reader itself.

The reader still makes no requests: CSP adds only font-src data:.
41 tests (was 28). Consent screen wording is unchanged.
@vercel

vercel Bot commented Nov 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
heartwritten Ready Ready Preview Nov 13, 2026 1:35am UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant