2014-08-12 19:18:56 +02:00
2014-08-12 19:18:56 +02:00
2014-08-12 19:18:56 +02:00
2014-08-12 19:18:56 +02:00
2014-08-06 17:07:36 +02:00
2014-08-12 19:18:56 +02:00
2014-08-12 19:18:56 +02:00
2014-08-12 19:18:56 +02:00
2014-08-12 19:18:56 +02:00
2014-08-12 19:18:56 +02:00
2014-08-12 19:18:56 +02:00
2014-08-09 00:31:30 +02:00

Yatta!

A real-time web framework that manages concurrency control for arbitrary data structures and is not based on Operational Transformation. Yatta! provides similar functionality as ShareJs and OpenCoweb but does not require you to understand how the internals work. The predefined data structures provide a simple API to access your shared data structures.

Predefined data structures:

  • Text
  • Json - example
  • XML (coming soon)

Unlike other frameworks, Yatta! supports P2P message propagation and is not bound to a specific communication protocol.

Currently supported communication protocols:

  • IWC - Inter-widget Communication

Use it!

Either clone this git repository or install this package with bower.

bower install Yatta

Use the examples to struggle your way through this mess..

About

Find out more about the concurrent editing problem here Cooperation, Concurrency, Conflicts, and Convergence and here Operational Transformation (OT)

My Bachelor Thesis project aim was to develop a P2P OT Framework that enables collaboration on XML documents and supports Intention Preservation. After some time I realized that OT has significant drawbacks in P2P environments.

With my gained experiences I came up with a new approach. I named it Yata - Yet Another Transformation Approach. It enables concurrent editing with the following space and time properties:

  • Time complexity: O(S), whereby S is the number of operations that are inserted concurrently at the same position. This means that my approach does not transform against operations that happen on other positions.
  • Space complexity = O(|Document|), whereby |Document| is the size of the shared document. Depending on the used data structure, Yata may needs 4*|Document| of space.

This means that my approach beats all OT time complexities. Furthermore, it is possible to make a very strict definition of Intention Preservation, and I was able to show that it is never violated.

Another advantage of my approach is that propagated messages are very small. Background: In real-time P2P OT algorithms you have to send a state-vector with each message that defines the state of the History Buffer on which the operation was created. This is not necessary in Yata.

One downside is that the History Buffer holds at least as many operations as there are characters in the document. In contrast, an OT algorithm can have an empty History Buffer while the document size is very big.

So, how did I come up with the name for the implementation (Yatta! is not Yata)? Yatta! means "I did it!" in Japanese. You scream it when you accomplish something (for proper application I refer to the Yatta-man in Heroes). There is also this awesome video on the Internet that will change your life Yatta.

Status

Yatta! is still in an early development phase.

Support

Please report any issues to the Github issue page!

License

Yatta! is licensed under the MIT License.

Languages
JavaScript 100%