Skip to content

rubrob21/emome_blackbox

Repository files navigation

Emome — BlackBox Mode (Offline-First)

Tagline: “A relationship flight recorder that runs fully offline.”

This is a free, offline-first add-on prototype for Emome:

  • Record a quick debrief (speech if your browser supports it; otherwise type)
  • Generate:
    • Interaction Event JSON
    • Reasoned explanation
    • Relationship Pulse update
    • Next-time micro-script
  • Stores everything locally in IndexedDB
  • Includes a PWA service worker so the UI loads offline after first visit

Important honesty note: true offline speech-to-text depends on your device/browser.
This prototype uses the browser SpeechRecognition API if available.
The core analysis + storage works fully offline.


Run locally

npm install
npm run dev

Open:

Build

npm run build
npm run start

Deploy (Vercel)

  • Push to GitHub
  • Import in Vercel
  • Done

Offline behavior

  • First online visit caches the app shell via public/sw.js
  • Your BlackBox logs are stored locally (IndexedDB)
  • In airplane mode:
    • the UI loads
    • you can type debriefs
    • analysis + pulse updates work
    • speech recognition may or may not work depending on device

How the Pulse works

  • Each interaction produces an eventScore in [-1, +1] based on:
    • valence (draining vs nourishing words)
    • intensity (0..10)
    • duration (log-weighted)
  • Pulse is a smoothed 0..100 signal (stable but responsive)

Next upgrades (if you want to go “judge-melting”)

  1. Add true offline STT (WASM Vosk/Whisper) + cache the model files for airplane-mode transcription.
  2. Add Live Boundary Guardian (opt-in) using on-device audio processing.
  3. Add optional local encryption (WebCrypto) with a user passphrase.

MIT-style, do whatever you want. 🙂

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors