DOM-docx – Convert semantic HTML to native, editable Word documents

Show HN: DOM-docx – HTML to native, editable Word docs (MIT)

30fishbone💬 12

DOM-docx is a powerful open-source library that transforms semantic HTML fragments into fully native, editable Microsoft Word documents (OOXML). Unlike tools that generate static screenshots or rely on layout hacks, this library preserves paragraphs, lists, tables, and images with high fidelity. It supports both Node.js and browser environments, offering a lightweight pure JavaScript path for inline styles or an optional Playwright integration for complex computed styles. Developers can easily integrate it via npm or CLI to generate professional reports, invoices, and documents directly from web content.

"Convert semantic HTML fragments to native, editable Word documents (OOXML): paragraphs, runs, lists, tables, images. Not screenshots or layout hacks."

More from this day · 2026-07-13