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

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

DOM-docx is an open-source MIT-licensed tool that converts semantic HTML fragments into native, editable Word documents (OOXML format) featuring paragraphs, runs, lists, tables, and images—not screenshots or layout approximations. The library uses a visual regression testing approach with Chromium and LibreOffice to validate layout and structural fidelity, and can be used via npm package, CLI, or browser. It requires Node.js ≥ 20 and optionally uses Playwright for computed styles, with a live demo available at dom-docx.com.
Read Full Article →
github.com
← Back to Latest