Skip to content

Add a generic realtime collaboration service for web apps based on Yjs #2542

Closed

Description

@mschneider82

OpenCloud currently provides collaboration capabilities primarily for WOPI-based document servers such as Collabora, ONLYOFFICE, or Microsoft integrations. This works well for office-style document editing, but it does not offer a reusable realtime collaboration layer for custom OpenCloud web apps.

I would like to propose a generic realtime collaboration feature in OpenCloud that web apps can use directly for shared state synchronization, presence, and multi-user editing. A good technical foundation for this would be Yjs, since it is widely used for CRDT-based collaborative editing and works well for arbitrary app data models such as whiteboards, notes, markdown editors, task boards, calendars, or other structured JSON-like state.

Problem
Today, each custom web app that wants realtime collaboration would need to implement its own synchronization backend, authentication flow, room management, and permission checks. This creates duplicated effort and makes it harder to build reusable collaborative apps on top of OpenCloud.

There is currently no common platform-level API that allows a web app to say, in effect: “open a shared collaborative document for this OpenCloud resource and synchronize it securely with other users.”

Proposal
Introduce a generic realtime collaboration service in OpenCloud that can be consumed by any web app.

Suggested scope:

A backend realtime service, for example realtime or sharedstate, integrated into OpenCloud.
WebSocket-based shared document synchronization using Yjs.
Presence / awareness support, such as active users, cursors, selections, or editing state.
Authentication based on the existing OpenCloud session or short-lived access tokens issued by OpenCloud.
Authorization checks against OpenCloud resources and shares before joining a collaborative room.

Example use cases
Whiteboard or drawing apps.
Markdown / note-taking editors.
Knowledge base or wiki-style apps.
Calendar or planning apps with shared editing.
Custom JSON/state-based web apps embedded in OpenCloud.

+-------------------------------------------------------------+
|                         OpenCloud                           |
|                                                             |
|  +-------------------+        +--------------------------+  |
|  |  Web UI / Shell   |        |   Backend Services       |  |
|  |                   |        |                          |  |
|  |  loads web apps   |        |  Graph / Auth / Shares   |  |
|  |  provides session |        |  Files / Spaces / ACLs   |  |
|  +---------+---------+        +-------------+------------+  |
|            |                                  ^             |
|            | session / context                | ACL check   |
|            v                                  |             |
|  +-------------------+        join token      |             |
|  |   Custom Web App  |------------------------+             |
|  | (Excalidraw etc.) |                                      |
|  |                   |                                      |
|  |  Y.Doc            |                                      |
|  |  Awareness        |                                      |
|  |  App bindings     |                                      |
|  +---------+---------+                                      |
|            | websocket / shared updates                     |
+------------|------------------------------------------------+
             |
             v
   +-----------------------------+
   |   Realtime Service (new)    |
   |-----------------------------|
   |  Yjs room handling          |
   |  Presence / awareness       |
   |  Auth validation            |
   |  Permission enforcement     |
   |  Optional snapshot hooks    |
   +-------------+---------------+
                 |
                 | load / save snapshot
                 v
   +-----------------------------+
   |   OpenCloud Resource        |
   |-----------------------------|
   |  File / App object / Space  |
   |  JSON / Markdown / Canvas   |
   +-----------------------------+

opencloud-eu/web-extensions#308
mschneider82/opencloud-excalidraw#1

Activity

  1. added theissue type on Apr 30, 2026
  2. markrosan8 commented on May 17, 2026

    @markrosan8

    I'm curious how many apps will become part of opencloud to be able to take advantage of this service. Integrating a calendar app, a knowledge base/notes app, etc feels a bit heavy for opencloud. In the sense that it becomes a nextcloud lookalike.

    Outline for example is a great notes/wiki style app and has this feature fully built in. It seems more reasonable to just host this separately, on its own subdomain, than to try to stuff this style of app into a opencloud web app.

    But of course, I may be missing certain useful applications for this service. My concern is just feature creep. Even if is configurable for a user to not use the features, it takes away dev time.

    I ask because I have a somewhat similar yjs implementation for a personal project, and it may be possible to translate it to opencloud....just don't know if its worth the effort.

  3. JammingBen commented on Oct 6, 2026

    @JammingBen
    Member

    OpenCloud supports collaborative editing via Yjs by now, so I'm gonna close this as solved. Please refer to the docs for more information:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions