hub-hono-minimal
The minimal Hono host for @devframes/hub: one initHub() call behind a catch-all route, running on Node and Bun from the same app file, the UI supplied by @devframes/hub-ui.
Package: hub-hono-minimal · framework: Hono
What it shows
initHub({ base, devframes: [inspect, messages], ui: createUi() })insrc/app.tsplusapp.all(\${hub.base}*`, c => hub.handler(c.req.raw, c.env))`.- On Node (
@hono/node-server), the RPC WebSocket runs on an eager side-car port. - On Bun (
Bun.serve({ fetch, websocket: hub.websocket })), WebSocket upgrades complete throughhub.handler(request, server)on the app's own origin — no side-car. The repo'sscripts/smoke-bun.tsexercises this path end to end.
Run it
sh
pnpm install
pnpm --filter hub-hono-minimal dev # Node
pnpm --filter hub-hono-minimal dev:bun # Bun