xWiki + Collabora Online: Real-Time Office Editing

Organizations that rely on xWiki as their knowledge management platform inevitably encounter a friction point: users create and share Office documents — DOCX, XLSX, PPTX — yet editing those files typically requires downloading them, opening a local application, and re-uploading the modified version. Collabora Online eliminates that workflow entirely by embedding a full-featured, LibreOffice-based office editor directly inside the browser. When paired with xWiki, the result is a sovereign, self-hosted productivity environment where teams collaborate on Office documents without ever leaving the wiki.

What Is Collabora Online?

Collabora Online is the cloud-deployed edition of LibreOffice, maintained by Collabora Productivity. It renders and edits Office Open XML formats (DOCX, XLSX, PPTX) as well as ODF files inside any modern browser. Unlike proprietary alternatives such as Google Docs or Microsoft 365, Collabora Online runs entirely on infrastructure you control. Every keystroke, every revision, and every document stays within your network perimeter — a requirement for regulated industries and public-sector organizations pursuing digital sovereignty.

Embedding Collabora in xWiki

The integration between xWiki and Collabora Online relies on the WOPI (Web Application Open Platform Interface) protocol, the same standard that Microsoft uses for its own Office Online Server. xWiki acts as the WOPI host, serving file metadata and content to the Collabora Online server, which renders the editing interface inside an iframe on the wiki page. When a user clicks an attached Office document, xWiki opens the Collabora editor inline rather than triggering a download. Edits are saved back to xWiki's attachment storage automatically, preserving the document's version history alongside the wiki page's own revision log.

Deployment Architecture

A production deployment consists of three components: the xWiki application server (Tomcat), the Collabora Online server (typically deployed as a Docker container running the CODE image), and a reverse proxy that routes WOPI discovery and editing requests between the two. For organizations hosting on MassiveGRID's xWiki infrastructure, the Collabora container can run on the same host or on a dedicated instance depending on expected concurrent editing load. Each simultaneous document editor consumes approximately 100–200 MB of memory on the Collabora node, so capacity planning should account for peak concurrent usage.

Component Role Resource Guidance
xWiki (Tomcat) WOPI host, document storage, wiki interface 4+ vCPU, 8+ GB RAM
Collabora Online (CODE) Document rendering and editing engine 2+ vCPU, 4+ GB RAM (scales with concurrent editors)
Reverse Proxy (Nginx/HAProxy) TLS termination, WOPI routing Minimal overhead
PostgreSQL/MySQL xWiki metadata and page storage Shared with xWiki instance

Configuration Steps

Begin by deploying the Collabora Online container with the appropriate domain allowlists set via the domain environment variable — this restricts which WOPI hosts may request editing sessions. Next, install the xWiki Office Macro or WOPI integration extension from the xWiki Extension Manager. Configure the extension with the Collabora discovery URL (typically https://collabora.yourdomain.com/hosting/discovery), and ensure your reverse proxy forwards WebSocket connections, which Collabora uses for real-time synchronization between editors. Finally, test with a sample DOCX attachment to confirm that clicking the file opens the inline editor rather than prompting a download.

Collaborative Editing in Practice

Once configured, multiple users can open and edit the same Office document simultaneously. Each participant sees the others' cursors in real time, changes merge automatically, and the final saved version is written back to xWiki as a single coherent attachment revision. This capability transforms xWiki from a text-oriented wiki into a comprehensive document collaboration platform. Teams can draft proposals in DOCX, maintain financial models in XLSX, and build presentations in PPTX — all within wiki pages that provide surrounding context, discussion threads, and structured metadata. For organizations exploring broader sovereign productivity stacks, Collabora Online is also a core component of the openDesk initiative.

A Sovereign Alternative

The combination of xWiki and Collabora Online provides a fully self-hosted alternative to Google Workspace and Microsoft 365 for document collaboration. There are no per-user licensing fees for the editing capability itself, no data leaving your infrastructure, and no dependency on a third-party cloud provider's availability or terms of service. For European public administrations, healthcare organizations, and financial institutions, this architecture satisfies data residency and sovereignty requirements while delivering a user experience that rivals commercial SaaS offerings.

Ready to add real-time Office editing to your xWiki deployment? Explore MassiveGRID's managed xWiki hosting with Collabora Online integration, or contact our infrastructure team to design a deployment tailored to your organization's collaboration requirements.

Published by MassiveGRID — managed xWiki hosting on high-availability cloud infrastructure with global data center reach.