dupl.kit - Real time collaborative text editor!
rafrafraf (237)

repl.it? Never heard of it.

dupl.kit is where its at

(this is a repl clone im working on im not actually trying to make an official online IDE.
P.S repl pls hire me lol)

This is a live multi user text editor!

What it does:

  • multi user cursors! (credit to @marcusweinberger we worked on this together)
  • the global files can be edited by anyone live! and at the time of writing this they do not run code just yet.
  • the local files can only be seen and edited by you and can be run! they are stored in your local storage so you wont lose them logging out

How it works:

The server handles all operations made to the document while keeping it synchronised with all clients!

  • I did this by making my own operational transformations algorithm to make concurrent document edits always produce the same result

  • An operational transformation takes a document (you can think of it a string) plus a position within that document and either modifies the document at that position or skips to a new position. That’s it!

  • The client sends the keyboard input as operations to the server like this:

'[{"op": "skip", "count": 40}, {"op": "delete", "count": 47}]'

coming soon:

  • the py, html, js and css files will actually run in your browser!
  • live chat just like repls is in the works!

try opening it on two tabs side by side to see it working :)

You are viewing a single comment. View All
xxpertHacker (390)

the py ... files will actually run in your browser!

Running Python in the browser!?

Besides that, I recommend moving form validation to the server, as the front-end JavaScript is easily cheatable, deferring all front-end scripts for performance (especially mobile), and... I would suggest moving the inline styles into a file for the same reasons as the scripts.

When you can, it'd be great to see other languages supported, personally, I don't use HTML for front-end development, nor too much JS, creating our own files will be great.

Besides that, nice job, I hope to see Dupl.kit being successful (at least here at Repl.it)!

(Oh yeah, and it would be nice if the HTML, CSS, and JS were at least served so we could "run" them)

rafrafraf (237)

@xxpertHacker thanks dude! and yeah the files dont run code yet but im working on it, same with validation i just havent come round to it yet and put a temporary front end validation quickly thanks for the suggestions!