How hasttyr/nutriflow works
nutriFlow is a grocery-planning and shopping app: shoppers locate nearby stores, browse local products, plan meals and lists, compare branch prices, then check out and follow orders. Its distributed behavior can run as a simulated browser cluster or connect to a multi-process backend. The graph preserves documented planning, sharing, regional, account, merchant/courier and system-status capabilities. Several page and server internals were not sampled; their documented roles are shown, but uncertain implementation links are omitted. Evidence uses README statements or the cited source excerpts and index references.
Main entry points: App.jsx Route application · region.js Region and stores · planner.js Meal planner · Checkout.jsx Checkout
Components 34
Shopping journey
- Route application
src/App.jsx - Local product catalog
src/data/products.js - Meal planner
src/planner/planner.js - Meal-plan AI endpoint
api/ai.js - Shopping list
src/list/list.js - Link and QR sharing
src/share/share.js - Cart state
src/cart/cart.js - Checkout
src/pages/Checkout.jsx - Payment step
src/payments/PaymentStep.jsx
Regional experience
- Location detection
src/geo/location.js - Region and stores
src/geo/region.js - Nearby store lookup
src/geo/stores.js - Country profiles
src/region/profiles.js - Money and quotes
src/region/money.js - Country prices
src/region/pricing.js
Distributed runtime
- Branch cluster
src/distributed/cluster.js - Cluster state hooks
src/distributed/hooks.js - Branch inventory
src/distributed/inventory.js - Demo session
src/live/session.js - Shared live state
src/live/store.js - Cluster status console
src/pages/SystemStatus.jsx
Order operations
- Order coordination
src/live/orders.js - Live region service
server/region.js - Payment service
server/payments.js - Delivery logistics
server/logistics.js - Order notifications
server/notifications.js
Interface foundations
- Language and messages
src/i18n/i18n.js - Shared UI controls
src/ui/Field.jsx
Other components
- Shopper
- Planner user
- OpenStreetMap
- Pollinations AI
- Merchant operator
- Courier
Connections 33
- Shopper → Route application: uses
- Route application → Region and stores: checks region
src/App.jsx - Region and stores → Location detection: locates shopper
src/geo/region.js - Region and stores → Nearby store lookup: finds nearby stores
src/geo/region.js - Nearby store lookup → OpenStreetMap: queries places
- Region and stores → Branch cluster: sets branch nodes
src/geo/region.js - Region and stores → Country profiles: selects profile
src/geo/region.js - Shopper → Local product catalog: browses products
- Local product catalog → Country prices: uses local prices
- Country prices → Money and quotes: formats amounts
src/region/pricing.js - Planner user → Route application: requests a plan
- Meal planner → Local product catalog: selects products
src/planner/planner.js - Meal planner → Branch inventory: compares stores
src/planner/planner.js - Meal planner → Pollinations AI: requests menu
- Meal planner → Shopping list: adds plan items
- Shopper → Shopping list: manages list
- Shopping list → Cart state: moves missing items
- Shopper → Link and QR sharing: shares plan or list
- Shopper → Checkout: checks out
- Checkout → Branch inventory: quotes branches
src/pages/Checkout.jsx - Checkout → Payment step: starts payment step
src/pages/Checkout.jsx - Checkout → Order coordination: creates confirmed order
src/pages/Checkout.jsx - Order coordination → Shared live state: updates shared state
src/live/orders.js - Order coordination → Branch cluster: routes branch work
src/live/orders.js - Route application → Demo session: reads role
src/main.jsx - Route application → Shared live state: follows regions
src/main.jsx - Cluster status console → Cluster state hooks: shows node health
- Merchant operator → Route application: uses merchant view
- Courier → Route application: uses courier view
- Order coordination → Live region service: connects live orders
- Live region service → Payment service: dispatches payments
- Live region service → Delivery logistics: dispatches delivery
- Live region service → Order notifications: dispatches notices