WMS Flow MVP
Executable event-driven workflow editor for warehouse processes. The UI is Vue 3 with a native Canvas graph; the API and workflow engine run on Node.js.
Run
Requires Node.js 24 and Docker (PostgreSQL in its own container wms-flow-pg, port 127.0.0.1:55434).
npm install
npm run db:up
npm run dev
Open http://localhost:5173. On the first start on an empty database the existing .data/wms-flow.sqlite is imported (or demo data is created). Click Run demo, then send ITEM IN CART, any number of intermediate scans, and finally SCAN B3-A123.
For a production build:
npm run build
npm start
Open http://localhost:3002. DATABASE_URL overrides the database (default postgres://flow:flow@127.0.0.1:55434/flow). The schema is in server/migrations/. npm test needs the database container; npm run check type-checks the TypeScript server.
API
Interactive Swagger documentation for external integrations is available at
http://localhost:5173/api-docs during development (or /api-docs on the API
server). The OpenAPI 3.1 contract is available at /openapi.yaml, and versioned
integration endpoints use the /api/external/v1 prefix.
GET/POST /api/workflows,GET/PUT /api/workflows/:idGET/POST /api/models,GET/PUT/DELETE /api/models/:idPOST /api/workflows/:id/publish,DELETE /api/workflows/:id/draft,GET /api/workflows/:id/versions— save is a draft; publish creates the active versionGET /api/notifications— loop alerts (LOOP_LIMIT)POST /api/workflows/:id/executePOST /api/eventsGET /api/executions,GET /api/executions/:idGET /api/dashboard
Node types implemented: Event, Action, Condition (multi-output), Mapping, API Request, Task, Update Entity, and nested Workflow. Event nodes inside a chain wait durably for their configured event; separate Wait and Notification node types are not used.
The Models section provides SQLite-backed CRUD for JSON data structures. Field values can reference primitive types, other models, inline objects, and arrays such as User[]. Both the Vue editor and API validate model names, fields, types, and references.
Workflow data contracts are derived automatically from connected blocks. Event blocks validate and merge their selected payload model, output-port hover previews show the accumulated structure, and the standalone Mapping block converts inherited data into an explicitly selected model for third-party API requests.
The node Inspector exposes synchronized Main, Properties, and Source views. Event conditions use a restricted, model-aware data.* expression language; unknown fields and incompatible types are rejected in the editor and by the API, and runtime evaluation does not use eval or Function.
Event conditions expose input.* for inherited port data and model.* for the current event payload. Correlation checks such as input.itemId == model.itemId run before merge; a non-matching internal Event leaves the execution waiting and does not mutate its context.
API Request properties support GET/POST, URL placeholders such as {{data.item.sku}}, and JSON POST mappings from target request fields to inherited data.* paths. URL values are encoded and both templates and request mappings are validated before workflow save and runtime execution.
MVP boundary
Every event runs in one PostgreSQL transaction; duplicates, async events, FIRE_EVENT and DELAY are durable and survive a restart; loops are allowed under a step counter that stops a runaway pass with LOOP_LIMIT and a notification. Authentication/authorization, worker retries, condition sandboxing, realtime updates, and production API allowlists remain deployment-hardening tasks.