1.9.0 • Published 6 years ago

y-memory2 v1.9.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

In-Memory database adapter for Yjs

Use the Memory database adapter to store your shared data efficiently in-memory. The next time you join the session, your changes will be lost

  • Supported by all browsers
  • Very fast access

Use it!

Install this with bower or npm.

Bower
bower install y-memory --save
NPM
npm install y-memory --save

Example

Y({
  db: {
    name: 'memory'
  },
  connector: {
    name: 'websockets-client', // use the websockets connector
    room: 'Textarea-example-dev'
  },
  share: {
    textarea: 'Text' // y.share.textarea is of type Y.Text
  }
}).then(function (y) {
  // bind the textarea to a shared text element
  y.share.textarea.bind(document.getElementById('textfield'))
}

License

Yjs is licensed under the MIT License.

kevin.jahns@rwth-aachen.de

1.9.0

6 years ago

1.7.0

6 years ago

1.6.0

6 years ago

1.5.0

6 years ago

1.2.0

6 years ago

1.0.0

6 years ago

9.0.0-1

6 years ago