<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/1isl7wgar" -->

---
title: GitHub - floodtide/dom-docx: Convert semantic HTML...
description: dom-docx is an open source npm library that converts semantic HTML fragments into native, editable Word documents (OOXML) — not screenshots or layout hacks. It...
canonical: https://daily.dev/posts/1isl7wgar
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: GitHub - floodtide/dom-docx: Convert semantic HTML fragments to native, editable Word documents (OOXML) | daily.dev
og:description: dom-docx is an open source npm library that converts semantic HTML fragments into native, editable Word documents (OOXML) — not screenshots or layout hacks. It...
og:url: https://daily.dev/posts/1isl7wgar
og:image: https://api.daily.dev/og/posts/1iSL7wgAr.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub - floodtide/dom-docx: Convert semantic HTML fragments to native, editable Word documents (OOXML)

**[Dev Source](https://daily.dev/sources/devsource)** · [@muhammadfiaz](https://daily.dev/muhammadfiaz) · 0 upvotes · 0 comments

## Summary

dom-docx is an open source npm library that converts semantic HTML fragments into native, editable Word documents (OOXML) — not screenshots or layout hacks. It supports headings, paragraphs, lists, tables, images, inline formatting, and more. The default inline path is pure JavaScript (no browser required), while an optional computed-styles path uses Playwright and Chromium for resolving CSS classes. A browser bundle is also available for client-side conversion. The library was built with a visual regression loop scoring layout fidelity, editability, and compile speed, and benchmarks against other html-to-docx libraries. The CLI, full API with options for page size, margins, fonts, headers/footers, cover pages, and table of contents are all documented.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/floodtide/dom-docx>

## Similar posts on daily.dev

- [Governing Security in the Age of Infinite Signal](https://daily.dev/posts/governing-security-in-the-age-of-infinite-signal-qhihbir44) · Snyk · 0 upvotes · 0 comments
- [No one has a good plan for how AI companies should work with the government](https://daily.dev/posts/no-one-has-a-good-plan-for-how-ai-companies-should-work-with-the-government-nkajqoze1) · TechCrunch · 0 upvotes · 1 comments

---

Tags: [#typescript](https://daily.dev/tags/typescript)

[View this post on daily.dev](https://daily.dev/posts/1isl7wgar)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/1isl7wgar","headline":"GitHub - floodtide/dom-docx: Convert semantic HTML fragments to native, editable Word documents (OOXML)","text":"Shared: GitHub - floodtide/dom-docx: Convert semantic HTML fragments to native, editable Word documents (OOXML)","url":"https://daily.dev/posts/1isl7wgar","datePublished":"2026-07-13T15:19:10.671Z","dateModified":"2026-07-13T15:19:10.674Z","author":{"@type":"Person","name":"Muhammad Fiaz","url":"https://daily.dev/muhammadfiaz","image":"https://lh3.googleusercontent.com/a/ACg8ocJS_I-yeYTbHozCDaEQm8p4JrOStXFgIYAuouhScjmuFhc=s96-c","description":"Open-Source Contributor ✨ and Maintainer 🔥 and Full Stack Developer 🧑‍💻","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":5065}},"image":"https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/aZKfMwU3R"},"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/devsource","name":"Dev Source"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Dev Source","item":"https://daily.dev/squads/devsource"},{"@type":"ListItem","position":3,"name":"GitHub - floodtide/dom-docx: Convert semantic HTML fragments to native, editable Word documents (OOXML)"}]}
```

