How yfedoseev/office_oxide works
Office Oxide is a Rust-core library for extracting and converting text from six Office formats, exposed through language bindings, a CLI, and an MCP server. The main workflow is to open a document, identify its format, parse format-specific content into a shared representation, then return text, Markdown, or IR. The graph also includes legacy and OOXML parsing, shared package handling, resource/read options, and editing. README claims support for all listed bindings and interfaces; several binding and service internals were not sampled, so those connections rely on README statements rather than inspected implementations.
Main entry points: format.rs Format identification · lib.rs Rust document API · convert_docx.rs DOCX reader · opc.rs OOXML package reader
Components 25
User interfaces
- Rust document API
src/lib.rs - Command-line interface
crates/office_oxide_cli/src/main.rs - MCP server
crates/office_oxide_mcp/src/main.rs
Format parsing
- Format identification
src/format.rs - DOCX reader
src/convert_docx.rs - XLSX reader
src/convert_xlsx.rs - PPTX reader
src/convert_pptx.rs - Legacy DOC reader
src/convert_doc.rs - Legacy XLS reader
src/convert_xls.rs - Legacy PPT reader
src/convert_ppt.rs - OLE container reader
src/cfb/reader.rs
Shared processing
- OOXML package reader
src/core/opc.rs - XML and relationships
src/core/xml.rs - Resource limits
src/limits.rs - Read preferences
src/read_options.rs
Results and editing
- Document IR
src/ir.rs - Text and Markdown
src/ir_render.rs - Document editing
src/edit.rs
Language bindings
- Python binding
python/office_oxide - Go binding
go/office_oxide.go - C# binding
csharp/OfficeOxide/Document.cs - Node binding
js/lib/index.js - C FFI
src/ffi.rs - WASM binding
src/wasm.rs
Other components
- Document consumer
Connections 35
- Document consumer → Rust document API: opens document
README.md - Document consumer → Command-line interface: runs commands
README.md - Document consumer → MCP server: requests tools
README.md - Rust document API → Format identification: identifies format
src/lib.rs - Format identification → DOCX reader: dispatches DOCX
src/lib.rs - Format identification → XLSX reader: dispatches XLSX
src/lib.rs - Format identification → PPTX reader: dispatches PPTX
src/lib.rs - Format identification → Legacy DOC reader: dispatches DOC
src/lib.rs - Format identification → Legacy XLS reader: dispatches XLS
src/lib.rs - Format identification → Legacy PPT reader: dispatches PPT
src/lib.rs - Legacy DOC reader → OLE container reader: reads container
src/convert_doc.rs - Legacy XLS reader → OLE container reader: reads container
src/convert_xls.rs - DOCX reader → OOXML package reader: reads package
src/convert_docx.rs - XLSX reader → OOXML package reader: reads package
src/xlsx/mod.rs - PPTX reader → OOXML package reader: reads package
src/pptx/mod.rs - OOXML package reader → XML and relationships: uses parsing utilities
src/core/opc.rs - DOCX reader → Document IR: produces representation
src/convert_docx.rs - Legacy DOC reader → Document IR: produces representation
src/convert_doc.rs - Legacy XLS reader → Document IR: produces representation
src/convert_xls.rs - Rust document API → Document IR: returns IR
README.md - Rust document API → Text and Markdown: renders output
README.md - Rust document API → Document editing: supports editing
src/lib.rs - DOCX reader → Resource limits: applies bounds
src/convert_docx.rs - DOCX reader → Read preferences: uses preferences
src/convert_docx.rs - Document consumer → Python binding: uses binding
README.md - Document consumer → Go binding: uses binding
README.md - Document consumer → C# binding: uses binding
README.md - Document consumer → Node binding: uses binding
README.md - Document consumer → C FFI: uses binding
README.md - Document consumer → WASM binding: uses binding
README.md - Python binding → Rust document API: calls core
- Go binding → C FFI: calls native interface
- C# binding → C FFI: calls native interface
- Node binding → C FFI: calls native interface
README.md - WASM binding → Rust document API: provides document API
src/lib.rs