y-indexeddb
v9.0.12
Published
IndexedDB database adapter for Yjs
Downloads
279,740
Maintainers
Readme
y-indexeddb
IndexedDB database provider for Yjs. Documentation
Use the IndexedDB database adapter to store your shared data persistently in the browser. The next time you join the session, your changes will still be there.
- Minimizes the amount of data exchanged between server and client
- Makes offline editing possible
Getting Started
You find the complete documentation published online: API documentation.
npm i --save y-indexeddb
const provider = new IndexeddbPersistence(docName, ydoc)
provider.on('synced', () => {
console.log('content from the database is loaded')
})
API
License
Yjs is licensed under the MIT License.