ueberdosis / hocuspocus

The CRDT Yjs WebSocket backend for conflict-free real-time collaboration in your app.
https://tiptap.dev/docs/hocuspocus/introduction
MIT License
1.25k stars 120 forks source link

Subdocs #583

Open ImSingee opened 1 year ago

ImSingee commented 1 year ago

Is there any plan to support yjs’s sub docs feature? It’a useful to develop a notes app (like the official example, use folder as root document).

https://docs.yjs.dev/api/subdocuments

janthurau commented 1 year ago

hey @ImSingee, supports for subdocuments is planned, but probably towards the end of the year. We haven't started on this yet, so feel free to help if you can :-)

ImSingee commented 1 year ago

@janthurau Thanks for your reply! This must be a killing feature since there is almost no provider supports the sub document feature.

I'm planning to develop an app with this feature, I will look into hocuspocus's implementation and have a look to see if I can help.

janthurau commented 1 year ago

👍 let me know if you wanna discuss on Discord, I have some idea already (not sure if it would work though). There is also an idea here (not for hocuspocus, but it kinda shows the idea): https://discuss.yjs.dev/t/multiple-room-sync-subdocument/403/4

iojanis commented 1 year ago

Can someone explain to me what already works and what doesn't in terms of subdocuments? I mean, are at least the GUID's in the map synced?

wmertens commented 1 year ago

I'm also interested in subdocuments, but it's not clear to me if it's at all possible even via workarounds?

What is the current thinking on how it will be supported? The current API seems very focused on documents, which would not allow pretending that a subdocument is a document?

ArihantBapna commented 9 months ago

Hi any updates on this?

dorukgunes commented 7 months ago

Hi @janthurau are there any updates on this 🙋

MaxTwentythree commented 2 months ago

I'm also interested, what's the state? I currently have to deciding on whether or not to use this package.. for my application I have to work with subdocuments (or a similar connect, because of granular permission) and as far as I understand it it's not supported right now, or is it?