Skip to content
Product engineering

A Family Gift Ledger That Lives in Your Own Google Sheet

Giftbook records wedding, aqiqah and birthday gifts without a server. The ledger lives in the family's own Google Sheet, entries land offline first, and sync stops rather than corrupt a hand-edited sheet.

3 min read0 comments
Website

A family's gift notebook is a real ledger

In most Bangladeshi families, gifts at weddings, aqiqahs and birthdays are recorded in a paper notebook: who gave what, and what the family gave back. It is a financial record that matters for years. It is also hard to search, easy to lose and impossible for two relatives to update at once.

Generic apps solve the search problem by putting that record on someone else's server, and they rarely handle Bangla numerals or lakh-style grouping. I wanted the digital notebook without either compromise.

The owner's Google Sheet is the only backend

Giftbook has no application server and no database. The ledger lives in a Google Sheet in the owner's own Drive. The app requests only the drive.file scope, so it can see the files it created and nothing else in that Drive.

This decision did several jobs at once. The family keeps ownership of its data, can open or back up the sheet directly, and the product carries no hosting cost and no data-retention liability. The sheet is also a format every relative already understands.

The safest place for a family's financial record is somewhere the family already controls.

Write locally first, sync later, and keep the rule simple

Gifts are recorded at crowded events with poor connectivity, so a write can never wait for the network. Every entry lands in a local Dexie store first, and the navbar reports the honest state: synced, syncing, offline with a pending count, or needs attention.

Several relatives write to the same ledger from different phones through a QR link. I chose last-write-wins with soft deletes over a merge system. Two people rarely edit the same gift row at the same moment, and a rule a family can understand beats a clever one they cannot. Deleted rows stay in the sheet with a deletedAt timestamp, and duplicate-append protection stops a retried sync from adding a row twice.

People will edit the sheet by hand, so the app checks before it writes

Because the ledger is a normal spreadsheet, someone will eventually rename a column. Before every sync, Giftbook verifies that the schema's leading headers still match. Extra columns added on the right are fine. A renamed header halts sync with a clear Bangla banner instead of writing data into the wrong place.

The Zod schema that validates entries also defines the sheet's column contract, so the app and the spreadsheet cannot quietly disagree.

Bangla throughout, and testable without Google

The whole interface reads naturally in Bangla, including numerals, dates, taka with lakh grouping and validation messages, rather than falling back to English browser defaults.

To make the product testable, I built mocks of the Google account chooser, Drive, Picker and Sheets behind the same interfaces as the real adapters. The full workflow, including two profiles rehearsing the sharing flow and simulated sync failures, runs without an OAuth client. Nine automated tests cover rows, merging and the full sync cycle.

Giftbook is live as an installable PWA. While the Google OAuth app is in testing mode, sign-in is limited to approved test users.

Working through a similar challenge?

Share your context, constraints, and timeline to start a focused conversation.