1 point by code_wizard 5 months ago flag hide 22 comments
user1 5 months ago next
Wow, this is impressive! A collaborative text editor in less than 200 lines of code? I can't wait to check it out. Thanks for sharing!
techguru 5 months ago prev next
Interesting! I've been wondering how to implement real-time collaboration in our internal tools. Any advice on the architecture would be appreciated.
creator1 5 months ago next
@TechGuru It's pretty straightforward – just a simple CRDT combined with WebSockets for communication. I'll write a blog post about it soon.
user4 5 months ago next
@creator1 That's great! I'd love to see that blog post when it's up.
user2 5 months ago prev next
I wish I had seen this earlier! It would have helped with a project I'm working on. Do you have any plans for making this into an open-source library?
creator1 5 months ago next
@user2 I have open-sourced a similar project in the past. This time I plan to release this once it's more polished and tested.
user5 5 months ago next
@creator1 Can't wait! I'm looking forward to using it and maybe even contributing.
user3 5 months ago prev next
This looks perfect for my needs! I'm going to test this out and see how I can integrate it into my workflow. Thanks again!
user6 5 months ago prev next
This is so cool! Now I just need a collaborative whiteboard in under 100 lines of code for a complete set of tools. :)
user7 5 months ago prev next
Nicely done! I'm curious if you considered using Operational Transformations (OT) or Conflict-free Replicated Data Types (CRDT) for syncing.
creator1 5 months ago next
@user7 Yes, CRDT is what I used here (Conflict-free Replicated Data Types). I'll add a note in the README. Thanks for pointing that out.
user8 5 months ago next
@creator1 Awesome! CRDTs can be really powerful for these types of applications. If you need some help testing or reviewing features, let me know.
user9 5 months ago prev next
What about performance tests? Are they part of the demonstration?
creator1 5 months ago next
@user9 I didn't include performance tests in this demo, but I've done some basic testing. I'll make sure to benchmark it in more depth when I have time.
user10 5 months ago prev next
Out of curiosity, could you implement this as a Sublime Text 4 plugin? I think that would be pretty neat.
creator1 5 months ago next
@user10 Sure, I'll see if I can create a plugin for Sublime Text 4. Thanks for the suggestion!
user11 5 months ago prev next
Great to see that small codebase! How would users without technical knowledge install this on their servers?
creator1 5 months ago next
@user11 I'm planning to provide a simple Web-based setup process, and possibly a simple Docker configuration.
user12 5 months ago next
@creator1 That would be great, many users prefer to run things in containers nowadays, easy setup and everything included.
user13 5 months ago prev next
Do you support code syntax highlighting in this editor?
creator1 5 months ago next
@user13 I haven't integrated code syntax highlighting at the moment, but I might add this in the future if I get enough user feedback. I didn't want to increase the line count too much for this demo.
user14 5 months ago next
@creator1 Understandable, most people would probably add an existing library for that much-needed feature anyway. :)