https://www.loom.com/share/f152340723af40e7bacd3f67fafb2d69?sid=2bab7fa4-4de0-4bc8-a6ce-05166b96af4d
Example of crdt websocket backend for y-js to be used with y-websocket provider with persitence to an api server. Uses redis-pubsub for horizontal scaling. Also provides logic of read-only/read+write access to documents.
git clone [email protected]:kapv89/yjs-scalable-ws-backend.gitcd yjs-scalable-ws-backendnpm ci- thepostinstallscriptfix_y-websocket.jsfixes the dev-dependencyy-websocketnpm run buildcp .env.example .env.test.local- Update 
.env.test.localas per your system. docker-compose upto start redisnpm run watchin a terminal tabnpm run test- Go through 
src/__tests__/app.test.tsto view details for tests