# onlyoffice/web-apps architecture

> Architecture diagram of the GitHub repository onlyoffice/web-apps, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/onlyoffice/web-apps
- Repository: https://github.com/onlyoffice/web-apps

## Overview

ONLYOFFICE web-apps is the user-facing frontend for Document Server and Desktop Editors. The principal workflow is a user opening a document type’s editor, editing through its interface, then saving or exporting through the surrounding ONLYOFFICE ecosystem. The repository also provides mobile and embedded interfaces, collaboration features, themes, plugins, and shared UI support. The README documents the broad product boundaries; sampled mobile controllers show some shared wiring. Unsampled editor internals and save/export call paths are represented only at the documented level.

Main entry points: [`apps/documenteditor/mobile/src/controller/Main.jsx`](https://github.com/onlyoffice/web-apps/blob/master/apps/documenteditor/mobile/src/controller/Main.jsx) (Document mobile UI), [`apps/presentationeditor/mobile/src/controller/Main.jsx`](https://github.com/onlyoffice/web-apps/blob/master/apps/presentationeditor/mobile/src/controller/Main.jsx) (Presentation mobile UI), [`apps/visioeditor/mobile/src/controller/Main.jsx`](https://github.com/onlyoffice/web-apps/blob/master/apps/visioeditor/mobile/src/controller/Main.jsx) (Diagram mobile UI), [`apps/common/mobile/lib/controller/collaboration/Collaboration.jsx`](https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/lib/controller/collaboration/Collaboration.jsx) (Co-editing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editors["Editor applications"]
  node_doceditor["Document editor<br/>[Main.js]"]
  node_sheeteditor["Spreadsheet editor<br/>[Main.js]"]
  node_presentationeditor["Presentation editor<br/>[Main.js]"]
  node_pdfeditor["PDF editor<br/>[Main.js]"]
  node_formcreator["Form creator"]
  node_diagramviewer["Diagram viewer<br/>[Main.js]"]
end

subgraph group_collaboration["Collaboration"]
  node_coauthor["Co-editing<br/>[Collaboration.jsx]"]
  node_comments["Comments<br/>[Comments.jsx]"]
  node_review["Review changes<br/>[Review.jsx]"]
  node_history["Version history<br/>[VersionHistory.jsx]"]
  node_chat["Chat<br/>[Chat.js]"]
end

subgraph group_mobile["Mobile experience"]
  node_mobile_doc["Document mobile UI<br/>[Main.jsx]"]
  node_mobile_sheet["Spreadsheet mobile UI<br/>[Main.jsx]"]
  node_mobile_presentation["Presentation mobile UI<br/>[Main.jsx]"]
  node_mobile_diagram["Diagram mobile UI<br/>[Main.jsx]"]
end

subgraph group_shared["Shared interface services"]
  node_plugins["Plugin manager<br/>[Plugins.jsx]"]
  node_themes["Themes<br/>[Themes.jsx]"]
  node_localstorage[("Mobile storage<br/>[LocalStorage.mjs]")]
  node_languages["Language metadata<br/>[LanguageInfo.js]"]
end

subgraph group_integration["Ecosystem integration"]
  node_docserver{{"Document Server"}}
  node_desktop{{"Desktop Editors"}}
  node_integration_api{{"Integration API"}}
end

node_user(("User"))

node_user -->|"edits documents"| node_doceditor
node_user -->|"edits spreadsheets"| node_sheeteditor
node_user -->|"edits presentations"| node_presentationeditor
node_user -->|"edits PDFs"| node_pdfeditor
node_user -->|"creates forms"| node_formcreator
node_user -->|"views diagrams"| node_diagramviewer
node_doceditor -->|"editing and conversion"| node_docserver
node_sheeteditor -->|"editing and conversion"| node_docserver
node_presentationeditor -->|"editing and conversion"| node_docserver
node_pdfeditor -->|"editing services"| node_docserver
node_formcreator -->|"editing services"| node_docserver
node_diagramviewer -->|"editing services"| node_docserver
node_user -->|"edits on mobile"| node_mobile_doc
node_user -->|"edits on mobile"| node_mobile_sheet
node_user -->|"edits on mobile"| node_mobile_presentation
node_user -->|"views on mobile"| node_mobile_diagram
node_mobile_doc -->|"renders controller"| node_coauthor
node_mobile_doc -->|"renders controller"| node_comments
node_mobile_doc -->|"renders controller"| node_review
node_mobile_doc -->|"renders controller"| node_plugins
node_mobile_sheet -->|"renders controller"| node_coauthor
node_mobile_sheet -->|"renders controller"| node_comments
node_mobile_presentation -->|"renders controller"| node_coauthor
node_mobile_presentation -->|"renders controller"| node_comments
node_mobile_presentation -->|"renders controller"| node_plugins
node_mobile_presentation -->|"renders provider"| node_themes
node_mobile_diagram -->|"renders controller"| node_coauthor
node_mobile_diagram -->|"renders controller"| node_plugins
node_mobile_diagram -->|"renders provider"| node_themes
node_coauthor -->|"synchronizes collaboration"| node_docserver
node_doceditor -->|"runs as frontend"| node_desktop
node_sheeteditor -->|"runs as frontend"| node_desktop
node_presentationeditor -->|"runs as frontend"| node_desktop
node_doceditor -.->|"supports embedding"| node_integration_api
node_sheeteditor -.->|"supports embedding"| node_integration_api
node_presentationeditor -.->|"supports embedding"| node_integration_api
node_mobile_doc -->|"uses storage"| node_localstorage
node_mobile_sheet -->|"uses storage"| node_localstorage
node_mobile_presentation -->|"uses storage"| node_localstorage
node_mobile_diagram -->|"uses storage"| node_localstorage

click node_doceditor "https://github.com/onlyoffice/web-apps/blob/master/apps/documenteditor/main/app/controller/Main.js"
click node_sheeteditor "https://github.com/onlyoffice/web-apps/blob/master/apps/spreadsheeteditor/main/app/controller/Main.js"
click node_presentationeditor "https://github.com/onlyoffice/web-apps/blob/master/apps/presentationeditor/main/app/controller/Main.js"
click node_pdfeditor "https://github.com/onlyoffice/web-apps/blob/master/apps/pdfeditor/main/app/controller/Main.js"
click node_formcreator "https://github.com/onlyoffice/web-apps/blob/master/apps/documenteditor/forms/app/controller/ApplicationController.js"
click node_diagramviewer "https://github.com/onlyoffice/web-apps/blob/master/apps/visioeditor/main/app/controller/Main.js"
click node_mobile_doc "https://github.com/onlyoffice/web-apps/blob/master/apps/documenteditor/mobile/src/controller/Main.jsx"
click node_mobile_sheet "https://github.com/onlyoffice/web-apps/blob/master/apps/spreadsheeteditor/mobile/src/controller/Main.jsx"
click node_mobile_presentation "https://github.com/onlyoffice/web-apps/blob/master/apps/presentationeditor/mobile/src/controller/Main.jsx"
click node_mobile_diagram "https://github.com/onlyoffice/web-apps/blob/master/apps/visioeditor/mobile/src/controller/Main.jsx"
click node_coauthor "https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/lib/controller/collaboration/Collaboration.jsx"
click node_comments "https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/lib/controller/collaboration/Comments.jsx"
click node_review "https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/lib/controller/collaboration/Review.jsx"
click node_history "https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/lib/controller/VersionHistory.jsx"
click node_chat "https://github.com/onlyoffice/web-apps/blob/master/apps/common/main/lib/controller/Chat.js"
click node_plugins "https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/lib/controller/Plugins.jsx"
click node_themes "https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/lib/controller/Themes.jsx"
click node_localstorage "https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/utils/LocalStorage.mjs"
click node_languages "https://github.com/onlyoffice/web-apps/blob/master/apps/common/main/lib/util/LanguageInfo.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_doceditor,node_sheeteditor,node_presentationeditor,node_pdfeditor,node_formcreator,node_diagramviewer,node_user toneBlue
class node_coauthor,node_comments,node_review,node_history,node_chat toneAmber
class node_mobile_doc,node_mobile_sheet,node_mobile_presentation,node_mobile_diagram toneMint
class node_plugins,node_themes,node_localstorage,node_languages toneRose
class node_docserver,node_desktop,node_integration_api toneIndigo
```

## Components

### Editor applications

- [Document editor](https://github.com/onlyoffice/web-apps/blob/master/apps/documenteditor/main/app/controller/Main.js): `apps/documenteditor/main/app/controller/Main.js`
- [Spreadsheet editor](https://github.com/onlyoffice/web-apps/blob/master/apps/spreadsheeteditor/main/app/controller/Main.js): `apps/spreadsheeteditor/main/app/controller/Main.js`
- [Presentation editor](https://github.com/onlyoffice/web-apps/blob/master/apps/presentationeditor/main/app/controller/Main.js): `apps/presentationeditor/main/app/controller/Main.js`
- [PDF editor](https://github.com/onlyoffice/web-apps/blob/master/apps/pdfeditor/main/app/controller/Main.js): `apps/pdfeditor/main/app/controller/Main.js`
- [Form creator](https://github.com/onlyoffice/web-apps/blob/master/apps/documenteditor/forms/app/controller/ApplicationController.js): `apps/documenteditor/forms/app/controller/ApplicationController.js`
- [Diagram viewer](https://github.com/onlyoffice/web-apps/blob/master/apps/visioeditor/main/app/controller/Main.js): `apps/visioeditor/main/app/controller/Main.js`

### Collaboration

- [Co-editing](https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/lib/controller/collaboration/Collaboration.jsx): `apps/common/mobile/lib/controller/collaboration/Collaboration.jsx`
- [Comments](https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/lib/controller/collaboration/Comments.jsx): `apps/common/mobile/lib/controller/collaboration/Comments.jsx`
- [Review changes](https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/lib/controller/collaboration/Review.jsx): `apps/common/mobile/lib/controller/collaboration/Review.jsx`
- [Version history](https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/lib/controller/VersionHistory.jsx): `apps/common/mobile/lib/controller/VersionHistory.jsx`
- [Chat](https://github.com/onlyoffice/web-apps/blob/master/apps/common/main/lib/controller/Chat.js): `apps/common/main/lib/controller/Chat.js`

### Mobile experience

- [Document mobile UI](https://github.com/onlyoffice/web-apps/blob/master/apps/documenteditor/mobile/src/controller/Main.jsx): `apps/documenteditor/mobile/src/controller/Main.jsx`
- [Spreadsheet mobile UI](https://github.com/onlyoffice/web-apps/blob/master/apps/spreadsheeteditor/mobile/src/controller/Main.jsx): `apps/spreadsheeteditor/mobile/src/controller/Main.jsx`
- [Presentation mobile UI](https://github.com/onlyoffice/web-apps/blob/master/apps/presentationeditor/mobile/src/controller/Main.jsx): `apps/presentationeditor/mobile/src/controller/Main.jsx`
- [Diagram mobile UI](https://github.com/onlyoffice/web-apps/blob/master/apps/visioeditor/mobile/src/controller/Main.jsx): `apps/visioeditor/mobile/src/controller/Main.jsx`

### Shared interface services

- [Plugin manager](https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/lib/controller/Plugins.jsx): `apps/common/mobile/lib/controller/Plugins.jsx`
- [Themes](https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/lib/controller/Themes.jsx): `apps/common/mobile/lib/controller/Themes.jsx`
- [Mobile storage](https://github.com/onlyoffice/web-apps/blob/master/apps/common/mobile/utils/LocalStorage.mjs): `apps/common/mobile/utils/LocalStorage.mjs`
- [Language metadata](https://github.com/onlyoffice/web-apps/blob/master/apps/common/main/lib/util/LanguageInfo.js): `apps/common/main/lib/util/LanguageInfo.js`

### Ecosystem integration

- **Document Server**
- **Desktop Editors**
- **Integration API**

### Other components

- **User**

## Connections

- User → Document editor: edits documents
- User → Spreadsheet editor: edits spreadsheets
- User → Presentation editor: edits presentations
- User → PDF editor: edits PDFs
- User → Form creator: creates forms
- User → Diagram viewer: views diagrams
- Document editor → Document Server: editing and conversion
- Spreadsheet editor → Document Server: editing and conversion
- Presentation editor → Document Server: editing and conversion
- PDF editor → Document Server: editing services
- Form creator → Document Server: editing services
- Diagram viewer → Document Server: editing services
- User → Document mobile UI: edits on mobile
- User → Spreadsheet mobile UI: edits on mobile
- User → Presentation mobile UI: edits on mobile
- User → Diagram mobile UI: views on mobile
- Document mobile UI → Co-editing: renders controller (evidence: `apps/documenteditor/mobile/src/controller/Main.jsx`)
- Document mobile UI → Comments: renders controller (evidence: `apps/documenteditor/mobile/src/controller/Main.jsx`)
- Document mobile UI → Review changes: renders controller (evidence: `apps/documenteditor/mobile/src/controller/Main.jsx`)
- Document mobile UI → Plugin manager: renders controller (evidence: `apps/documenteditor/mobile/src/controller/Main.jsx`)
- Spreadsheet mobile UI → Co-editing: renders controller (evidence: `apps/spreadsheeteditor/mobile/src/controller/Main.jsx`)
- Spreadsheet mobile UI → Comments: renders controller (evidence: `apps/spreadsheeteditor/mobile/src/controller/Main.jsx`)
- Presentation mobile UI → Co-editing: renders controller (evidence: `apps/presentationeditor/mobile/src/controller/Main.jsx`)
- Presentation mobile UI → Comments: renders controller (evidence: `apps/presentationeditor/mobile/src/controller/Main.jsx`)
- Presentation mobile UI → Plugin manager: renders controller (evidence: `apps/presentationeditor/mobile/src/controller/Main.jsx`)
- Presentation mobile UI → Themes: renders provider (evidence: `apps/presentationeditor/mobile/src/controller/Main.jsx`)
- Diagram mobile UI → Co-editing: renders controller (evidence: `apps/visioeditor/mobile/src/controller/Main.jsx`)
- Diagram mobile UI → Plugin manager: renders controller (evidence: `apps/visioeditor/mobile/src/controller/Main.jsx`)
- Diagram mobile UI → Themes: renders provider (evidence: `apps/visioeditor/mobile/src/controller/Main.jsx`)
- Co-editing → Document Server: synchronizes collaboration
- Document editor → Desktop Editors: runs as frontend
- Spreadsheet editor → Desktop Editors: runs as frontend
- Presentation editor → Desktop Editors: runs as frontend
- Document editor → Integration API: supports embedding
- Spreadsheet editor → Integration API: supports embedding
- Presentation editor → Integration API: supports embedding
- Document mobile UI → Mobile storage: uses storage (evidence: `apps/documenteditor/mobile/src/controller/Main.jsx`)
- Spreadsheet mobile UI → Mobile storage: uses storage (evidence: `apps/spreadsheeteditor/mobile/src/controller/Main.jsx`)
- Presentation mobile UI → Mobile storage: uses storage (evidence: `apps/presentationeditor/mobile/src/controller/Main.jsx`)
- Diagram mobile UI → Mobile storage: uses storage (evidence: `apps/visioeditor/mobile/src/controller/Main.jsx`)
