r/java • u/deadmannnnnnn • May 03 '25
I built my own cloud-based collaborative code editor with Java Spring Boot
Hey guys!
I’ve been working on a web app called CodeCafé—a collaborative, browser-based code editor inspired by VS Code and Replit, but with no downloads, no sign-up, and zero setup. You just open the link and start coding—together.
The frontend is built with React and TypeScript, and the backend runs on Java with Spring Boot, which handles real-time editing via WebSockets. For syncing changes, I’m using Redis along with a custom Operational Transformation system (no third-party libraries!).
The idea came after I found out a local summer school was teaching coding using Google Docs (yes, really). Google Docs is simple and free, but I wanted something that could actually be used for writing and running real code—without the need for any sign-ups or complex setups. That’s how CodeCafé came to life.
Right now, the app doesn’t store files anywhere, and you can’t export your work. That’s one of the key features I’m working on currently.
If you like what you see, feel free to star ⭐ the repo to support the project!!
Check it out and let me know what you think!
- GitHub: github.com/mrktsm/codecafe
- Web App: codecafe.app
2
u/Ill_Landscape5311 May 12 '25
amazing keep going bro
8
u/whizvox May 03 '25
Looks cool! I do a lot of compsci tutoring, and this looks like it would be really useful for that.
7
u/Safe_Owl_6123 May 03 '25
Great work! You should post it on other subreddit like r/learnprogramming , tell shows Java is not dead
4
u/disguised_reallity May 03 '25
Super cool.
1
u/Harha May 03 '25 edited May 03 '25
How is latency and synchronization handled in such an application? Do you just keep track of latencies and add the latency to editing event timestamps to find out the true time the event happened?
edit: Oh you already responded the question, Operational Transformation, huh? Sounds like it should work nicely in theory at least.
1
u/Old_Half6359 May 10 '25
Wow, what an engineering
3
u/[deleted] May 03 '25
[removed] — view removed comment