Office-open-xml-viewer: Office XML document viewer that renders to HTML Canvas

github.com
June 7, 2026
18 min read
54/100
Summary
A browser-based viewer for Office Open XML documents renders to an HTML Canvas element using Rust parsers compiled to WebAssembly and TypeScript renderers utilizing the Canvas 2D API. The codebase, which includes no human-written application code, was entirely implemented by Claude, Anthropic's AI assistant, through iterative prompting.
Key Takeaways
- The codebase for the Office Open XML viewer was entirely implemented by Claude, Anthropic's AI assistant, with no human-written application code present.
- The viewer supports rendering DOCX, XLSX, and PPTX files to an HTML Canvas element using Rust parsers compiled to WebAssembly.
- The package allows for customizable UI composition by exposing a headless engine for each document format, enabling developers to create their own viewer interfaces.
- The math rendering engine, which is approximately 3 MB, is optional and can be included only if needed, allowing for efficient bundling and tree-shaking.
Coverage & discussions
Hacker News · github.com
Community discussions
Historical count: 5 · 5 saved in sample · Historical sample
Analysis ready
Community Sentiment
Positives
- The XLSX preview functionality is impressively interactive, showcasing the potential of AI-generated solutions in document rendering.
- Rendering to HTML Canvas is a pragmatic choice, addressing the fidelity gap between native Office rendering and HTML-based viewers, which is crucial for legal documents.
Concerns
- The viewer struggles with medium-complex documents, indicating that the authors may lack experience with intricate Word files, which raises concerns about its reliability.
- The tool's inability to output highlightable text for certain document types is a significant drawback compared to existing solutions like LibreOffice conversion.
Related Articles

OfficeCLI: Office suite for AI agents to read and edit Microsoft Office files
Jul 6, 2026
Pi for Excel: AI sidebar add-in for Excel
Feb 20, 2026

OCR It – pull text out of un-copyable documents for your LLM
Aug 24, 2026

Agentic coding deserves more than a chat box bolted onto VS Code
Jun 17, 2026

This Month in Ladybird - April 2026
May 2, 2026