case file · 16 / Consumer PWA · 2025 · active
Lootbox
A Vue 3 PWA + FastAPI gamified daily-wins tracker wired over live MQTT pub/sub (not REST polling): the client publishes a win, the server computes points/streak/level and fans out events, and the Pinia store reacts live — with IndexedDB + service worker for offline resync and hand-designed badge art. Deployed via Gitea CI → homelab.
imagery pending — placeholder plate holds the slot
the engineering move
Wins flow through a real pub/sub pipeline, not request/response: the client publishes the win event, the server computes points, streaks, and level authoritatively, then fans out to every surface.
scale
- LOC
- 3.4K
- live event bus
- MQTT
stack
- Vue 3 PWA
- Pinia
- FastAPI
- MQTT pub/sub
- IndexedDB
- service worker