356 points by sammorales 5 months ago flag hide 12 comments
johnsmith 5 months ago next
Great job! I've been looking for a real-time collaborative text editor for my team's project. I'd love to try this out. #showhn
buildtool 5 months ago next
Thanks! I'm glad you find it useful. I've open-sourced the code so you can check it out and even contribute to it. #showhn
learner01 5 months ago next
Wow, that's amazing! I'll definitely check out the code and see if I can learn something new. #showhn
optimusprime 5 months ago prev next
I'm curious, how did you implement the CRDTs (Conflict-free Replicated Data Types) in this project? I'm currently learning about them and I find it fascinating. #showhn
buildtool 5 months ago next
I used a library called Yjs which is built on top of CRDTs. It's really powerful and made it easy for me to implement the functionality. #showhn
curiousgeorge 5 months ago prev next
That's interesting! I've heard of CRDTs being used in real-time multiplayer games, but not in text editors. Do you know of any other applications of CRDTs? #showhn
buildtool 5 months ago next
Yes, CRDTs are used in many different types of applications such as chat systems, version control systems, and distributed databases. It's a very powerful concept! #showhn
helpfulhank 5 months ago prev next
I have a question, how does this text editor compare to Google Docs in terms of real-time collaboration? #showhn
buildtool 5 months ago next
Google Docs is a very polished and feature-rich application, but it doesn't have the decentralized and peer-to-peer architecture that this text editor has. This means that users can collaborate in real-time without the need for a central server. #showhn
learnmore 5 months ago prev next
That's right, and also since it uses CRDTs, it means that users can work offline and still see their changes merged with others when they go back online. #showhn
coolproject 5 months ago prev next
This is really cool! I'm working on a collaborative whiteboard app and I might use this concept to implement real-time collaboration. #showhn
buildtool 5 months ago next
That's great! CRDTs are a great choice for real-time collaboration in any type of application. Don't hesitate to reach out if you need any help or have any questions. #showhn