Silurus/ooxml: Pixel-faithful Office documents, rendered in the browser
Key takeaways
- This entire codebase — Rust parsers, Type Script renderers, tests, and tooling — was implemented by Claude (Anthropic's AI assistant) through iterative prompting.
- A browser-based viewer for Office Open XML documents that renders to an HTML Canvas element.
- npm install @silurus/ooxml # or pnpm add @silurus/ooxml Bundler note: this package embeds .wasm files.
This entire codebase — Rust parsers, Type Script renderers, tests, and tooling — was implemented by Claude (Anthropic's AI assistant) through iterative prompting. No human-written application code exists in this repository.
A browser-based viewer for Office Open XML documents that renders to an HTML Canvas element. The parsers are written in Rust and compiled to Web Assembly; the renderers use the Canvas 2D API. Each format also exposes a headless engine (Docx Document / Xlsx Workbook / Pptx Presentation) that renders into any caller-supplied canvas, so you can compose your own UI — scroll views, thumbnail grids, master-detail panes — instead of being locked into the built-in viewer. See the Examples section in the Storybook demo.
npm install @silurus/ooxml # or pnpm add @silurus/ooxml Bundler note: this package embeds .wasm files. With Vite add vite-plugin-wasm; with webpack use experiments.asyncWebAssembly.