Skip to content

Program In Browser IDE

Truth First

  • Browser IDE lives at /ide
  • Browser IDE is served by trust-runtime ide serve
  • default runtime web binding is often loopback-only
  • if the URL must be reachable from another host, expose it safely: Networking And Remote Access

For Administrators

Start the standalone Browser IDE:

trust-runtime ide serve --project examples/tutorials/12_hmi_pid_process_dashboard

Or from the repo root:

cargo run -p trust-runtime --bin trust-runtime -- ide serve \
  --project examples/tutorials/12_hmi_pid_process_dashboard

This gives you:

  • Browser IDE on http://127.0.0.1:18080/ide

For Browser Users

Open:

  • http://127.0.0.1:18080/ide

Then:

  1. open src/main.st
  2. run build
  3. run validate
  4. inspect the project tree

What Success Looks Like

  • /ide loads the project and lets you browse files
  • build and validate complete without errors

Browser IDE

Figure: The browser IDE with the shipped tutorial project already loaded. Open the project tree from here, then open src/main.st before you build or validate.

If It Fails

  • URL works on the host but not another machine: check loopback-only binding and Networking And Remote Access
  • /ide loads but you cannot edit: confirm the runtime/session mode

Next