I wrote this for the Kiroween 2026 hackathon.

Two numbers explain why I built Ossuary. The ITU put the number of people offline at 2.2 billion in 2025. Nigeria raised the price floor for 1 GB of data to ₦431.25 in January 2025. If an app needs a server, both numbers matter. Data costs money, and an offline phone cannot reach the server at all.

Ossuary is a local-first app skeleton. Two phones share records face to face. There is no account, no gateway and no server.

Three ways to move records

Each phone keeps a log of changes. When two phones meet, one asks what it is missing. The other sends only those changes, sealed with AES-256-GCM. The packet can travel three ways.

Transport Budget What I know
Animated QR 600 byte envelope by default; 300 and 900 byte profiles Breaks into parts. A missed part can be asked for again on the next exchange.
File Whatever the phone can share Send it over Bluetooth, WhatsApp or any file share.
SMS text At most 7 parts All characters stay in the GSM-7 basic set, so the carrier does not add a second encoding.

I have not measured scan rates on a mid-range Android phone yet. I will add that table when I have the numbers. The byte budgets above come from the protocol.

Why records are append-only

A change is never an overwrite. Every write adds a small record with a device id, a sequence number and a time stamp. To merge, each field keeps the record with the newest stamp. A delete is also a record, marked with a flag.

That rule has a useful result. Apply the same records twice, or in a different order, and both phones end up with the same data. A QR part can drop. A text can arrive late. The merge still lands in the same place.

One test that found a real bug

I used fast-check to throw random records at the sync engine. One date check accepted 2020-02-30. That is not a date. A calendar check fixed it. A different property found two changes sharing one device sequence number. The test generator was at fault, so it now makes one change per number. Both bugs came from tests, not from a demo run.

How Kiro helped, and where it did not

I wrote specs before the build in .kiro/specs. Each milestone had tasks and evidence. Steering files kept the stack choices, including SvelteKit 3, TypeScript 6, Bun and Valibot. The garage MCP server ran a simulated cluster of devices against the real sync engine. Property tests found the two bugs above. Kiro CLI ran once, headless, for a soak of 27 tests at 5,000 runs each.

I cannot say a hook fired. No hook output is recorded in the evidence. A hash guard caught two edits to the frozen wire file instead. The evidence also does not name the model that ran each session.

Ossuary is open source under MIT. The repo is https://github.com/Michael-Obele/ossuary.