Skip to content
All work
AI decision support · Next.jsLive demo

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

Risk intelligence view ranking production orders by predicted delay probability, with a risk portfolio chart.
ai-manufacturing-decision-copilot.vercel.app
ManuFlow AI dashboard with OEE, output, downtime, delivery and orders-at-risk KPIs, marked as demo 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

  1. 01Executive KPIs and production charts
  2. 02Searchable, filterable production orders
  3. 03Ranked delay-risk factors and corrective actions
  4. 04Line health and risk-intelligence views
  5. 05A copilot grounded in compact, relevant factory context

Architecture

  1. App

    Next.js App Router

    Dashboard · orders · risk · copilot

  2. API routes

    /api/orders · /api/metrics

    Typed services

    /api/predict

    Delay risk

    /api/copilot

    Recommendations

  3. Optional

    MongoDB Atlas

    else synthetic data

    Core ML service

    else TypeScript engine

    Google Gemini

    else deterministic copilot

From the project README. MongoDB, Gemini and the external Core ML service are optional; each falls back to a deterministic path.

Screens

  • Production orders table with line, shift, priority, completion and risk columns.
    Production orders with completion and risk.
  • Decision copilot answering which orders are most likely to be delayed, with an action plan.
    Copilot response generated by Gemini on the demo data.

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

frontend/src/services/prediction-service.tsPublic repository excerpt
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));}
Excerpt from the public project repository, trimmed for length.

Screenshots are of the public live demo, which runs on synthetic data.