Again awesome app!!
Additionally, a lot of the OT code is based on ot.js[1], a fantastic open source OT implementation by Tim Baumann. He has a node.js backend as well as Haskell and Python. Of course then you have to run the server code somewhere and figure out how to persist the documents, etc. :-) Definitely worth checking out though.
I realize those are not mutually exclusive options.
setInterval(function () {firepad.codeMirror_.setValue('foo'); }, 0);Haha, just kidding! Moved everything into a closure. Thanks for suggesting it.
(I.e. it's client-side, you can't prevent people from doing whatever they want.)
Mozilla and no doubt many others can easily deploy it on their servers:
If you want to try it without other people messing with it. Click the "Private Firepad" link in the upper right corner.
And yes, I'm quite sure private pads might be of use in certain situations.
You can try it at https://dl.dropbox.com/u/8554242/live-status.html
We've had people build everything from emergency response simulations synchronized across multiple devices to iOS apps for grandparents to read books with their grandkids over long distances.
Firebase is great any time you need real-time updates, collaboration, or you just want to get something up and running without having to spin up your own servers.
(You can see how my bold line of text was interrupted by someone else.)
People are certainly allowed to write over each other (e.g click in the middle of your sentence and write something). If that's not what happened, let me know!
As for similar projects that are already more HTML-friendly, maybe check out Etherpad[1]? It has HTML import / export, though I haven't tested it out.
You could (if you like pain) use firepad with hundreds of users and it shouldn't be an issue. The actual messages being sent around are small.
I tweaked the page to not auto-focus the editor. Thanks!
Atlassian[1] and Action.io have already built stuff with it.
1. https://marketplace.atlassian.com/plugins/com.atlassian.stas...