mirrorneuron-web-ui
v1.1.1
Published
MirrorNeuron web UI dashboard.
Readme
MirrorNeuron Web UI
Browser interface for inspecting a MirrorNeuron runtime through the REST API.
The Web UI shows runtime state, job history, job details, agent graphs, events, and raw manifest submission screens.
Features
- Runtime dashboard with node and executor-pool status.
- Job list for active, completed, and pending jobs.
- Job detail pages with status, agent graph, agent table, and event stream.
- Dead-letter and communication-log inspection where available from the API.
- Raw JSON manifest submission.
- Development proxy to the local
mn-apiservice.
Demo and Screenshots
Screenshots or GIFs should be added here when the UI stabilizes:
docs/images/web-ui-dashboard.png
docs/images/web-ui-job-detail.pngTech Stack
| Area | Tooling |
| --- | --- |
| Runtime | Node.js and npm |
| Framework | React |
| Build tool | Vite |
| Styling | Tailwind CSS |
| Graph view | React Flow |
| Tests | Vitest |
| Packaging | npm package mirrorneuron-web-ui |
Prerequisites
- Node.js and npm.
- A running MirrorNeuron API. The default local API is
http://localhost:4001/api/v1.
Installation
For local development:
npm installThe released-package installer installs the published npm package automatically when Web UI installation is enabled.
Configuration
Vite exposes MN_ environment variables to the browser build.
| Variable | Default | Description |
| --- | --- | --- |
| MN_WEB_API_BASE_URL | /api/v1 | REST API base URL used by the browser. |
| MN_WEB_API_TOKEN | unset | Optional bearer token for protected API instances. |
| MN_WEB_UI_HOST | localhost | Development server bind host. |
| MN_API_HOST | localhost | Development proxy API host. |
| MN_API_PORT | 4001 | Development proxy API port. |
Running
Start the API first:
mn-apiStart the Web UI in development mode:
npm run devOpen:
http://localhost:5173Build
npm run buildPreview the production build:
npm run previewTesting and Linting
npm run lint
npm test -- --runPackage Publishing
Stable SemVer tags publish to npm through GitHub Actions Trusted Publishing after the release workflow succeeds. Prerelease tags create GitHub prereleases and skip npm by default.
The npm package is:
mirrorneuron-web-uiDeployment
The standard deployment path is mn-deploy/install_new.sh. It installs the npm package, copies the built dist/ output into the local Web UI install directory, and starts it through mn start.
For custom deployments:
- Build the app with
npm run build. - Serve the generated
dist/directory with a static file server. - Point
MN_WEB_API_BASE_URLat the API path available to the browser.
Troubleshooting
| Symptom | Check |
| --- | --- |
| UI loads but API calls fail | Confirm mn-api is running and the dev proxy target matches MN_API_HOST and MN_API_PORT. |
| Protected API returns unauthorized | Set MN_WEB_API_TOKEN. |
| Graph page is empty | Confirm the selected job has graph data available from the API. |
| Build fails on type errors | Run npm run lint and npm test -- --run before npm run build. |
Contributing
Keep UI changes aligned with the REST API contract. Add or update Vitest coverage for data loading, rendering states, and user actions.
License
MIT.
