Skip to content

GUI

Package: caddforge-gui

Version 0.7.0

GUI 0.7.0 uses core 0.24.0 and the compatible plugin versions in the version matrix.

The GUI package provides a FastAPI server, REST/SSE API, static frontend assets, and a plugin GUI extension runtime.

The workbench uses complete model schemas, shared Local/Slurm settings, retained drafts and explicit molecular manifests. See the walkthrough and authoring contract.

Launch the GUI

CLI:

caddforge gui --host 0.0.0.0 --port 8000

Python package install:

python -m pip install caddforge-gui

Open the server URL in a browser, for example:

http://localhost:8000

Jobs dashboard

The jobs dashboard uses server-side pagination and filtering for large registries. Search matches job ID, job name, tool name, section, and backend; page-size and navigation controls request only the visible result window. The underlying /api/v1/jobs endpoint accepts limit and offset and returns total-count metadata.

Install plugin GUI extensions

Some plugins expose optional GUI extras:

python -m pip install "caddforge-docking[gui]"
python -m pip install "caddforge-md[gui]"
python -m pip install "caddforge-fep[gui]"

Install the GUI package, core package, and plugin extras in the same environment so extension entry points can be discovered. Bundle 0.25.0 selects the compatible component versions; see installation.

GUI submissions forward each plugin's declared runtime input contracts to core. This allows the same transparent gzip staging and nested input behavior as CLI and pipeline submission.

Frontend development

cd caddforge-gui/frontend
npm install
npm run build

The build writes static assets into caddforge-gui/src/caddforge_gui/static.

Plugin UI kit

Plugin GUIs can reuse shared frontend helpers from:

caddforge_gui/static/assets/plugin_uikit.js

The runtime URL for extensions is:

/static/assets/plugin_uikit.js

Shared backend helpers live in:

caddforge_gui.plugin_runtime

Bundled molecular viewer licences

The new workbench embeds Mol* 5.11.0 locally, including its MIT licence and bundled notices. The legacy viewer helper now uses the same local assets. React's MIT licence also ships with the frontend. Preserve caddforge_gui/static/THIRD_PARTY_LICENSES when redistributing a wheel or source archive; frontend builds do not require a CDN.

Standard worker reporting

Workbench tools use common worker activity and canonical stage snapshots, including PheSA, docking, OpenFE, plain MD, GaMD, structure preparation and trajectory analysis. Measured work gets a current-stage percentage and ETA; opaque engine work shows its stage, live output, heartbeat and an explicit unavailable ETA. Replica/edge/job counts remain separate from scientific stage percentages. Heartbeats do not claim advancement.

Use the same registry as the GUI when inspecting work from the CLI:

caddforge logs JOB_ID
caddforge logs JOB_ID --follow
caddforge logs JOB_ID --registry-path /path/to/job_registry.sqlite --follow

The common source list includes worker.log, stdout/stderr, declared engine logs and child jobs. Following a submitted campaign continues while children run and does not execute scientific aggregation. Progress refresh is independent of backend status changes. Stale snapshots lose their ETA, and cancellation does not leave replica/edge units presented as live workers.

Runtime settings are progress_update_interval_seconds: 5, heartbeat_interval_seconds: 30 and log_sync_interval_seconds: 30; explicit existing tool settings remain effective. Scratch data is synchronized resiliently and old progress/activity/declared engine logs are retained with execution attempts. OpenFE edges use the ordinary callable worker lifecycle and live log copy-back. Detailed OpenFE iteration estimates are intentionally unavailable without validated counters.