This is a demo of a Monaco editor that was made collaborative with Yjs & y-monaco
.
We use the y-websocket provider to share document updates through a server. There are many more providers available for Yjs - try switching to another provider. See docs.
Also you could try adding offline persistence to this demo. Wouldn't it be cool if document updates were persisted in the browser so you could load your application load faster? Try it out: https://docs.yjs.dev/getting-started/allowing-offline-editing
npm i
npm start
# Project is running at http://localhost:8080/