hub-rsbuild-minimal
The minimal Rsbuild host for @devframes/hub: one initHub() call mounted into the dev server's middleware stack, the UI supplied by @devframes/hub-ui.
Package: hub-rsbuild-minimal · framework: Rsbuild
What it shows
initHub({ base, devframes: [inspect, messages], ui: createUi() })created insideserver.setupinrsbuild.config.ts— lazily, so importing the config never spawns the hub's side-car, and reused across re-runs.server.setupregistershub.nodeMiddleware, which owns the/__devframes/namespace and hands everything else back to Rsbuild.- Rsbuild's middleware stack never hands over upgrades, so
ws: { sidecar: true }puts the RPC WebSocket on its own port, advertised through<base>__connection.json;html.tagsinjects the${hub.base}embedded.jsbootstrap.
Run it
sh
pnpm install
pnpm --filter hub-rsbuild-minimal devOpen the printed URL for the host page with the floating dock, or /__devframes/ for the standalone viewer.