
🌐 @silurus/ooxml is an open-source JavaScript library for viewing DOCX, XLSX, and PPTX files directly in the browser.
🦀 Its engine is written in Rust and compiled to WebAssembly. Instead of sending a document to a server for conversion, it parses the format on the device and draws the result with Canvas 2D. This removes the need for a native application, iframe, or external conversion service.
📄 The viewer includes paginated documents, complex tables, images, equations, charts, multiple worksheets, and interactive navigation. It also provides APIs for custom previews, thumbnails, and controls.
The author bases the project on the ECMA-376 and ISO 29500 specifications, while noting that complex documents may differ from Microsoft Office. Local processing keeps files in the browser, which is valuable for privacy and serverless applications.
💡 Explanation in a nutshell#
WebAssembly allows high-performance code to run inside a browser. OOXML uses that capability to read Office documents and turn them into visible graphics without uploading them to the Internet.
More information at the link 👇
