book of calm← Explore the interactive demo

PROJECT BLUEPRINT / CONCEPT FOR JOHN RIVLOP

A private record.
A more informed conversation.

A practical map for building Book of Calm: a patient journal with voice reflections and carefully chosen sharing with a therapist.

Current release: fictional demonstration only

WHAT IS LIVE TODAY

A working demonstration,
contained in one browser tab.

Patient and therapist views, journal editing, review, selective sharing, local recording, and simulated messaging. Changes live in memory and disappear on refresh.

Cloudflare serves static demo files
Browser tabFictional entries · role switch · local audio

No patient accounts, real messaging, automatic transcription, clinical storage, or data uploads are connected.

01 / THE CORE WORKFLOW

Every shared record starts with a choice.

Privacy is the default at every step.

  1. 1

    Capture

    Write a reflection or record an audio entry.

  2. 2

    Organize

    Add mood, emotion, intensity, symptoms, and context.

  3. 3

    Review

    Edit the text or transcript and confirm the record.

  4. 4

    Choose

    Keep private, or grant specific parts to a connected therapist.

  5. 5

    Follow up

    The provider sees permitted content and can respond.

Saving an edit removes earlier sharing and requires a new confirmation. Revoking a grant removes future in-app access. It cannot undo what a recipient already saw or copied.

02 / CONSENT IS SPECIFIC

Four independent sharing permissions.

The record must be confirmed before any grant.

Example: transcript-only sharing

The provider sees the patient identity, entry date, and transcript. The title, written notes, recording, mood, symptoms, and triggers remain hidden. The record does not contribute to provider mood charts.

03 / PLANNED LIVE SYSTEM

A backend that checks every request.

Architecture target — not a statement of production readiness.

Planned Book of Calm system architecture Patient and provider web apps connect through verified authentication to a Cloudflare Worker API. Every request checks role, patient ownership, active relationship, confirmation, and field-level grants. The API connects to D1 structured data, private R2 audio storage, audit events, and an approved transcription vendor only after a production privacy and vendor review. Nothing in this diagram is connected to real patient data in the public demo. Patient web app Private journal · review · sharing Verified patient session Provider web app Granted records · follow-up Verified provider session + MFA Cloudflare Worker API Authentication → role → relationship → entry grant Return only permitted fields · deny access by default Authorize audio reads and every message separately D1 structured records Entries · versions · grants Messages · access relationships Private R2 audio No public recording links Bounded uploads · deletion lifecycle Audit + integrations Content-free audit events Approved transcription adapter All storage and vendor choices are subject to real-patient launch review.
Automatic transcription remains disconnected. A future integration must define patient notice, access controls, retry behavior, vendor terms, retention, and deletion before any real recording is sent.

04 / A HANDOFF THAT CAN BE FOLLOWED

Build in small, verifiable stages.

Use the repository’s detailed plan and acceptance tests.

FIRST

Establish identity

Verified accounts, roles, sessions, provider verification, MFA, and an explicit patient–provider connection.

THEN

Connect the journal

Persist private records, enforce ownership, confirm reviewed versions, and test all four grant boundaries.

NEXT

Complete voice and messaging

Add secure audio lifecycle, an approved transcription service, notifications, and real message authorization.

BEFORE PATIENTS

Pass the launch review

Vendor agreements, security testing, operations, retention, backups, response expectations, and clinical review.

A REALISTIC FIRST MILESTONE

Validate the workflow.
Then earn the right to handle real records.

The public demo is suitable for showing the concept with invented data. The repository contains the backend foundation and a step-by-step handoff. Real patient use is a separate milestone with unresolved operational, contractual, and security work.

Explore Book of Calm