HeadlinesBriefing favicon HeadlinesBriefing.com

Silurus/ooxml: AI-Written Office Document Renderer

Hacker News •
×

A new browser-based library called Silurus/ooxml renders Office documents with pixel-perfect accuracy using Rust parsers compiled to WebAssembly. The entire codebase, including tests and tooling, was generated by Anthropic's Claude AI through iterative prompting—no human application code exists.

The library supports DOCX, XLSX, and PPTX formats via Canvas 2D API rendering. Three viewers handle different document types: DocxViewer for Word documents, XlsxViewer for spreadsheets, and PptxViewer for presentations. Each follows the same architecture: Web Workers parse files via WASM while the main thread handles rendering.

Math equation support uses MathJax and STIX Two Math fonts, but is opt-in to avoid the ~3MB overhead. The package is ESM-only and tree-shakes unused formats automatically. Developers can import only what they need—@silurus/ooxml/pptx for presentations alone, for example.

This represents a significant shift in developer tooling, demonstrating how AI can produce production-ready code for complex document processing tasks. The library is already being used in React and Vue applications through the provided examples.