hub-next-minimal
The minimal Next.js host for @devframes/hub: one initHub() call on an App Router catch-all route, the UI supplied by @devframes/hub-ui.
Package: hub-next-minimal · framework: React (Next.js)
What it shows
initHub({ base, devframes: [inspect, messages], ui: createUi() })behind one route (app/%5F_devframes/[[...path]]/route.ts) delegating tohub.handler(request).- The plugins and
@devframes/hub-uiload via a bundler-ignored dynamicimport(), so Next resolves their publisheddistat runtime (theirimport.meta.urlasset lookups don't survive static bundling). - Next route handlers can't accept WebSocket upgrades, so the instance runs its eager side-car WS server, advertised through
<base>__connection.json.
Run it
sh
pnpm install
pnpm --filter hub-next-minimal devOpen the printed URL for the host page with the floating dock, or /__devframes/ for the standalone viewer.