@iojcde/y-partykit
v0.0.4
Published
y.js on partykit!
Downloads
9
Readme
y-partykit
Yjs is a library of data structures for building collaborative applications. y-partykit
is a library that makes it easy to host backends for Yjs on partykit. You can create a yjs backend with as little code as this:
// server.ts
import { onConnect } from "y-partykit";
export default { onConnect };
Then, you can use the provider to connect to this server:
import YPartyKitProvider from "y-partykit/provider";
const provider = new YPartyKitProvider("localhost:1999", "my-room", doc);