Yomi
Case study — 03


01 — The problem
I read the same series across several sites, and every one of them wants an account to remember a chapter number. What I wanted was my own log: private, portable, and readable when the phone has no signal.
Yomi is not a manga reader and it does not host chapters. It remembers what you read and where you left off — one PWA, one Worker, a real account per person.
02 — Offline first
The shelf is written to IndexedDB before anything else happens, so the app opens offline and renders instantly. Changed rows are marked dirty and a small outbox loop pushes them to the Worker whenever the tab is online, on focus, or on reconnect.
A copy with no Worker at all is still fully usable — it just says LOCAL ONLY in the header and nothing leaves the device.
03 — Sync that cannot fight itself
Progress is append-only: each chapter is a row with its own id, so two devices logging chapter 40 produce one row instead of a conflict. Text fields are last-write-wins per field, with each field carrying its own timestamp, so a note written on the phone and a status changed on the desktop both survive. Deletes are tombstones, and a tombstone beats any older edit.
The server assigns a monotonic sequence to every written row; clients pull with a cursor and re-pull until there is nothing more, which is what makes a second device catch up correctly.
04 — Privacy by default
No analytics, ads, trackers, cookies or remote font requests. Covers are looked up from AniList on the device, so the Worker never sees your reading history tied to a lookup.
Share links are read-only and revocable, with notes stripped before the response leaves the Worker. The scheduled backup encrypts the full export before uploading it, and the job refuses to upload an unencrypted one.
Features
- Offline-first shelf in IndexedDB — the whole app is usable with no account at all
- Append-only chapter log; furthest progress is MAX(chapter), so a re-read never moves backwards
- Multi-device sync through one Worker, with per-field last-write-wins and tombstones for deletes
- Capture from a Tampermonkey userscript, an iPhone Share Sheet Shortcut, or a paste / +1 fallback
- One record per title, with every site URL as an alias, plus duplicate merge and undo
- Ratings, tags, filters, bulk edits and a reading-stats recap computed from the log
- Read-only, revocable share links that strip private notes on the server
- AniList / MyAnimeList import, and an encrypted D1 backup on a schedule