@iojcde/y-partykit

0.0.4 • Public • Published

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);

Readme

Keywords

none

Package Sidebar

Install

npm i @iojcde/y-partykit

Weekly Downloads

0

Version

0.0.4

License

ISC

Unpacked Size

83.1 kB

Total Files

12

Last publish

Collaborators

  • iojcde