How j4eu/store-expiration-tracker works
Store-Expiration-Tracker is a single-operator tool for keeping each tracked product’s expiration status visible, including when its date is unknown. The main workflow is barcode lookup, update-or-register, review due and unchecked products, record a discard or no-discard decision, and optionally archive or restore products. The Vue screen calls a FastAPI API; its handlers implement these operations over SQLite and use signed, expiring sessions for access control. The excerpts show the main request and persistence paths; deployment and infrastructure are intentionally not mapped as product behavior.
Main entry points: main.py Product API handlers · App.vue Operations screen · api.js API client · auth.py Session authentication
Components 14
Operator interface
- Operations screen
frontend/src/App.vue - API client
frontend/src/api.js
API and domain operations
- Product API handlers
backend/app/main.py - Barcode lookup and registration
backend/app/main.py - Due and unchecked lists
backend/app/main.py - Expiration decisions
backend/app/main.py - Discard history
backend/app/main.py - Archive and restore
backend/app/main.py - Request and response models
backend/app/schemas.py
Session and configuration
- Session authentication
backend/app/auth.py - Runtime settings
backend/app/settings.py
Product data
- SQLite connection layer
backend/app/db.py - SQLite database
Other components
- Store operator
Connections 13
- Store operator → Operations screen: uses
README.md - Operations screen → API client: requests through
frontend/src/App.vue - API client → Product API handlers: calls API routes
frontend/src/api.js - Product API handlers → Barcode lookup and registration: routes lookup and create
backend/app/main.py - Product API handlers → Due and unchecked lists: routes dashboard query
backend/app/main.py - Product API handlers → Expiration decisions: routes expiration decisions
backend/app/main.py - Product API handlers → Discard history: records discards
backend/app/main.py - Product API handlers → Archive and restore: routes archive actions
backend/app/main.py - Product API handlers → Session authentication: checks sessions
backend/app/main.py - Session authentication → Runtime settings: reads cookie settings
backend/app/auth.py - Product API handlers → SQLite connection layer: opens connections
backend/app/main.py - SQLite connection layer → SQLite database: reads and writes
backend/app/db.py - Product API handlers → Request and response models: validates API data
backend/app/main.py