@skaile/workspace-bridge-vue

Vue 3.3+ bindings for @skaile/workspaces (useAgentStore, useResourceClient, useSubscribableStore)
34,298
Install
npm install @skaile/workspace-bridge-vue
Latest Version:5.12.0
Vue:3
License:Apache-2.0
Last Updated:Oct 21, 2026
Links: npm
Maintainer: peter_aic

@skaile/workspace-bridge-vue

Vue 3.3+ bindings for @skaile/workspaces. Provides composables for subscribing to the framework-agnostic AgentStore and ResourceClient via shallowRef + onScopeDispose.

Install

bun add @skaile/workspaces @skaile/workspace-bridge-vue vue

Usage

<script setup lang="ts">
import { useAgentStore } from "@skaile/workspace-bridge-vue";
import type { AgentStore } from "@skaile/workspaces/store";

const props = defineProps<{ store: AgentStore }>();
const snapshot = useAgentStore(props.store);
// snapshot.value.messages, snapshot.value.streamingText, etc.
</script>

Connect to skaile serve

The components above take the AgentStore as a prop. Build it from an AgentClient on a WebSocket transport pointed at a running skaile serve:

import { AgentClient } from "@skaile/workspaces/client";
import { AgentStore } from "@skaile/workspaces/store";
import { WebSocketClientTransport } from "@skaile/workspaces/transport/ws/client";

const transport = new WebSocketClientTransport({ url: "ws://localhost:8080" });
const store = AgentStore.fromClient(new AgentClient(transport));
await transport.connect();

Exports

Composable Returns Notes
useSubscribableStore<T>(store) ShallowRef<T> Generic — works for any SubscribableStore<T>
useAgentStore(store) ShallowRef<AgentStoreSnapshot> Convenience wrapper around useSubscribableStore
useResourceClient(client) ShallowRef<ResourceClientSnapshot> Convenience wrapper around useSubscribableStore

Peer Dependency

  • vue >= 3.3 (uses Composition API + effectScope)

Related Packages

@skaile/forge-editor

Vue and React editor library on TipTap v3 (Vue: Nuxt UI; React: shadcn/ui): fram...

721
@skaile/forge-annotation-inbox

Annotation toolbar whose notes reach coding agents with SFC source locations: fr...

255 0
@skaile/forge-chat

Shared chat window: framework-free core (message model, reducer, transport port)...

147

Version History

Version Released License
5.12.0 Apache-2.0
5.11.0 Apache-2.0
5.10.0 Apache-2.0
5.9.0 Apache-2.0
5.8.0 Apache-2.0
Pre-releases (3)
Version Released License
0.22.0-beta.2 Apache-2.0
0.22.0-beta.1 Apache-2.0
0.22.0-beta.0 Apache-2.0