How sunnel987/bill-snap works
Bill Snap is an installable receipt-scanning PWA. A user captures or selects an image, sends it for Gemini bill classification and field extraction, reviews and edits the result, then saves it locally; the history view supports review and deletion. A separate PWA branch provides installation and offline app-shell caching. The provided tree has no API implementation file, so the documented extraction endpoint is shown without an invented source path; endpoint internals are limited to README evidence.
Main entry points: App.tsx Image capture and upload · main.tsx React app entry · sw.js Offline service worker · db.ts IndexedDB bill store
Components 11
Capture and extraction
- React app entry
src/main.tsx - Image capture and upload
src/App.tsx - Bill extraction endpoint
Review and records
- Editable result review
src/App.tsx - Bill history and deletion
src/App.tsx - IndexedDB bill store
src/db.ts
PWA shell
- PWA manifest
public/manifest.webmanifest - Offline service worker
public/sw.js
Other components
- User
- Gemini Vision
- Web browser
Connections 12
- User → Image capture and upload: selects image
README.md - React app entry → Image capture and upload: renders
src/main.tsx - Image capture and upload → Bill extraction endpoint: submits image
README.md - Bill extraction endpoint → Gemini Vision: requests extraction
README.md - Bill extraction endpoint → Editable result review: returns fields
README.md - User → Editable result review: edits fields
README.md - Editable result review → IndexedDB bill store: saves bill
src/App.tsx - User → Bill history and deletion: reviews or deletes
README.md - Bill history and deletion → IndexedDB bill store: loads and deletes
src/App.tsx - React app entry → Offline service worker: registers
src/main.tsx - Offline service worker → Web browser: caches app shell
public/sw.js - Web browser → PWA manifest: offers installation
README.md