>> Notes /
Auralar on an old tablet: no build step and an honest offline mode
This note is about Auralar, the family wall calendar, and the hardware it is written for.
The target device
Almost every home has an old tablet that is too slow for anything new. Auralar is meant to give it a job: hang on the kitchen wall and show the day, unattended, for weeks. That means an outdated browser, little memory, Wi-Fi that drops when the microwave runs, and nobody watching the screen when something goes wrong.
Two decisions follow from that.
No build step
Auralar's front end is plain JavaScript modules, loaded directly by the browser. There is no npm, no bundler and no framework. The styles are a handful of plain stylesheets, one per area of the app.
The practical effects:
- What runs is what was written. The files on the server are exactly the files in the repository. When something breaks on a tablet at six in the morning, the code in the error is the code I can open, not a minified bundle.
- Nothing to keep updated. There are no package upgrades to chase and no toolchain to break a year from now.
- Less for an old browser to chew on. There is no framework runtime to download and start before the calendar appears.
The trade-off is discipline. Without a framework, I write more by hand: rendering, state and routing. Code is split into one module per subject and one file per settings page so it stays navigable.
Start without the network, never pretend to work without it
Auralar installs as a full-screen app and uses a service worker. Its job is narrow: make the app start without the network, not make it work without one.
- The app shell is cached and served cache-first, so a tablet that reboots while the router is down still comes up.
- The calendar data is never cached in either direction.
- Nothing is queued for later.
That last point is the important one. Many offline-first apps queue changes and replay them when the connection returns. On a kitchen wall that is dangerous. A stale chore list means somebody ticks a job that was already done, or misses one that is not shown. Worse, a tick queued at breakfast and replayed in the evening lands on a day that has moved on.
So offline, Auralar keeps showing the last list it had, with a banner saying plainly that ticks are not being saved. An honest "offline" is better than a confident wrong answer.
Seeing failures nobody reports
An unattended screen does not complain; the family just stops using it. Auralar records failed requests and browser errors per household, without passwords, request contents or calendar data, so a panel that started failing overnight shows up before anyone has to write in.
The trade-off
No offline ticking at all is a real limitation: if the Wi-Fi is down, the wall is read-only. For a shared screen where several people act on the same list, I prefer that to the alternative.