@dvvezig/client
v0.1.0
Published
Zig host-side SDK (headless): connect, consume the thread, dispatch intents, attach channels. NO UI.
Readme
@dvvezig/client
Headless host-side SDK for Zig rooms.
This package connects human-facing host apps to a Zig runtime. It provides typed thread data, roster and capability-card state, tracked surfaces, intent dispatch, channel attachment, and standard channel codecs. It does not ship UI components.
npm install @dvvezig/clientimport { connectHost, terminalCodec, wsHostTransport } from "@dvvezig/client";
const host = await connectHost({
transport: await wsHostTransport("ws://localhost:8787/rooms"),
room: "hq",
participantId: "dave",
});
host.onEnvelope((envelope) => {
// Render messages, events, surfaces, and channel state in your own UI.
});Use @dvvezig/client when building the application humans use. The host owns rendering; Zig supplies the protocol data and codecs.
