ManuFlow AI
A manufacturing decision-support demo that predicts production-order delay risk, explains what drives it and suggests corrective actions.
Developer · Aug 2026 · Hackathon project on synthetic data


Overview
A Next.js command centre that combines factory analytics, a tabular delay classifier trained in Apple Create ML, and a Gemini copilot. Every optional integration has a deterministic fallback, so the demo stays usable on synthetic data.
- Role
- Developer
- Timeline
- Aug 2026
- Status
- Live demo
Stack
- Next.js
- TypeScript
- Tailwind CSS
- Recharts
- MongoDB / Mongoose
- Google Gemini
- Apple Create ML
- Vercel
Challenge
Production managers often see delivery risk only after output has already fallen behind — and the signals live in different places.
Scattered signals
Downtime, material delays, OEE and staffing sit in separate views.
Unclear priorities
Which order needs attention, and which action matters most?
What it does
- 01Executive KPIs and production charts
- 02Searchable, filterable production orders
- 03Ranked delay-risk factors and corrective actions
- 04Line health and risk-intelligence views
- 05A copilot grounded in compact, relevant factory context
Architecture
App
Next.js App RouterDashboard · orders · risk · copilot
API routes
/api/orders · /api/metricsTyped services
/api/predictDelay risk
/api/copilotRecommendations
Optional
MongoDB Atlaselse synthetic data
Core ML serviceelse TypeScript engine
Google Geminielse deterministic copilot
From the project README. MongoDB, Gemini and the external Core ML service are optional; each falls back to a deterministic path.
Screens
Engineering decisions
A demo that never breaks
Missing keys or an unavailable service shouldn't end a demo.
Decision
Each integration sits behind a service with a deterministic fallback.
Core ML outside the web runtime
A Core ML model can't run inside a serverless function.
Decision
Call an external Swift inference service with a short timeout and validate its response before using it.
Outcome
Live demo
Deployed on Vercel and usable without any external service.
Documented
Architecture, demo flow and dataset tooling are written up, with CI.
Honest framing
Synthetic data — not a production manufacturing deployment.
Technical details
Technical detailsMy contributions · Code excerpt from the public repository
My contributions
Areas from my commits to the repository:
- Next.js application, API routes and typed services
- Gemini copilot with fallback diagnostics and intent-aware routing
- Core ML inference-service integration
- Create ML model assets and versioned evaluation datasets
- Persistent copilot conversation history
Prediction with a deterministic fallback
export async function predictOrderRisk(order: ProductionOrder): Promise<RiskPrediction> { const serviceUrl = process.env.COREML_SERVICE_URL; if (serviceUrl) { try { const response = await fetch(`${serviceUrl.replace(/\/$/, "")}/predict`, { method: "POST", body: JSON.stringify(toCoreMLV2Input(order)), signal: AbortSignal.timeout(2200), }); if (response.ok) { const result = await response.json(); if (isValidCoreMLResponse(result)) { /* … merge Core ML probability into the prediction … */ } } } catch { // Core ML is optional during local demos. } } return calculateRisk(stripPrediction(order));}Screenshots are of the public live demo, which runs on synthetic data.

