# open-xml-templating/docxtemplater

Generate docx, pptx, and xlsx from templates (Word, Powerpoint and Excel documents), from Node.js or the browser. Demo: https://www.docxtemplater.com/demo. #docx #office #generator #templating #report #json #generate #generation #template #create #pptx #docx #xlsx #react #vuejs #angularjs #browser #typescript #image #html #table #chart

Repository: https://github.com/open-xml-templating/docxtemplater
Canonical: https://ross.abutalabs.com/products/docxtemplater
Homepage: https://www.docxtemplater.com
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: docx, javascript, template, powerpoint, microsoft, excel, office, pptx, word, xlsx, docx-template, docx-generator, docx-generation
Last push: 2026-08-04T19:58:47+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 8, longevity 100
- inputs: {"age_days": 4857, "days_push": 29, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3613, forks 383 (observed 2026-08-28T04:08:11.686738+00:00)

## What it is
Docxtemplater is a JavaScript library that generates Word (.docx), PowerPoint (.pptx), Excel (.xlsx), and OpenDocument (.odt) files from templates by replacing {placeholder} tags with JSON data, supporting loops, conditions, and raw XML insertion. It runs in Node.js and the browser, with optional paid modules for images, HTML, charts, tables, and Excel templating.

## Use cases
- generate word documents from templates in nodejs
- fill docx placeholders with  data
- create reports from word templates with loops and conditions
- generate powerpoint presentations from a pptx template
- let non-programmers edit document templates in Word
- generate documents in the browser with react or vue
- produce contract or invoice documents from data
- insert images or html into generated docx files

## When to choose
- you need template-based docx/pptx generation in JavaScript on server or client
- templates should be editable by non-developers in Microsoft Office
- you need loops, conditions, and placeholder replacement in office documents
- you want a mature, well-tested library with a long track record

## When to avoid
- you need xlsx templating, image insertion, or charts without paying for modules
- you need a fully free open-source solution with all features included
- you generate documents from scratch rather than from templates
- you work outside the JavaScript ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: templating, pdf, file-system, plugin-system
- domain: files, web-development, developer-tools
- platform: browser, cross-platform
- tags: docx, pptx, xlsx, odt, document-generation, microsoft-office, template-engine, report-generation, freemium, automation, nodejs, javascript

## Member repositories
- open-xml-templating/docxtemplater (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:11.686738+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-29T18:33:37.786316+00:00, confidence not recorded.
  - readme: https://github.com/open-xml-templating/docxtemplater (fetched 2026-08-28T04:08:11.686738+00:00, sha 621fb676f5c9)
  - homepage: https://www.docxtemplater.com (fetched 2026-08-29T09:27:08.458398+00:00, sha 6a83941d9c39)
  - site_page: https://docxtemplater.com/docs (fetched 2026-08-29T09:27:08.461217+00:00, sha 0340aa62ffb4)
  - site_page: https://docxtemplater.com/docs/tag-types (fetched 2026-08-29T09:27:08.468925+00:00, sha f87bbddfd3bd)
  - site_page: https://docxtemplater.com/docs/get-started-node (fetched 2026-08-29T09:27:08.470938+00:00, sha d81389307346)
  - site_page: https://docxtemplater.com/docs/angular-parse (fetched 2026-08-29T09:27:08.472579+00:00, sha ea525e9c2c0b)
  - site_page: https://docxtemplater.com/docs/configuration (fetched 2026-08-29T09:27:08.474658+00:00, sha a2d16c46b1bd)
  - site_page: https://docxtemplater.com/docs/get-started-browser (fetched 2026-08-29T09:27:08.476462+00:00, sha 0673983c5050)
  - site_page: https://docxtemplater.com/pricing (fetched 2026-08-29T09:27:08.462935+00:00, sha 5702ba49a9a1)
  - site_page: https://docxtemplater.com/faq (fetched 2026-08-29T09:27:08.464707+00:00, sha cb27b5d64e3f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
