Inspiration

Community treasurers in Indonesia — for neighbourhoods (RT), mosques, savings groups (arisan), small shops — still track cash in paper notebooks. Existing bookkeeping apps demand accounts, servers, and stable internet. A treasurer with a cheap Android phone and patchy signal deserves better.

What it does

Phantom Ledger is a serverless, account-free bookkeeping PWA. It records income and expenses, auto-categorizes them, accepts voice entry in Bahasa Indonesia ("pengeluaran lima puluh ribu untuk listrik" becomes a pre-filled draft to confirm), syncs between phones by scanning QR codes — no server, no account, no cloud — and produces a monthly report ready to paste into WhatsApp, plus CSV export. Everything runs offline; zero network requests at runtime, zero analytics.

How we built it

Five technologies that normally never meet in one app, stitched into one: IndexedDB (local-first storage), QR codes as a transport protocol (versioned, gzipped PL1 payload with merge rules and tombstones), Web Speech API for Indonesian voice entry, hand-written keyword rules instead of ML ("AI" that is a 30-line lookup table — explainable and offline), and WhatsApp paste + CSV as the reporting layer. Built spec-first with Kiro: requirements, design, and 31 tasks in .kiro/, plus steering docs and hooks that run syntax checks and unit tests on save. Honest note: the Kiro CLI was installed and verified, but agentic Kiro chat needed a login that wasn't available in the build sandbox — so the spec method was followed by hand in Kiro's exact format (see KIRO-USAGE.md in the repo).

Challenges we ran into

QR payload capacity forced chunking and merge semantics; Indonesian number words ("satu juta dua ratus lima puluh ribu") broke the money parser until tests caught it; and the voice API needed graceful degradation for browsers without SpeechRecognition.

Accomplishments that we're proud of

11/11 unit tests and 22/22 headless-browser smoke checks pass, including a real QR render-and-decode round trip and a cross-browser-context import merge. The app works fully offline after first load and can be installed as a PWA.

What we learned

Writing the spec before the code forced the hard decisions up front — merge semantics, payload versioning, tombstones, one shared totals function — instead of discovering them mid-build. Tests caught what eyes missed: Indonesian "puluh" math, keyword collisions ("fotokopi" matching "kopi", "cat" matching "catatan"). And constraints turned out to be the design: no server, no account, cheap phones, patchy signal — so a 1990s barcode became the sync protocol and WhatsApp became the reporting layer. We also learned that a tool's method can matter more than its agent: Kiro's spec → design → tasks discipline shaped this build even when its agentic chat wasn't available — and saying that plainly beats pretending otherwise.

What's next for Phantom Ledger

Multi-ledger support for treasurers handling several groups, and an optional encrypted backup file for treasurers who want one.

Built With

Share this project:

Updates

Submission history