@roomful/vue
v1.5.4
Published
Vue plugin and composables for Roomful — realtime presence, cursors, shared state, viewport, locking, pointer, comments, and history.
Readme
@roomful/vue
Vue 3 bindings for Roomful — a plugin and composables that integrate real-time collaboration (presence, cursors, shared state, awareness, events, viewport sync, laser pointer, locks, comments, and history) with Vue's reactivity system.
Stable — v1.5. Realtime presence, cursors, and shared state, plus the collaboration primitives (
useViewport,useLocks,usePointer,useComments,useHistory). The API is stable and ready for production.
Install
npm install @roomful/core @roomful/vueUsage
import { createApp } from 'vue';
import { RoomfulPlugin } from '@roomful/vue';
import App from './App.vue';
createApp(App)
.use(RoomfulPlugin, { roomId: 'my-room', presence: { name: 'Alice' } })
.mount('#app');<script setup>
import { usePresence, useSharedState } from '@roomful/vue';
const { others } = usePresence();
const [count, setCount] = useSharedState('count', { initialValue: 0 });
</script>Composables: usePresence, useCursors, useSharedState, useAwareness, useEvent, useConnectionStatus (plus the v-roomful-cursors directive). v1.5 collaboration primitives: useViewport, useLocks (plus useLockState), usePointer, useComments, useHistory — see the reference docs. RoomfulPlugin also accepts onConnect, onDisconnect, and onError lifecycle callbacks.
Documentation
See the Roomful repository for the full API reference.
License
MIT
