How parvincodes/kgcinventorymgmt works
Langar Pantry supports reviewers signing in, maintaining pantry items, recording weekly counts, reviewing an automatically drafted shopping list, and sharing it with the sewa family; family members can mark purchases without changing inventory. The graph combines explicit UI/API and scan calls with README-documented workflow links. Several server routes and screens are only partially sampled, so their interactions are included only where the README or excerpts support them.
Main entry points: App.tsx App routing · api.ts API client · List.tsx Shopping list review · index.ts HTTP API
Components 20
Reviewer experience
- Week dashboard
client/src/screens/Home.tsx - PIN sign-in
client/src/screens/Login.tsx - Weekly count
client/src/screens/Count.tsx - Item catalog
client/src/screens/Catalog.tsx - Item editor
client/src/screens/ItemEdit.tsx - Shelf photo scan
client/src/screens/Scan.tsx - Shopping list review
client/src/screens/List.tsx - API client
client/src/api.ts - App routing
client/src/App.tsx
Family shopping
- Family list
client/src/screens/Family.tsx
Pantry services
- HTTP API
server/index.ts - Week and list rules
server/logic.ts - Photo identification
server/scan.ts - Product photos
server/product-photos.ts
Persistence and vocabulary
- Grocery glossary
server/grocery-glossary.ts - SQLite pantry data
server/db.ts
Other components
- Reviewer
- Sewa family
- Claude vision API
Connections 30
- Reviewer → PIN sign-in: signs in
README.md - App routing → PIN sign-in: routes unauthenticated
client/src/App.tsx - App routing → Week dashboard: routes signed-in
client/src/App.tsx - App routing → Weekly count: routes to
client/src/App.tsx - App routing → Shopping list review: routes to
client/src/App.tsx - App routing → Item catalog: routes to
client/src/App.tsx - App routing → Item editor: routes to
client/src/App.tsx - App routing → Shelf photo scan: routes to
client/src/App.tsx - App routing → Family list: routes family link
client/src/App.tsx - PIN sign-in → API client: calls
client/src/screens/Login.tsx - Week dashboard → API client: calls
client/src/screens/Home.tsx - Weekly count → API client: calls
client/src/screens/Count.tsx - Item catalog → API client: calls
client/src/screens/Catalog.tsx - Item editor → API client: calls
client/src/screens/ItemEdit.tsx - Shelf photo scan → API client: submits scan
client/src/screens/Scan.tsx - Shopping list review → API client: updates list
client/src/screens/List.tsx - Family list → API client: calls
client/src/screens/Family.tsx - API client → HTTP API: sends HTTP requests
- HTTP API → Week and list rules: calls
server/index.ts - HTTP API → Photo identification: calls
server/index.ts - HTTP API → Product photos: reads and saves photos
server/index.ts - Week and list rules → SQLite pantry data: reads and writes
server/logic.ts - Photo identification → SQLite pantry data: reads catalog
server/scan.ts - Photo identification → Grocery glossary: normalizes names
server/scan.ts - Photo identification → Claude vision API: requests identification
README.md - Shelf photo scan → Item catalog: confirmed items saved
README.md - Weekly count → Shopping list review: count drafts list
README.md - Shopping list review → WhatsApp: shares approved list
README.md - Sewa family → Family list: opens shared link
README.md - Family list → Shopping list review: updates purchase status