How zenineasa/konjugate works
Konjugate is a graph-native engineering simulation application. Users compose component-and-relationship models, validate them, then run simulations and explore or export results. CSV-based causal inference can propose model structure, while parameter fitting calibrates models against measured data. The application also supports FMU exchange, programmable relationship providers, add-ons, and AI-assisted authoring. The graph reflects documented capabilities and sampled browser-engine wiring; several desktop and feature-specific implementation links are left out where source excerpts do not establish their call paths.
Main entry points: engine.mjs Engine API · main.cpp Engine command entry · renderer.mjs Model editor · resultSession.mjs Result sessions
Components 22
Model authoring
- Model editor
src/renderer/renderer.mjs - Document state
src/renderer/documentController.mjs - Project files
src/projectFile.mjs
Analysis and results
- CSV data
src/csvImport.mjs - Causal inference
engine/src/causalInference.cpp - Parameter fitting
engine/src/parameterFitting.cpp - Result sessions
src/resultSession.mjs - Result plots
src/renderer/resultPlot.mjs - Result export
src/resultExport.mjs
Simulation engine
- Engine API
src/renderer/webShims/engine.mjs - Web engine adapter
src/webEngineAdapter.mjs - Live-run shim
src/webEngineLiveShim.mjs - Live-run worker
src/webEngineLiveRunWorker.mjs - Engine command entry
engine/src/main.cpp - Simulation runner
engine/src/simulationRunner.cpp - Model validation
engine/src/modelValidator.cpp - Engine protocol
src/engineProtocol.mjs
Integrations
- FMU exchange
src/fmiExport.mjs - Relationship providers
engine/src/providerRuntime.cpp - Add-ons
src/pluginResolver.mjs - AI authoring
src/assistantOperations.mjs
Other components
- Engineer
Connections 22
- Engineer → Model editor: authors model
- Model editor → Document state: records edits
- Model editor → Project files: loads and saves
- Model editor → Engine API: requests operations
- CSV data → Causal inference: supplies time series
- Engine API → Web engine adapter: calls operations
- Engine API → Live-run shim: controls live runs
- Web engine adapter → Engine command entry: invokes WASM
- Live-run shim → Live-run worker: dispatches live run
- Live-run worker → Engine command entry: invokes WASM
- Live-run worker → Engine protocol: decodes events
- Engine command entry → Model validation: dispatches validation
- Engine command entry → Causal inference: dispatches inference
- Engine command entry → Parameter fitting: dispatches fitting
- Engine command entry → Simulation runner: dispatches simulation
- Engine API → Add-ons: resolves add-ons
- Engine API → FMU exchange: resolves FMUs
- Simulation runner → Relationship providers: uses providers
- Engine API → Result sessions: projects results
- Result sessions → Result plots: supplies plot data
- Result sessions → Result export: supplies exports
- Model editor → AI authoring: requests assistance