Twinworks. Factory digital twin & production simulation

Draw a production line on a floor plan and watch a discrete-event simulation run it in 2D or 3D. Live KPIs show throughput, OEE and the bottleneck; scenarios and sweeps answer what-if questions.

Open TwinworksTutorials

Free · no sign-up · Version 1.4.0 · Built-in tools (9)

Twinworks editor with a five-station line on the floor plan, palette on the left and properties on the right

Animated simulation with live KPIs

Switch between the technical plan and a WebGL 3D/isometric view of the shop floor with machines coloured by state and parts moving along the line.

Simulation running with parts moving along the line and machines coloured by state

3D view of the shop floor

Drag sources, buffers, machines, assembly, splits, conveyors, quality checks and sinks onto a metre grid, connect them with arrows, snap, align, copy and undo.

WebGL 3D view of a packaging line with conveyors, machines and parts

KPI dashboard with confidence intervals

Throughput per hour, lead-time histogram, WIP over time with Little’s law, queue lengths and utilization/blocked/starved/down bars while the animation runs.

KPI dashboard with throughput, lead-time histogram, WIP chart and utilization bars

State Gantt chart per machine

Availability × performance × quality per machine and a state Gantt chart that shows exactly when each station worked, waited or broke down.

State Gantt chart showing when each machine worked, waited, was blocked or broke down

Features

Twinworks is a factory digital twin. Draw a production line on a floor plan with sources, buffers, machines, assembly stations, conveyors, quality checks and operators, then watch a seeded discrete-event simulation animate it in 2D or 3D. Live KPIs show throughput, lead time, WIP with a Little’s-law check, OEE per machine, state Gantt charts and the bottleneck, and the scenario manager, parameter sweeps and cost model turn it into a what-if laboratory.

Screenshots

Templates

Start from a ready-made project and change it to fit.

All 9 templates
  • PLC-controlled line

    A three-station line whose infeed is switched by a PLC program in lock-step with the simulation: Structured Text two-point control stops releasing parts at 4 parts in B1 and resumes at 1. Analyze → Control (PLC)… shows the program, the bindings and the scan trace; the second scenario runs without the PLC.

    Open in app: PLC-controlled line

Built-in tools

Twinworks uses these tools. Each one also has its own page and works on its own, on its page, through the JSON API and through MCP.

All 9 tools

For AI agents

Twinworks runs on a deterministic engine. The same functions are available as tools with a JSON API and MCP, so scripts and AI agents get exactly the results the app shows.

  • Twinworks Factory Simulation – Simulate a production line: throughput, lead time, WIP, OEE and the bottleneck, with CIs.
    Tool page · POST https://twinworks.usefulweb.site/api/v1/tools/twinworks-simulate/calculate · MCP twinworks_simulate
  • Twinworks Bottleneck Analysis – Find the constraint of a production line and test fixes: ranked bottlenecks with what-if gains.
    Tool page · POST https://twinworks.usefulweb.site/api/v1/tools/twinworks-bottleneck-analysis/calculate · MCP twinworks_bottleneck_analysis
  • Twinworks Line Balancing – Assign assembly tasks to stations for a takt time: efficiency, balance delay and smoothness index.
    Tool page · POST https://twinworks.usefulweb.site/api/v1/tools/twinworks-line-balance/calculate · MCP twinworks_line_balance
  • Twinworks Buffer & Parameter Sweep – Sweep a buffer size (or any parameter) and get the throughput curve with confidence intervals.
    Tool page · POST https://twinworks.usefulweb.site/api/v1/tools/twinworks-buffer-sweep/calculate · MCP twinworks_buffer_sweep
  • Twinworks Buffer Allocation Optimiser – Distribute a fixed number of buffer places over a line for maximum throughput.
    Tool page · POST https://twinworks.usefulweb.site/api/v1/tools/twinworks-buffer-allocation/calculate · MCP twinworks_buffer_allocation
  • Twinworks Queueing Check – M/M/1, M/M/c, M/D/1, M/G/1 and Kingman waiting times — optionally verified by simulation.
    Tool page · POST https://twinworks.usefulweb.site/api/v1/tools/twinworks-queue-formulas/calculate · MCP twinworks_queue_formulas

All 9 tools in the API reference →

Build a project through the API, then open it in the app with a link to https://twinworks.usefulweb.site/app#project=<base64url JSON>.

Import & export

Import

  • Twinworks project (.twinworks.json)
  • Twinworks model JSON
  • Station table (CSV/TSV from a spreadsheet, MES or routing sheet)
  • Project link (#project=…)

Export

  • Twinworks project (.twinworks.json)
  • CSV event log
  • CSV time series
  • CSV station KPIs
  • PNG and SVG of the layout
  • PNG and SVG of charts
  • PLC scan trace (CSV)
  • Printable KPI report (PDF via print)

Keyboard shortcuts

Keyboard shortcuts in Twinworks
KeysAction
VSelect tool
CConnect tool
1 … 8Place source, buffer, machine, assembly, split, conveyor, quality check, sink
SpacePlay / pause simulation
HomeReset simulation
.Single step (next event)
Shift + FFast-forward to the end
Ctrl + RRun experiment (replications)
Ctrl + Z / Ctrl + YUndo / redo
Ctrl + C / Ctrl + V / Ctrl + DCopy / paste / duplicate
DeleteDelete selection
Arrow keysNudge selection (Shift = 1 m)
All 19 shortcuts
Keyboard shortcuts in Twinworks 13–19
KeysAction
RRotate selection 90°
FZoom to fit
GToggle snap to grid
TSwitch 2D plan / 3D view
Ctrl + SSave project file
Ctrl + OOpen project file
?Keyboard shortcuts

Tutorials

Learn Twinworks step by step.

  1. Your first production line in 5 minutesPlace a source, a buffer, a machine and a sink, connect them, press play and read throughput, lead time and the bottleneck. No account, nothing to install.Beginner 5 min
  2. Failures, shifts and operatorsMake the model realistic with breakdowns (MTBF/MTTR), planned maintenance, setups on product change, shared operators and a two-shift calendar with breaks.Intermediate 12 min
  3. Find the bottleneckUse the active-period method, utilization, the state Gantt chart and OEE to find what really limits your line — and test fixes with the what-if analysis before spending money.Intermediate 10 min
  4. Scenarios and buffer sweepsClone your model into what-if scenarios, compare them side by side with paired confidence intervals, sweep a buffer size to find the knee of the throughput curve, and let the optimiser place a fixed number of buffer places.Intermediate 15 min
  5. Assembly, routings and qualityJoin parts from two feeder lines at an assembly station, add an end-of-line test with scrap and a rework loop, and model a job shop where each product family follows its own routing.Advanced 15 min
  6. Line balancing and cost per partDistribute assembly tasks over stations for a takt time with the ranked positional weight method, turn the result into a simulated line, and read the cost per good part.Intermediate 10 min

All tutorials (12)

Frequently asked questions

Can my team work on one factory model together?

Yes, with a free usefulweb account. File → Save to workspace… puts the whole project with all scenarios into a shared workspace; teammates open it with File → Open from workspace… or a shared link, and every change syncs live. Viewers see the model read-only but can still run simulations and experiments. Comments can point at a station, buffer or other object. Without an account, Twinworks keeps working as before.

Can I test PLC logic against the factory model?

Yes. Analyze → Control (PLC)… binds a small PLC program to the model: sensors such as part present, buffer full or machine busy feed its inputs, and its outputs switch a station's run permit, a source's release or a split's divert. Write Structured Text (an IEC 61131-3 subset with TON/TOF/TP timers and CTU/CTD counters), ladder rungs or a state machine. Every scan cycle is a simulation event, and Test run compares the line with and without the program. It is a simulation only; nothing connects to real controllers.

Is Twinworks really free?

Yes. Projects are stored in IndexedDB and as files you download. No account is needed, and data is sent to our server only if you call the API yourself or save to a shared workspace.

How accurate is the simulation?

The engine is validated against queueing theory: M/M/1 and M/M/c waiting times fall inside the simulated confidence intervals, a deterministic line produces exactly 1 ÷ bottleneck cycle time, and Little’s law holds within a few percent in steady state. The accuracy of your model depends on your input data.

Why do I need replications and a warm-up?

A single random run is one sample. Replications with different seeds give a confidence interval for each KPI, and the warm-up removes the empty-line start so averages describe steady operation.

How is the bottleneck detected?

With the active-period method: whichever station has been working (or under repair, in setup, waiting for an operator) without interruption the longest is the bottleneck at that moment. Overlaps between successive bottlenecks are shifting bottlenecks. Utilization is shown as a second indicator.

How is OEE calculated?

Availability = run time ÷ planned time (breakdowns and setups are losses, shift breaks and planned maintenance are not planned time), performance = ideal cycle time × parts ÷ run time, quality = good ÷ processed parts. OEE is their product.

Can an AI agent build and run a model?

Yes. The project format is documented as a JSON schema; the twinworks-simulate, twinworks-bottleneck-analysis, twinworks-buffer-sweep, twinworks-buffer-allocation, twinworks-line-balance and twinworks-queue-formulas tools are available via the JSON API and MCP, and results contain an “Open in Twinworks” link.

Can I import data from my MES, ERP or a spreadsheet?

Yes, as files: File → Import line from table turns a CSV/TSV station list (name, cycle time, distribution, servers, buffer, MTBF/MTTR, scrap …) into a line, and models are plain JSON that a script can generate. Live connectors to MES/ERP systems are not included.

How does the buffer optimiser work?

Analyze → Optimise buffer allocation distributes a fixed number of buffer places: every buffer starts at the minimum and each further place goes to the buffer where it adds the most throughput, with the same random numbers for every candidate. It also tells you how few well-placed places reach today’s throughput. The same engine is the twinworks-buffer-allocation API/MCP tool.

Can I model forklifts or AGVs shared between stations?

Yes, as shared-vehicle transport stations: a machine whose cycle time is the loaded trip borrows a vehicle from a resource pool and keeps it through blocked delivery and an empty return. The Shared forklift fleet template shows it. Individual vehicle positions and traffic are not simulated in the factory model. Analyze → Transport planner… builds a route plan from the model, schedules the moves on two-way segments with shared aisles, shows queue waits and vehicle utilisation, exports CSV and writes the estimated travel times back to the stations in one undoable step.

Limitations

What Twinworks does not do (yet):

Other apps

All 52 apps

Twinworks opens in a browser tab, free and with no sign-up.

Open Twinworks