It was a regular afternoon in a Lagos market. A trader had just delivered ten units of goods to a customer, and the customer owed her 5000. They both pulled out their phones to record it. One phone showed one bar of network. The other showed none at all.

That is the whole problem. Most apps treat the network like oxygen. Take it away and they suffocate. No signal, no agreement, no record. Come back tomorrow with cash and hope everyone remembers the same numbers.

I built Ouija for afternoons like that one.

The idea

Ouija is a template for tamper evident, offline first apps. Two phones hold signed logs of everything that happened between them. When the phones meet, they sync over whatever physical channel is in the room. A speaker and a microphone. A screen and a camera. A clipboard and a copy paste token. No server, no internet, no pairing, no accounts. The math sorts out the truth.

The rule the whole project follows is simple. Transports move frames and know nothing about entries or logs. The app hands down bytes and gets back bytes. Everything lossy about the real world, dropped sounds, missed QR frames, duplicated pastes, is absorbed below the app line.

Three small packages do the heavy lifting:

  • Core. Signed, hash chained entries, merge without conflicts, verification, counter signed checkpoints. Pure logic, no I/O.
  • Sync. Summaries and deltas, compact frames and tokens. It deals in bytes.
  • Transports. Every physical channel behind one interface. An acoustic modem over speaker and mic, fountain coded QR send and receive with camera calibration, copy paste tokens, a LAN adapter, and an in memory loopback so every demo runs on a real transport with no hardware.

Two apps on one skeleton

Ouija Ledger is the market afternoon, turned into software. Alice signs a claim ("5000 for 10 units delivered"). It sits at pending until Bob taps Acknowledge or Dispute from his own phone. Nothing is ever deleted. Every entry is signed, forks are kept as evidence naming the equivocator, and after each sync both sides counter sign each other's newest entry, so rewritten history gets caught in the next verification report. Balances count agreed claims only.

Ledger showing an agreed claim and mirrored balance

Haunt Transport is the same sync idea, but for files instead of ledger entries, wrapped in a Halloween skin. Pick any file. It is packed, fountain coded into droplets, and flashed as a looping animated QR "spell" that the other phone catches with its camera, in any order, duplicates welcome, until the file reassembles and previews inline.

The sender looping a file as animated QR spells

The receiver after catching every spell

Here is the spell loop, live. This exact flicker is the file crossing the air gap:

A file broadcast as looping QR spells

Both flows are demoed end to end on video, desktop plus mobile, narrated: watch the 1:55 showcase on YouTube.

But why is there a spirit board in my protocol stack

Because Halloween, and because joy is a feature. The Haunt Transport app ships a Castle Ouija page: a full spirit board with a planchette that glides across the letters and spells things out, animated OUIJA title art, and the same Creepster and Cinzel type as the sender screen. The QR codes themselves can wear skins (Plain, Frankenstein, skeleton head) with zero cost to scan speed, because the emblem sits in the center on a white knockout and error correction covers it.

The Castle Ouija spirit board

Playful on the surface, serious underneath. The fountain coding, the calibration ritual that trains on a starting spell until the receiver reads LOCKED, the CRC on every droplet, all of it is the same transport machinery the ledger trusts with money claims.

What it guarantees, stated plainly

I would rather tell you the limits than let you discover them:

  • Editing a past entry is detectable by anyone holding an earlier head.
  • Every entry is signed by its author's key.
  • Two conflicting entries at the same position are kept as evidence, naming the author.
  • After a sync, each side counter signs the other's head, which resists backdating.

And what it does not promise: real world time (clocks here are informational), secrecy (sound can be overheard, keys sit in phone storage), or protection against an author rewriting their own log before anyone has seen it. A clean report means "nothing altered or conflicting that I can see", not "this history is true". Those limits are written into the app UI, not buried in fine print.

The hard parts

Sound is a candle lit channel, not fiber. At about 100 bits per second, a single claim costs roughly 13 seconds of audio, and a full claim plus ack session runs about two minutes. I measured it in a simulated room with 20 percent of sounds dropped, then had to stop promising "one quick chirp" in my own demo script. Headless browsers cannot hear anything, so the demo videos sync the two phones through the token path instead, which carries the whole compressed log.

Phone cameras are flaky readers, so the QR side got a calibration ritual plus fountain repair droplets. Any K plus 2 distinct droplets rebuild the file, and a missed spell is replaced by the next droplet rather than a rewind. A shaky hand transfer that used to take 90 seconds at p99 now takes 29.

The build stays fully offline. No CDN, no telemetry, vendored QR libraries, one hashed bundle plus a same hash service worker, so updates install themselves with a "Reload to update" banner. Over 500 tests pass, typecheck is clean, and every demo is reproducible from a seed.

Why this matters back home

Nigeria runs on informal agreement. Market stalls, bus parks, repair shops, field teams, clinics far from coverage. People already do business on trust and paper. Paper tears and memories differ. A phone that can hold a signed, tamper evident record, and sync it phone to phone with no network at all, is not a toy here. It is infrastructure that respects the conditions people actually live in.

Ouija started as a Halloween build with ghosts in the UI. Underneath, it is a bet that agreement should be a property of the data, not of the connection. The network is an untrusted stranger. Sign everything anyway.