How epsilonzerr/nutriflow works
NutriFlow manages animal-feed inventory, production, traceability and purchasing decisions. Its main workflow is receiving material lots, planning and launching production orders, recording consumption and finished-product lots, then tracing batches and analyzing stock risk to support a manager’s decision. The graph combines documented product capabilities with sampled service interactions; some frontend-to-service details and unsampled subsystem internals are not shown. The README documents production-to-traceability and the overall service architecture.
Main entry points: src/app NutriFlow web app · engine.py Forecast and recommendations · auth-service/app Authentication and users · routes.py Stock API
Components 21
User experience
- NutriFlow web app
frontend/src/app - Stock screens
frontend/src/app/stock/page.tsx - Production screens
frontend/src/app/production/page.tsx - Traceability screen
frontend/src/app/traceability/page.tsx - Decision screen
frontend/src/app/decision/page.tsx - Administration screen
frontend/src/app/admin/page.tsx
Factory operations
- Stock API
services/stock-service/app/api/routes.py - Stock and lot management
services/stock-service/app/services/stock.py - Stock records
services/stock-service/app/models/entities.py - Production API
services/production-service/app/api/routes.py - Recipes and work orders
services/production-service/app/services/production.py - Batch traceability
services/traceability-service/app
Decision support
- Decision API
services/decision-service/app/api/routes.py - Forecast and recommendations
services/decision-service/app/services/engine.py - Decision records
services/decision-service/app/models/entities.py
Identity and access
- Authentication and users
services/auth-service/app - JWT and permissions
services/shared/security.py - Role permissions
services/shared/permissions.py
Shared platform
- Database sessions
services/shared/database.py - Stock events
services/shared/events.py
Other components
- Factory user
Connections 27
- Factory user → NutriFlow web app: uses
README.md - NutriFlow web app → Stock screens: opens
README.md - NutriFlow web app → Production screens: opens
README.md - NutriFlow web app → Traceability screen: opens
README.md - NutriFlow web app → Decision screen: opens
README.md - NutriFlow web app → Administration screen: opens
README.md - Factory user → Authentication and users: signs in
services/auth-service/app/api/routes.py - Authentication and users → JWT and permissions: issues tokens
services/auth-service/app/api/routes.py - JWT and permissions → Role permissions: checks rights
services/shared/security.py - Stock screens → Stock API: uses stock
README.md - Production screens → Production API: manages orders
README.md - Traceability screen → Batch traceability: searches batches
README.md - Decision screen → Decision API: reviews decisions
README.md - Administration screen → Authentication and users: manages users
README.md - Stock API → Stock and lot management: calls
services/stock-service/app/api/routes.py - Stock and lot management → Stock records: reads and writes
services/stock-service/app/services/stock.py - Stock and lot management → Stock events: publishes alerts
services/stock-service/app/services/stock.py - Production API → Recipes and work orders: calls
services/production-service/app/api/routes.py - Recipes and work orders → Stock API: checks and consumes
services/production-service/app/services/production.py - Recipes and work orders → Batch traceability: records batch links
README.md - Decision API → Forecast and recommendations: calls
services/decision-service/app/api/routes.py - Forecast and recommendations → Stock API: reads snapshots
services/decision-service/app/services/engine.py - Forecast and recommendations → Production API: reads and simulates
services/decision-service/app/services/engine.py - Forecast and recommendations → Decision records: stores decisions
services/decision-service/app/services/engine.py - Stock records → Database sessions: uses sessions
services/stock-service/app/models/entities.py - Decision records → Database sessions: uses sessions
services/decision-service/app/models/entities.py - Authentication and users → Database sessions: uses sessions
services/auth-service/app/main.py