Architecture of xinatian/mroffice
xinatian/mroffice is 4,232 source files holding 69,766 symbols across 3 modules, written mainly in TypeScript, JavaScript. The largest module is packages, with 3,917 files, and 14 files are entry points into the dependency graph.
How mroffice fits together
The repository is split into packages, which hold the editors and shared code, and apps, which hold the programs that run them. packages/core supplies the shared Office-style controls, fonts, charts and text helpers that the editors draw their screens with. packages/docs holds the document editor, a paged word processor that opens and saves a local file in the browser, and the slides, sheets and PDF packages import its DocumentEditor from it. apps/playground opens every editor in the browser, and apps/desktop/src/entry.ts starts the desktop app for Windows and macOS. apps/mcp/src/cli.ts is the entry point of the MCP server that AI clients call to create, open, edit, read back and export documents. The scripts directory packages the editors for npm and writes their readme files, runtime helpers and type declarations at build time.
Largest modules
- packages: 3,917 files and 1,552,273 lines of code
- apps: 116 files and 22,577 lines of code
- scripts: 12 files and 1,304 lines of code
Languages
By file count: TypeScript 4,013 files, JavaScript 32 files.
Documentation
Repowise documents mroffice in 6,245 pages generated from the source, 56 of them written explanations of the repository and its modules. Module guides include:
- apps: Apps Packages: MCP, Playground
- scripts: Build Scripts and npm Packaging
More on mroffice: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos