Inspiration

Small shops often count a delivery in rough shelf notes, then type the same numbers again to check the supplier invoice. An internet outage can interrupt the handoff.

What it does

StockCount turns shelf notes into editable inventory rows and saves the reviewed count on the device. When online, the shopkeeper can choose a supplier PDF, approve cloud processing, and compare the billed quantities with the saved count. The review puts shortages and unmatched lines first and includes the invoice excerpt.

How we built it

StockCount uses the Firebase AI Logic Web SDK. Chrome Gemini runs the count on-device by default. Per-count opt-in enables the SDK’s cloud fallback when local inference is unavailable. A service worker caches the workspace. Firebase App Check protects cloud requests. The browser reconciles the cloud-extracted invoice with the count stored locally.

What we tested

The cached workspace extracted a count after its test server stopped and outbound page connections were blocked. We verified the SDK cloud fallback separately with the local model unavailable. On the hosted build, the synthetic invoice flagged 24 cartons billed against 20 counted. The app displays the source and leaves ambiguous matches for manual review.

Built With

Share this project:

Updates

Submission history