Skip to content

openflat-io/tldraw-store

Repository files navigation

tldraw-store

A React Hook-based npm package for seamlessly integrating Yjs in drawing apps, enabling real-time, collaborative drawing experiences.

Install

pnpm install @tldraw/[email protected] tldraw-store

Usage

import { Tldraw } from "@tldraw/tldraw";
import { useYjsStore } from "tldraw-store";

// your component
const store = useYjsStore({
    roomId: "roomUUID",
    hostUrl: "ws:https://localhost:1234", // replace to your own service
});

<Tldraw store={store} />

License

MIT @ Openflat

About

A react store hook for tldraw

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published