Demos. Lots of demos. *neo glasses*
View source on all these demos to see what they're made of. All the demos live in examples in the source tree.
Use the ace editor to edit the
Use a plain textarea to edit the
'hello' document contents as the text for a webpage
'html' document is used as the innerHTML on the page. (You can edit it using the general editor, below.)
'markdown' document, rendered to HTML using showdown. Edit the document using the editor.
This example shows the use of an Ace editor which can edit any ShareJS document. Documents are named with a string. Edit any of the documents which the demos above show.
This example demonstrates using ShareJS to implement a wiki. You can create documents on the fly by browsing to wiki/Anything. The code for this demo is in examples/_wiki
When you open this page, it creates a new empty editing pad with a random name (pad:XXXX). You can share the URL with someone else and edit with them.
This is the same as the pad example (left), except ace has coffeescript styling on.
ShareJS also supports concurrently editing JSON objects. The JSON OT spec is documented here and you can read about the client API here
This is a complex game example. The game's state is stored in a JSON document.