Skip to content

tanghaojie/vue-pinia-collaborative

Repository files navigation

vue-pinia-collaborative

A vue3 pinia plugin for high performance real-time collaboration, huge data rendering on time. base on yjs.

一个超高性能的实时在线协同 vue pinia 插件,支持超大数据量实时渲染。不影响业务层代码。

gif

feats:

  • real-time collaboration

  • multi pinia store support

  • undo/redo combine multi store

Getting Started

Install and run:

pnpm install
pnpm dev

Use with custom websocket server:

  1. Download y-websocket and start.

  2. Change collaborateStore.ts connection config:

{
    websocketConfig: {
        // serverUrl: 'wss://demos.yjs.dev/ws',
        serverUrl: 'ws://localhost:1234',
        // ...
    }
}