English | 简体中文
SmartMOM was formerly called HoneyMOM. Only the name changed, see CHANGELOG.md.
SmartMOM is an open-source manufacturing operations management (MOM/MES) system for discrete plants, built first for foundries, machine shops and plants that do both. It covers the four ISA-95 Level 3 areas (production, quality, maintenance and inventory operations), adds a built-in ERP for sales, purchasing, MRP and costing, and collects machine data over MQTT, Sparkplug B, OPC UA, Modbus TCP, HTTP push and SQL staging tables. AI features (an assistant that queries plant data, daily reports, anomaly watch, agents with human approval, an MCP endpoint for external AI tools) work with any OpenAI-compatible model and stay off until an administrator enables them. The backend is Python (FastAPI, SQLAlchemy) on SQLite or PostgreSQL, the web UI is Vue 3. A data replayer plays back a recorded 24-hour day of a demo foundry over MQTT, OPC UA and Modbus, so you can try everything without a plant.
- Features
- Screenshots
- Quick start
- Configuration
- AI configuration
- Architecture
- Roadmap
- License
- Contributing
Grouped by the ISA-95 (IEC 62264) activity areas. The left-hand menu of the web UI follows the same grouping.
- Master data: plants, workshops, lines, workstations, materials, BOMs, routings, shifts and teams.
- Work orders, finite-capacity scheduling by priority and due date with constraint markers (material shortage, equipment downtime, operator skills, molds and fixtures, changeover times), what-if schedule change proposals, dispatching.
- Production reporting from the desktop, a workstation terminal (
/station) and a mobile PWA (/m, barcode scanning). Reporting gates reject duplicate, over-quantity and out-of-sequence reports, require first-article release, and block reports on held lots. - Serialized parts and lots, traceability from part to process data and back, traceability reconciliation.
- Andon, clock-in/out, labor hours, operator daily reports with approval, production daily report.
- Cycle-time analysis down to individual machine actions (for example clamp, spindle, door), with baselines and drift.
- Foundry: heat records (chemistry, temperature, power), nodularization records, least-cost charge optimization (linear programming).
- Machining: NC program approval and release, tool register and tool life, tool-wear estimation from spindle load.
- Casting–machining: defects found in machining traced back to heat, ladle, pouring temperature, residual magnesium and sand parameters (chi-square test), coordinated scheduling of both sections.
- Labels (ZPL, TSPL, SVG, PDF) and laser marking, packing, palletizing, shipping notices (JSON, Excel, flat file, EDIFACT), subcontracting.
- Inspection templates; incoming, in-process, first-article and final inspection.
- Nonconformance reports with disposition, rework and re-inspection, 8D reports, SPC and process capability.
- PFMEA with action priority (AIAG-VDA 2019) → control plan → inspection templates.
- Gauges and calibration with release by electronic signature; MSA (GR&R by average-and-range and ANOVA, bias, linearity).
- Controlled documents and engineering change notices (ECN) with impact analysis and electronic signatures.
- Customer complaints, containment of affected stock, recall simulation.
- Equipment register and live monitor, alarms, OEE computed from machine states and part events (no manual entry).
- Inspection and preventive maintenance plans, repair orders, spare parts linked to repairs, energy per hour.
- Stock, receipts and issues, stocktaking, lot hold and release, material requests and kitting, AGV transport tasks.
- Sales: price lists, orders with delivery schedules, credit checks, quotations, shipping, returns, statements.
- Purchasing: approved suppliers, requisitions, purchase orders, receiving with incoming inspection, supplier ratings.
- MRP: multi-level BOM explosion netted against stock, open orders and WIP, lead-time offsetting, pegging to the demand, rough-cut capacity; suggestions released as work orders or purchase orders.
- Costing (moving average, actual work-order cost, standard cost roll-up, variances, period close), receivables and payables, accounting vouchers with configurable export formats.
- External ERP mode: when another ERP is the system of record, SmartMOM exchanges data through a REST API, signed webhooks with retries and a staging database.
- Data sources: MQTT (unified namespace topics), Sparkplug B, OPC UA (subscribe or poll, address-space browsing), Modbus TCP, HTTP push and SQL staging tables.
- Onboarding from a delivery package (point table
points.xlsx, floor planlayout.dxf, 3D models*.glb): validate, preview, confirm, then check and confirm tag by tag; commissioning acceptance report. - Time series for every tag (raw values, 1-minute and 1-hour rollups, retention; TimescaleDB when available), store-and-forward when the database is unavailable, 2D/3D plant map with live states.
- Assistant panel on every page: questions answered from read-only SQL and business queries under the user's permissions; write actions (repair order, NCR, andon, material request, schedule proposal) only after the user confirms a draft.
- Daily report with AI commentary, AI watch over quality, equipment, schedule and material, one-sentence automations, knowledge-base Q&A, AI-assisted onboarding (column mapping, tag meaning, reading PLC programs).
- Agents: a visual flow editor with chat, schedule, event and webhook triggers, human approval steps, step-by-step debugging, versions and an action allow-list.
- MCP endpoint (
/mcp) so external AI tools can query plant data with an API key. - Demo mode replays recorded answers without calling a model.
- Roles with page, button and API permissions plus data scopes (plant, workshop, line); audit log with hash chain; API keys with expiry and IP allow-list.
- Versioned database migrations, daily and manual backups with restore drills.
- Configuration without code: custom fields, form layouts, approval flows, report designer, industry templates, an Excel import framework and a set-up wizard.
- Industry templates for foundry, machining, injection molding and assembly.
- English and Simplified Chinese UI and demo data.
Demo plant "Northfield Castings" fed by the replayer.
Requires Docker with Compose v2.
git clone https://github.com/HoneyMeta/SmartMOM.git
cd SmartMOM
docker compose upThe first run builds the image (a few minutes). Then open http://localhost:8900 and log in as admin with password
honey123. Other demo accounts: manager, planner, leader, operator, qc, maint, wh, engineer (same
password). The cockpit, plant map and OEE fill within about a minute as the replayer sends data.
docker compose up starts three containers: mom (SmartMOM and the web UI), db (PostgreSQL 17) and replayer.
The replayer plays back a recorded day of the demo plant. SimFactory simulates the same plant live: you can change the speed, inject faults or stop machines and watch SmartMOM react. To use it as the data source:
docker compose --profile factory upThis adds a simfactory container (image ghcr.io/honeymeta/simfactory:latest, demo mode) with its web UI on
http://localhost:8800 (admin / honey123). The replayer then plays nothing and relays the demo ports (MQTT 1883,
OPC UA 4840, Modbus TCP 5020, web 8800) to SimFactory, so SmartMOM's demo data sources need no change. Start without
--profile factory to go back to the recording. Requires Docker Compose 2.20 or later.
To build SimFactory from a checkout next to this one instead of pulling the image:
git clone https://github.com/HoneyMeta/SimFactory.git ../SimFactory
docker compose -f docker-compose.yml -f docker/compose.factory-build.yml --profile factory up --buildOther plants, and SimFactory on another machine: see docs/getting-started.md.
For production (no demo data, the first start asks you to create the administrator):
cp docker/env.example .env # set POSTGRES_PASSWORD, TZ, ...
docker compose -f docker-compose.yml -f docker/compose.production.yml up -dSee docs/deployment.md for production, backups and upgrades.
Requires Python 3.12 and Node.js 20 or later.
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt -r replayer/requirements.txt
cd web && npm ci && npm run build && cd ..
# terminal 1: plant data
python -m replayer
# terminal 2: SmartMOM in demo mode, SQLite database in data/mes.db
MOM_DEMO=1 python -m smartmom serve # Windows: set MOM_DEMO=1 && python -m smartmom serveInstead of the replayer you can run SimFactory in demo mode on the same machine: it serves the same demo plant on the same ports (MQTT 1883, OPC UA 4840, Modbus TCP 5020).
Open http://localhost:8900. Without MOM_DEMO=1 you get a production install: no accounts and no demo data; create
the administrator in the browser or with python -m smartmom create-admin --username admin.
For front-end work, run npm run dev in web/ (Vite on port 5190, /api is proxied to port 8900).
More in docs/getting-started.md.
SmartMOM reads environment variables at start-up. The most used ones:
| Variable | Default | Meaning |
|---|---|---|
MOM_DEMO |
off | 1: demo accounts (password honey123) and the demo plant. Off: production install. |
MOM_DEMO_LANG |
en |
Demo dataset language, en or zh. Used when the database is first seeded. |
MOM_LANG |
demo language, else en |
Default language for requests without a language and for background texts. |
MOM_DB |
sqlite:///<data dir>/mes.db |
Database URL, e.g. postgresql+psycopg://user:password@host:5432/smartmom. |
MOM_DATA |
./data |
Data directory: SQLite database, uploaded files, backups. |
MOM_BACKUP_DIR |
<data dir>/backups |
Where backups are written. |
MOM_LLM_BASE_URL, MOM_LLM_API_KEY, MOM_LLM_MODEL |
– | OpenAI-compatible model endpoint for the AI features. |
MOM_ADMIN_PASSWORD |
– | Password for python -m smartmom create-admin without a prompt. |
Variables from earlier versions (MES_DB, HM_DATA, MES_LLM_*, other MES_* / HM_*) still work; the MOM_*
name wins when both are set.
python -m smartmom serve also takes --http <port> (default 8900), --host (default 0.0.0.0) and --db <url>.
The full list is in docs/configuration.md. Plant-specific settings (company, shifts,
backup time, AI switches, MCP limits) are changed in the UI under System.
The AI features use the OpenAI chat-completions API format (POST <base_url>/chat/completions, with tool calling),
so they work with hosted services and with self-hosted servers such as vLLM, Ollama or LM Studio that offer an
OpenAI-compatible endpoint.
-
Configure the endpoint, either with environment variables
MOM_LLM_BASE_URL=https://api.example.com/v1 MOM_LLM_API_KEY=... MOM_LLM_MODEL=your-model-name
or by copying
config/llm.example.jsontoconfig/llm.local.json(git-ignored) and filling it in. Environment variables take precedence over the file; the old namesMES_LLM_*still work. -
Log in as an administrator, open System → AI features, turn on the master switch and the features you want.
SmartMOM ships with no model endpoint, model name or key, and no keys are stored in the repository. AI stays off until all three values are configured: until then the AI features use rule-based results, and demo mode replays recorded answers without calling a model. When a model is configured, prompts that contain plant data (query results, page context) are sent to that endpoint. Details: docs/ai.md.
Browser: desktop UI, workstation terminal, External AI tools External ERP
mobile PWA, shop-floor display (Vue 3) (MCP, /mcp) (REST, webhooks, staging DB)
│ HTTP /api │ │
┌───────────────┴──────────────────────────────────────┴──────────────────────┴───────┐
│ SmartMOM: one Python process (FastAPI) │
│ production · quality · maintenance · inventory · built-in ERP · scheduling │
│ AI assistant, agents, watch · permissions · audit · backup · migrations │
│ collector (MQTT, Sparkplug B, OPC UA, Modbus TCP, HTTP push, SQL) │
│ → ingest worker → business records + time series │
└───────────────┬─────────────────────────────────────────────┬────────────────────────┘
│ SQLAlchemy │ MQTT / OPC UA / Modbus TCP
SQLite or PostgreSQL (+ TimescaleDB) PLCs, gateways, brokers, or the replayer
smartmom/schema*.py: entity definitions. One definition creates the database table, the generic REST API (/api/e/<entity>) and the list and form pages in the UI.smartmom/services/,smartmom/erp/,smartmom/factory/,smartmom/impl/,smartmom/agent/: business services, built-in ERP, factory model and onboarding, configuration tools, agent engine.smartmom/collector.py,smartmom/ingest.py,smartmom/ts.py: protocol connectors, mapping of tag values to business records (machine states, alarms, energy, counters, tool life, part events), time series.smartmom/migrations/: versioned migrations, run automatically at start-up.web/: Vue 3 single-page app, built intoweb/distand served by the backend.replayer/: plays back recordings over the same interfaces a plant offers; see replayer/README.md.tests/: API and in-process checks (*_check.py), browser walk-throughs (*_ui.js).
Business time follows the data clock (timestamps of the collected data), so reports stay correct when a source runs faster than real time.
Possible next steps, not commitments; discussion and contributions are welcome in the issues:
- more industry templates and device templates;
- more UI and demo-data languages;
- a Helm chart for Kubernetes and an official image with TimescaleDB;
- replaying OPC UA history and alarm events in the replayer;
- running the browser walk-throughs (Playwright) in CI.
Copyright (C) 2026 蜂元科技(郑州)有限责任公司 (HoneyMeta Technology (Zhengzhou) Co., Ltd.)
SmartMOM is licensed under the GNU Affero General Public License v3.0 or later (LICENSE). If you run a modified version for users over a network, the AGPL requires you to offer them its source code.
A commercial license is available for organisations that want to use SmartMOM without the AGPL obligations, for example in a proprietary product or a hosted service, and it can include support with an SLA. See COMMERCIAL-LICENSE.md or contact [email protected], https://www.honeymeta.com.
Third-party components and acknowledgements: THIRD-PARTY-NOTICES.md.
Bug reports, fixes, translations, device templates and industry templates are welcome. Read CONTRIBUTING.md first. Contributors sign the CLA once; the CLA bot asks on your first pull request. Please follow the code of conduct and report security problems privately as described in SECURITY.md.
Main repository: https://github.com/HoneyMeta/SmartMOM. Read-only mirrors on Gitee and GitCode.





