How abhishek-ks-dev/famcare works
FamCare is a household food-safety and grocery-management app. The main workflow is to sign in, manage family profiles, enter or scan a food product, review ingredient and nutrition findings against a selected member’s profile, and consider alternatives; purchase history and budgets support ongoing grocery management. The excerpts show key API and analysis calls, but not the full app composition or several UI workflows, so those links are left unverified rather than inferred.
Main entry points: routes/api.ts API routes · App.tsx App shell · services/api.ts API client · foodIntelligenceAgent.ts Food analysis agent
Components 20
Web app
- App shell
src/App.tsx - Sign-in screen
src/components/AuthScreen.tsx - Food analysis
src/components/FoodAnalysisSection.tsx - Manual entry
src/components/ManualEntrySection.tsx - Family profiles
src/components/FamilyProfilesSection.tsx - Grocery tools
src/components - Label text parser
src/utils/ocrParser.ts - API client
src/services/api.ts
API and identity
- API routes
server/routes/api.ts - JWT authentication
server/middleware/auth.ts - Express server
server.ts
Food intelligence
- Food analysis agent
server/services/foodIntelligenceAgent.ts - Safety rules
server/services/deterministicRules.ts - Open Food Facts
server/services/openFoodFacts.ts - Nutrition datasets
server/services/ifct.ts
Household records
- Record storage
server/db/store.ts - Record schemas
server/models/schemas.ts
Other components
- Household user
- Open Food Facts service
- Gemini service
Connections 24
- Household user → App shell: uses
- App shell → Sign-in screen: presents
- App shell → Food analysis: presents
- App shell → Manual entry: presents
- App shell → Family profiles: presents
- App shell → Grocery tools: presents
- Sign-in screen → API client: requests auth
src/components/AuthScreen.tsx - Food analysis → API client: requests analysis
src/components/FoodAnalysisSection.tsx - Manual entry → API client: submits entries
src/components/ManualEntrySection.tsx - Family profiles → API client: manages profiles
src/components/FamilyProfilesSection.tsx - Grocery tools → API client: uses API
src/components/AuthScreen.tsx - API client → API routes: HTTP requests
src/services/api.ts - Express server → API routes: mounts routes
server.ts - API routes → JWT authentication: guards requests
server/routes/api.ts - API routes → Record storage: reads and writes
server/routes/api.ts - Record storage → Record schemas: uses models
server/db/store.ts - API routes → Food analysis agent: runs analysis
server/routes/api.ts - API routes → Open Food Facts: looks up products
server/routes/api.ts - API routes → Safety rules: ranks alternatives
server/routes/api.ts - Food analysis agent → Safety rules: checks compatibility
server/services/foodIntelligenceAgent.ts - Food analysis agent → Open Food Facts: searches products
server/services/foodIntelligenceAgent.ts - Food analysis agent → Nutrition datasets: searches nutrition
server/services/foodIntelligenceAgent.ts - Open Food Facts → Open Food Facts service: queries service
- Food analysis agent → Gemini service: may request analysis