# dolanmiu/docx

Easily generate and modify .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

Repository: https://github.com/dolanmiu/docx
Canonical: https://ross.abutalabs.com/products/docx
Homepage: https://docx.js.org/
Language: TypeScript
License: MIT
License Family: permissive
Topics: office, docx, docs, word, microsoft, generate, javascript, typescript, nodejs, docx-generator, document, create, express, expressjs, angular, react, browser, vuejs, angular2
Last push: 2026-08-07T11:45:52+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 86, longevity 100
- inputs: {"age_days": 3812, "days_push": 26, "days_rel": 98, "gap_med": 18.5, "n_releases_24m": 19}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5889, forks 612 (observed 2026-08-28T04:09:31.974461+00:00)

## What it is
docx is a JavaScript/TypeScript library for generating and modifying Microsoft Word .docx files with a declarative API. It runs in both Node.js and the browser and integrates with frameworks like React, Angular, and Vue.

## Use cases
- generate word documents from javascript
- create docx reports in nodejs
- export data to word file in browser
- generate invoices as docx from a web app
- programmatically build word documents with typescript
- add images and tables to docx files

## When to choose
- you need to create or modify .docx files from JS/TS code
- you want a declarative, typed API for Word documents
- you need document generation in both Node and browser environments

## When to avoid
- you need to read or convert PDFs or other office formats
- you need pixel-perfect rendering of complex Word layouts
- you work outside the JavaScript ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: file-system, templating, developer-tools
- domain: files, web-development, frontend, backend, cross-platform
- platform: browser, cross-platform
- tags: docx, word-documents, office-documents, document-generation, declarative-api, microsoft-word, nodejs, javascript, typescript

## Member repositories
- dolanmiu/docx (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:31.974461+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-29T17:51:33.206839+00:00, confidence not recorded.
  - readme: https://github.com/dolanmiu/docx (fetched 2026-08-28T04:09:31.974461+00:00, sha 3d1001f6aba3)
  - homepage: https://docx.js.org/ (fetched 2026-08-29T08:47:10.205546+00:00, sha b73703507a5e)
  - registry_npm: https://registry.npmjs.org/docx (fetched 2026-08-29T08:47:10.209071+00:00, sha fa92c3bf360a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
