# evidenceprime/html-docx-js

Converts HTML documents to DOCX in the browser

Repository: https://github.com/evidenceprime/html-docx-js
Canonical: https://ross.abutalabs.com/products/html-docx-js
Homepage: http://evidenceprime.github.io/html-docx-js/
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2021-10-05T14:31:38+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4416, "days_push": 1793, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1155, forks 297 (observed 2026-08-28T04:03:47.843291+00:00)

## What it is
A small JavaScript library that converts HTML documents to Microsoft Word DOCX format in the browser using the altchunks/MHT technique. It also works in Node.js, returning a Blob or Buffer from a simple asBlob call.

## Use cases
- convert html to docx in the browser
- export html report as a word document
- generate downloadable docx files from web app content
- convert html string to word file in node.js
- save rich text editor content as docx
- create word documents with custom page orientation and margins

## When to avoid
- your users open documents in LibreOffice, Google Docs, or Word for Mac 2008 (altchunks unsupported)
- you need full-fidelity DOCX generation with complex styling
- you need a maintained library with recent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, file-system
- domain: files, web-development, developer-tools
- platform: browser, cross-platform
- tags: html-to-docx, microsoft-word, altchunks, document-conversion, office-formats, nodejs

## Member repositories
- evidenceprime/html-docx-js (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:47.843291+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:32:12.840448+00:00, confidence not recorded.
  - readme: https://github.com/evidenceprime/html-docx-js (fetched 2026-08-28T04:03:47.843291+00:00, sha f41a0d936797)
  - homepage: http://evidenceprime.github.io/html-docx-js/ (fetched 2026-08-29T12:37:48.239637+00:00, sha 421e8e620868)
  - registry_npm: https://registry.npmjs.org/html-docx-js (fetched 2026-08-29T12:37:48.242277+00:00, sha 1ff765de71b7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
