Rust · WebAssembly · Canvas 2D
@silurus/ooxml is an open-source JavaScript Office file viewer library
for .docx, .xlsx and .pptx. Its
Rust/WASM engine parses and renders each file to Canvas in the browser; no server-side
document conversion, native application or iframe is required.
About the library
Rust/WASM parsers and Canvas renderers for DOCX, XLSX and PPTX, with document APIs and ready-to-use viewers.
DOCX, XLSX and PPTX parsing is implemented in Rust and compiled to WebAssembly.
Documents are rendered with the Canvas 2D API. Layout and feature support vary by format and document.
The implementation refers to ECMA-376 / ISO 29500 and related Microsoft documentation where relevant.
Use built-in viewers or document APIs for custom previews, thumbnails and navigation.
What it renders
Selected supported features for each format are listed below. See the README for the full matrix; complex documents may still differ from Office.
Building “explain this”, “evaluate these cells”, or a similar read-only integration? See how selection context works across all three formats →
Announcements