@tbernard @p2panda @offline @bumbleblue A collaborative text editor sounds great.
In case you haven't got across it: ODF Changes, a project by The Documentfoundation, defined Operations (or Changes) are used to transfer the user changes between editors. https://tdf.github.io/odftoolkit/odfdom/operations/operations.html and https://archive.xmlprague.cz/2020/files/presentations/tnmdf.pdf by Svante Schubert, including ideas for text editors.
BTW, @libodesign was thinking about adding peer-to-peer collaborative editing functionality to LibreOffice. https://design.blog.documentfoundation.org/2024/07/17/peer-to-peer-collaboration-with-libreoffice/