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....

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 8 minutes ago
Added to GitGenius on September 19th, 2026
Created on May 16th, 2013
Open Issues & Pull Requests: 5 (+0)
GitHub issues: Enabled
Number of forks: 384
Total Stargazers: 3,628 (+0)
Total Subscribers: 80 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 8.1 hours
Mean response time: 2.3 days
90th percentile: 3.1 days
Tracked items: 57

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 1
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 3,305 days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

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

Top labels

  • complexity:hard (2)
  • enhancement (2)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

docxtemplater is a library that generates Word, PowerPoint, and Excel documents from templates by replacing placeholders with data.

The tool solves the problem of programmatically creating formatted Office documents without requiring users to understand document structure or XML. It works by taking an existing docx, pptx, or xlsx file as a template, then replacing placeholders like {name} with values from supplied data. The library supports loops to repeat sections for multiple data items, conditions to show or hide content based on logic, and insertion of custom XML for formatted text. Templates can be edited by non-programmers using standard Office applications, making it accessible to clients and business users who need to modify document layouts without touching code.

The tool suits projects where you need to generate reports, invoices, contracts, or other formatted documents from structured data in Node.js or browser environments. It works with React, Vue, Angular, and Next.js. Choose this library if your workflow involves templates edited by non-technical users or if you need robust document generation with a mature codebase. The project emphasizes stability and test coverage as distinguishing qualities.

Development activity shows consistent engagement with the codebase through regular updates and maintenance. The project maintains comprehensive documentation with dedicated guides for both Node.js and browser usage. A changelog is actively maintained to help users migrate between versions. The availability of paid modules indicates an ongoing business model supporting continued development and feature expansion.