July 13, 2026

Word drama, but make it editable

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

A tool to turn web pages into real Word files has commenters cheering, nitpicking, and joking about DOOM

TLDR: dom-docx lets people turn web-style content into editable Word files instead of clunky image-based exports, which could save a lot of report-making pain. Commenters were impressed by the ambition, joked about expecting DOOM, and warned that document formatting across apps is a deeply cursed problem.

A shiny new project called dom-docx dropped onto Hacker News with a very practical promise: take simple web page content and turn it into a real, editable Microsoft Word document, not a fake screenshot glued into a file. That alone got people interested, but the real action was in the comments, where the mood swung from "finally!" to "wait, this sounds painfully hard" to pure meme chaos.

The loudest applause came from people who have suffered through making business reports and templated documents. The creator basically opened with a confession that building Word files the old way is miserable: slow updates, weird breakage, and enough tiny formatting disasters to ruin anyone’s afternoon. That hit a nerve. One commenter called the project’s quality-checking system "clever," especially the part where the tool compares how the result looks against the original and keeps improving. In plain English: it’s trying very hard to make exported documents look right.

But this being Hacker News, there was also some delightful side commentary. One person popped in just to note, almost like a challenge, that it’s written in TypeScript, which somehow made it more impressive because the usual alternative people mention is an older tool built in a less mainstream language. Another commenter chimed in with a battle-scarred warning that doing this kind of conversion for slide decks was already brutal, especially when different apps interpret files differently. Translation: yes, this is useful, but document formatting is a haunted house.

And then came the comic relief that stole the show: a reader admitted they misread the title and clicked hoping to see DOOM running in the browser page system. Honestly? That one joke may have done as much work as the demo. The overall verdict from the crowd was clear: this solves a real pain point, but everyone also knows that turning one format into another without weird glitches is the kind of quest that can humble even very confident developers.

Key Points

  • dom-docx converts semantic HTML fragments into native, editable Word documents in OOXML format rather than screenshots or layout hacks.
  • The project uses a visual regression loop that renders HTML in Chromium, converts it to DOCX, rasterizes it with LibreOffice, and scores fidelity against a human-validated metric.
  • The library requires Node.js 20 or later, while Playwright and Chromium are optional and only needed for computed-style rendering or in-place rasterization.
  • dom-docx supports browser, Node, and CLI usage, including stdin/stdout pipelines and a browser bundle that runs entirely in the user’s tab.
  • The documented v0.1.x capabilities include headings, lists, tables, links, images, headers and footers, page numbers, table of contents, language settings, simple flex rows, and limited inline SVG support.

Hottest takes

"misread the heading and clicked expecting to see DOOM" — noufalibrahim
"one of my least favorite development tasks" — fishbone
"keeping the fidility intact was really challenging" — virajk_31
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.