the receipt
the first version went by add to cart: one list that everyone who opened the site shared, an input, an add button and a cat. the rebuild is named after a chit, the slip you hand over at the corner shop, so that's what it looks like: a till receipt on a sage desk, printed in a mono font, crossed off in red pen and stamped bagged when the last thing goes in the basket.
the link
every chit has its own link now. it's a node in the firebase realtime database under a random 16 character id, and the rules let anyone with the link read and write that one chit but never list them. send it to whoever's in the other aisle and every tick shows up on their phone as it happens, with a count of who has it open.
the shopping line
you type it the way you'd say it: 2 kg onions, milk x2, a dozen eggs. it pulls out the quantity and sorts the line into a shop section from a word list that knows atta and pav as well as bread and milk. it points out duplicates instead of adding them twice, offers what you usually buy, and undoes anything.
on the phone
still no framework and no build step. writes show on screen before firebase confirms them, a service worker keeps the app on the phone so it opens with no signal, and background tabs let go of their connection so it all fits the free plan. it fits every screen from a 320px phone up without a pixel of layout shift.
last updated