@synapta/control-ui
v2.8.0
Published
Synapta browser Control UI — Lit + Vite static bundle served by the gateway
Readme
@synapta/control-ui
Lit + Vite Browser Control UI for the Synapta gateway. Built into packages/gateway/dist/control-ui/ so it ships inside the published @synapta/gateway tarball — no separate hosting required.
Routes (v1.0):
/#/dashboard— gateway health + version + uptime/#/sessions— list of sessions under~/.synapta/sessions//#/approvals— pending approval cards with approve / deny buttons (5s poll)/#/devices,/#/audit,/#/settings— placeholders (full UIs land in 1.1)
Auth: bearer token from ~/.synapta/control-ui-token is passed in the URL fragment (#/dashboard?token=…), exchanged for an httpOnly+SameSite=Strict cookie via POST /control/ui-session, then stripped from the URL.
Build:
pnpm --filter @synapta/control-ui buildThe Vite output lands at ../gateway/dist/control-ui/. The gateway's control-ui.ts route serves it via @fastify/static.
