Inspiration

In 1848 the Fox sisters claimed to talk with the dead through knocking codes, and newspapers called it the "spiritual telegraph". Today, many people who can't speak or type can still blink or raise an eyebrow: people living with ALS, locked-in syndrome, a brainstem stroke, a high spinal cord injury, or a breathing tube. Dedicated speech devices are expensive and often need special hardware, and letter boards need a patient partner in the room. So we brought back the telegraph key, one of the first digital communication technologies, to give the living a voice.

What it does

  • One movement becomes Morse code. Use a webcam gesture (blink, eyebrow raise or mouth open), the Space bar, a tap or click, or a USB or Bluetooth accessibility switch. No special hardware is needed.
  • Timing adapts to you. The engine learns your dot and dash rhythm and follows you as you tire or speed up. A calibration wizard tunes each face gesture to the person using it.
  • It predicts what you mean. Word completions work offline and learn from your own history. Opt-in AI suggests whole replies to what the caregiver just said, heard through speech recognition or typed in. Suggestions are only offers: the user picks one with NEXT and ACCEPT, and nothing is ever spoken that they didn't choose.
  • Q-codes become shortcuts. Old radio codes expand into everyday phrases: QWA → "I need water.", QPN → "I am in pain.", QSL → "Yes, I understand."
  • It speaks. End a message with AR, the telegraph operator's end-of-message sign, and the app speaks it aloud.
  • SOS always works. Sending SOS raises a siren and a spoken alarm, even while input is paused.
  • It teaches Morse. A built-in trainer runs 14 lessons from E and T to Q and Z, unlocking each one at 90% accuracy.
  • It is private and works offline. Camera frames are processed on the device and never leave it. The app installs as a PWA and runs offline. AI suggestions are off by default.
  • It is readable first, spooky second. There are three themes: Séance (candlelit), high-contrast dark and high-contrast light.

Spirit Telegraph is not a medical device. SOS supplements, and never replaces, a nurse-call or emergency system.

How we built it

  • Front end: TypeScript (strict), React 19 and Vite 8, with Zustand for state and IndexedDB for on-device history.
  • Face gestures: MediaPipe Tasks Vision runs in the browser to detect face landmarks.
  • Speech: the Web Speech API handles speech output and recognition of the caregiver's questions.
  • AI suggestions: a Vercel serverless function sends them to Groq (openai/gpt-oss-20b with a strict JSON schema). It keeps the API key on the server, limits each client to 30 requests a minute, and cleans every suggestion before the browser sees it.
  • Testing: Vitest and fast-check property-based tests, plus Playwright end-to-end tests with axe accessibility checks.
  • Process: the whole build was spec-driven with Kiro: four specs, steering files and agent hooks, all in the repo's .kiro folder.

Challenges we ran into

  • Making one movement reliable. Tired, slow or uneven input still has to decode. That's why we built per-person calibration and adaptive timing with safe bounds.
  • Speed. AI replies have to arrive within 2.5 seconds. If they don't, the app quietly shows offline suggestions only.
  • Safety. The caregiver's words go to the model as quoted data, never as instructions. Every suggestion is length-limited and cleaned before it appears.
  • A late provider switch. We moved AI suggestions to Groq near the deadline, and it answers in about 1.5 seconds.

Accomplishments that we're proud of

  • The full flow works in an ordinary browser with no special hardware: calibrate a gesture, spell in Morse, accept a suggested reply, and hear it spoken.
  • 33 correctness properties, checked by property-based tests, with 242 tests passing.
  • It works offline, and camera frames never leave the device.

What's next for Spirit Telegraph

  • Test it with people who use speech devices, their caregivers and speech therapists, and fix what they find.
  • A caregiver link, so family can follow a conversation from their phone.
  • More languages and more kinds of switches.

Built With

  • fast-check
  • groq
  • indexeddb
  • kiro
  • mediapipe
  • playwright
  • pwa
  • react
  • typescript
  • vercel
  • vite
  • vitest
  • web-speech-api
  • zod
  • zustand
Share this project:

Updates

Submission history