@hoardodile/host-web
v0.1.14
Published
Browser-side hoardodile host runtime: host-core protocol router and the offline mock host.
Maintainers
Readme
@hoardodile/host-web
The browser-side plugin host runtime: the shared host-core protocol
router (used by the hoardodile web app in production and by the offline
mock) plus the mock host for component tests and the workbench. The wire
protocol itself stays in @hoardodile/sdk-web — this package consumes
it, never redefines it.
Install
pnpm add @hoardodile/host-webWhat's in it
createHostRouter/defineHandler— the host-core protocol router: message demux, method routing, per-method param validation, stale-request scoping, response envelope. The real app and the mock assemble on this module so routing and validation never driftcreateMockHost— an in-memory host for jsdom component tests and the workbench; register a window and drive the iframe bridge with no servercreateInMemoryFileBackend— file backend for the mock
Subpaths
| Entry | Contents |
| ----- | -------- |
| @hoardodile/host-web | Browser-safe router + mock (no node imports) |
| @hoardodile/host-web/node | Node file backends (directory-backed mock storage) |
