@burtson-labs/agent-adapters-web
v1.0.6
Published
Web adapter for the Bandit Agent Framework.
Readme
@burtson-labs/agent-adapters-web
Browser host adapter for the Bandit Agent Framework.
Run an @burtson-labs/agent-core runtime in the browser — agent events are dispatched through a configurable EventTarget so any host (a React app, a webview, a worker) can subscribe with normal DOM event listeners.
Install
pnpm add @burtson-labs/agent-adapters-web @burtson-labs/agent-coreWhat's inside
WebAdapter— wraps anAgentRuntimewithplan/execute/reportplus asubscribe(listener)returning an unsubscribe functionWebAdapterOptions— extendsCreateAgentRuntimeOptionswithtarget(customEventTarget) andeventNamefor the dispatched event typeMinimalEventTarget— structural type for hosts that ship a partial event target (workers, custom impls)
Quick example
import { createWebAdapter } from "@burtson-labs/agent-adapters-web";
const adapter = createWebAdapter({
target: window,
eventName: "bandit-agent-event"
});
const unsubscribe = adapter.subscribe((event) => {
console.log(event.type, event.payload);
});
await adapter.plan("Summarize the current page");
unsubscribe();License
Apache License 2.0 — Copyright 2026 Burtson Labs.
