Back to Browse

Build A Collaborative Code Editor with React, WebRTC, and Yjs

18.9K views
Jan 29, 2023
10:47

🎓 Join my learning platform for module based courses, learning exercises, and more: https://coderprep.com/ In this video we build collaborative text editor using Monaco editor, WebRTC, and Yjs. With this surprisingly small stack we are able to create collaborative environments in an easy to understand and efficient way. Users are connected in a peer to peer fashion, which means that you can have any number of people editing code at a certain time. This video is great for beginners, intermediates, or even professional React developers looking for an introduction to WebRTC. This video is also a great introduction to Yjs, a shared editing framework that powers a majority of this application. Project Code: https://github.com/coopercodes/CollaborativeCodeEditor 0:00 Intro 0:50 Initialize React 2:09 Setup Monaco editor 3:49 Create YJS / WebRTC functionality 8:47 System explanation and discussion 10:30 Thanks for watching!

Download

1 formats

Video Formats

360pmp413.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Build A Collaborative Code Editor with React, WebRTC, and Yjs | NatokHD