dolanmiu/docx

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

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 16 minutes ago
Added to GitGenius on September 11th, 2026
Created on March 26th, 2016
Open Issues & Pull Requests: 161 (+0)
GitHub issues: Enabled
Number of forks: 607
Total Stargazers: 5,902 (+0)
Total Subscribers: 48 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 9.0 days
Mean response time: 75.8 days
90th percentile: 237.2 days
Tracked items: 132

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 8% of issues opened in the past year have been closed. Three people close 79% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 82
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 582 days
Stale 30+ days: 78
Stale 90+ days: 73

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • feature request (7)
  • bug (5)
  • Difficulty: Hard (3)
  • Difficulty: Easy (1)
  • Difficulty: Moderate (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

docx is a JavaScript and TypeScript library for generating and modifying .docx files with a declarative API that runs in both Node.js and browser environments.

The library solves the problem of programmatically creating Word documents without requiring Microsoft Office or complex binary format handling. It provides a declarative API where developers describe document structure through JavaScript objects, which the library then converts into valid .docx files. The approach abstracts away the underlying Office Open XML format, allowing developers to work with familiar programming constructs like paragraphs, tables, images, headers, and footers.

Developers should choose this tool if they need to generate Word documents from web applications, backend services, or browser-based tools. It suits projects built with Node.js, React, Angular, Vue.js, or vanilla JavaScript that require document generation without server-side Office dependencies. The library works equally well in server and client contexts, making it flexible for different architectural patterns.

The project maintains a substantial user base, with almost all open issues coming from outside adopters rather than the core team. Responses to issues and pull requests typically arrive within one to two weeks. The issue tracker shows consistent activity focused on feature requests, bug fixes, and work labeled as high difficulty, indicating ongoing development addressing both user needs and technical challenges.