You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Y.js/Y.js.md
+19-11Lines changed: 19 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,29 +5,29 @@ title: 'Y.js'
5
5
6
6
## Dexie.js ❤️ Y.js
7
7
8
-
Dexie supports the powerful CRDT library [Y.js](http://github.com/yjs/yjs) through its add-on [y-dexie](https://www.npmjs.com/package/y-dexie).
8
+
Dexie supports the powerful CRDT library [Y.js](https://yjs.dev/) through the Dexie add-on [y-dexie](y-dexie).
9
9
10
10
## What is Y.js
11
11
12
12
Y.js is a high-performance CRDT for building collaborative applications that sync automatically. It exposes its internal CRDT model as shared data types that can be manipulated concurrently. Shared types are similar to common data types like Map and Array.
13
13
14
14
The core type in Y.js is the Y.Doc that holds CRDT data. One of the most powerful use cases of CRDT is collaborative editing of texts and images.
y-indexeddb, developed by [Kevin Jahns](https://github.com/dmonad), allows basic persistance of a single Y.Doc in indexedDB. Each document is represented by its own unique IndexedDB database. This implementation acts as a model for persisting Y.Doc updates and works well when only a single or few documents are being used.
18
+
y-indexeddb, developed by [Kevin Jahns](https://github.com/dmonad), is a storage provider that use indexedDB. Each document is represented by its own unique IndexedDB database. This implementation acts as a role model for persisting Y.Docs. But since y-indexeddb requires one database per document, it can be hard to combine it with additional offline data or integrate it with a dexie database.
19
19
20
20
y-dexie is an alternative to y-indexeddb that allows structured storage of multiple Y.Docs in a single indexedDB database. It integrates well to existing databases and Y.Docs can be places on existing
21
21
database objects (rows) on their own properties of the objects.
[y-dexie](https://www.npmjs.com/package/y-dexie) is a storage provider for [Y.js](Y.js).
9
+
10
+
## Dexie Cloud ❤️ Y.js
11
+
12
+
[dexie-cloud-addon](/cloud/docs/dexie-cloud-addon) further extends `y-dexie` to become a [sync- and awareness provider](https://github.com/dexie/Dexie.js/tree/master/addons/y-dexie#adding-sync-and-awareness) for Y.js.
13
+
14
+
---
15
+
16
+
See [y-dexie's README](https://github.com/dexie/Dexie.js/tree/master/addons/y-dexie#readme).
0 commit comments