@aip-tech/braid-plugin-ui
v0.7.0
Published
A browser dashboard for braid: live process status, CPU and memory, start, stop and restart buttons, and live per-process logs, served by the stack itself.
Readme
@aip-tech/braid-plugin-ui
A browser dashboard for braid: live status, start, stop and restart buttons, and each process's logs. It's served by the stack itself, so there's nothing else to run.
Requires @aip-tech/braid 0.10 or later and Node 22.18 or later.
Install
npm install --save-dev @aip-tech/braid-plugin-uiAdd it to your braid.config.ts:
export default defineConfig({
processes: [/* ... */],
plugins: ["@aip-tech/braid-plugin-ui"],
});Open it
braid start prints the dashboard's link:
[plugin:ui] dashboard ready - open http://127.0.0.1:54213/#token=… in your browserThe page keeps its access token for the life of the tab, so reloading works. A new tab, or a restarted stack, needs the link again.
What you get
- Every process's state, pid, CPU, memory, restarts and uptime, refreshed every 2 seconds.
- Start, stop and restart buttons, using the same routes as the CLI.
- A page per process with CPU and memory charts and its live, colored log, with older lines a click away.
Options
plugins: [["@aip-tech/braid-plugin-ui", { path: "/dashboard/" }]],| Option | Type | Default | Description |
| ------ | -------- | ------- | ---------------------------------------------------------------- |
| path | string | "/" | URL prefix to serve the dashboard under. End it with a /. |
License
MIT
