Project Ember
A field-notes app for inspection crews that works with no signal and syncs later.
Fleet role: full build. One lead, three builders, two reviewers.
Stack: typescript · pwa · indexeddb · node
Sample project: there is no live site or repository behind these buttons yet.
Walkthrough
Now playing: a generated placeholder, drawn on your device. No file is loaded.
What it does
- 01Inspectors fill in checklists and take photos in basements with no signal.
- 02Notes sync on their own when the phone is back online.
- 03Two people can edit the same report and nothing is lost.
Four layers
Pull the layers apart and pick one to see what it does and where its code lives.
L1 · Interface
Checklist screens that open instantly because they are stored on the phone.
app/src/screensL2 · Local store
Every change is written to the phone first as a small record of what happened.
app/src/store/log.tsL3 · Sync engine
Merges records from several phones in the same order everywhere, so all copies end up equal.
packages/sync/src/merge.tsL4 · Server
Keeps the shared copy and the photos. It never overwrites; it only adds.
server/src/routes
What went wrong and how we fixed it
Two edits, one lost
- symptom
- When two inspectors changed one field offline, the later sync erased the earlier one.
- cause
- The app compared whole reports instead of single fields.
- fix
- Changes are now merged field by field, and a real conflict is shown to the user.
Photos filled the phone
- symptom
- After a week offline the app used several gigabytes.
- cause
- Full-size photos were kept until sync.
- fix
- Photos are shrunk on capture; the original is removed once the server confirms it.
By the numbers
Sample figures: invented, like the rest of this project.