{
 "kind": "tool",
 "slug": "docx",
 "path": "tools/docx/",
 "name": "docx",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Files, images and media",
   "tools/files-media/"
  ]
 ],
 "lead": "Generate Microsoft Word (.docx) documents programmatically from JavaScript/TypeScript.",
 "chips": [
  {
   "label": "Files, images and media",
   "path": "tools/files-media/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install docx"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/dolanmiu/docx"
  },
  {
   "label": "Website",
   "href": "https://docx.js.org"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/dolanmiu/docx"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Nov 19, 2026. ",
   "src": "https://github.com/dolanmiu/docx"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "27 projects",
   "status": "info",
   "sub": "#31 of 281 in its category",
   "note": "Dependency in 27 public GitHub projects set up for AI coding agents that we scanned (0.4%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Community skills",
   "status": "info",
   "sub": "6 skills by others",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What docx does",
   "parts": [
    {
     "t": "prose",
     "text": "Generate Microsoft Word (.docx) documents programmatically from JavaScript/TypeScript."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "docx popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "66",
       "of": "/ 100",
       "l": "Gid Score, #599 overall"
      },
      {
       "n": "12.3M",
       "l": "downloads a week, npm"
      },
      {
       "n": "6,010",
       "l": "GitHub stars"
      },
      {
       "n": "27",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How docx is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "docx is a dependency in 27 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.6% of the 4,867 JavaScript/TypeScript ones), #31 of 281 in files, images and media.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 109; those are left out of every share on this page.",
      "The most used alternative in our scan is jsPDF (132 projects).",
      "Projects that use it most often also use jsdom (44.4%), SheetJS (40.7%), Playwright (JavaScript) (51.9%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "17 projects, 0.5%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "13 projects, 0.4%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "12 projects, 0.5%",
       "v": "Cursor",
       "path": "agents/cursor/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 44.4% of its projects",
       "v": "jsdom",
       "path": "tools/jsdom/"
      },
      {
       "l": "In 40.7% of its projects",
       "v": "SheetJS",
       "path": "tools/xlsx/"
      },
      {
       "l": "In 51.9% of its projects",
       "v": "Playwright (JavaScript)",
       "path": "tools/playwright-test/"
      },
      {
       "l": "In 40.7% of its projects",
       "v": "Supabase JS",
       "path": "tools/supabase-supabase-js/"
      },
      {
       "l": "In 74.1% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      },
      {
       "l": "In 59.3% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 33.3% of its projects",
       "v": "JSZip",
       "path": "tools/jszip/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about docx",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/dolanmiu",
        "Patreon: https://patreon.com/dolanmiu",
        "3 GitHub sponsors"
       ]
      },
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "docx: Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Tr",
        "docx: Create, edit, and analyze Word documents with tracked changes, comments, and formatting. Useful for design briefs, copy docs, and review-rea",
        "docx: Read, create, or edit Microsoft Word .docx files — extract/summarize text and tables, generate reports/letters/memos with headings, tables,",
        "docx: Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extract",
        "docx: Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extract",
        "docx: Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extract"
       ]
      },
      {
       "title": "More in Files, images and media",
       "path": "tools/files-media/",
       "items": [
        {
         "text": "Sharp",
         "path": "tools/sharp/"
        },
        {
         "text": "Pillow",
         "path": "tools/pillow/"
        },
        {
         "text": "Nodemailer",
         "path": "tools/nodemailer/"
        },
        {
         "text": "qrcode (JavaScript)",
         "path": "tools/qrcode-npm/"
        },
        {
         "text": "JSZip",
         "path": "tools/jszip/"
        },
        {
         "text": "PDF.js",
         "path": "tools/pdfjs-dist/"
        },
        {
         "text": "openpyxl",
         "path": "tools/openpyxl/"
        },
        {
         "text": "html2canvas",
         "path": "tools/html2canvas/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "docx",
       "me": true,
       "facts": [
        "MIT",
        "Gid 66",
        "12.3M/wk"
       ]
      },
      {
       "name": "jsPDF",
       "why": "Generate PDF documents directly from JavaScript in browsers and Node.js.",
       "path": "tools/jspdf/",
       "facts": [
        "MIT",
        "Gid 79",
        "22.2M/wk"
       ]
      },
      {
       "name": "SheetJS",
       "why": "Parse and generate spreadsheets (Excel, CSV) in Node.js and browsers.",
       "path": "tools/xlsx/",
       "facts": [
        "Apache-2.0",
        "Gid 74",
        "15.2M/wk"
       ]
      },
      {
       "name": "pdf-lib",
       "why": "Create and modify PDF documents with JavaScript in Node.js and browsers.",
       "path": "tools/pdf-lib/",
       "facts": [
        "MIT",
        "Gid 74",
        "34.8M/wk"
       ]
      }
     ],
     "more": "Compare docx with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install docx"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for docx yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm docx"
  ],
  [
   "Category",
   "Files, images and media"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "66.2"
  ],
  [
   "Rank in category",
   "#31 of 281"
  ],
  [
   "GitHub",
   "dolanmiu/docx"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/dolanmiu.png"
}