# easy-template-x

> Generate docx documents from templates, in Node or in the browser

Source: https://talira.ai/catalog/easy-template-x-cyxb4adx
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [documents / generation / word templates](https://talira.ai/categories/documents/generation/word-templates), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Platforms: web[^2]
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: MIT-licensed and free.
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- Plugins: yes[^2]
- Creator: Alon Bar

easy-template-x fills Word (.docx) templates with JSON data in Node.js or the browser, keeping the template's styling. Its syntax is deliberately small, `{tag}` and `{#loop}...{/loop}`, so people who don't program can write templates, and tags can contain spaces and any alphabet. Bundled plugins handle text, loops over text, table rows, table columns and list items (with simple conditions), images, hyperlinks, charts and raw XML, and you can write your own plugins or resolvers (such as Angular-style expressions). It's MIT-licensed; its author also runs templatedocs.io, a hosted document automation service.

## Links

- GitHub: https://github.com/alonrbar/easy-template-x

## Problems it solves

- a Word template syntax simple enough for school teachers to write themselves
- put images, hyperlinks and charts into a generated .docx without paying for add-on modules
- repeat table columns, not just rows, when filling a Word template from JSON
- Word template tags written in Hebrew or Arabic, with spaces in the tag names
- fill a .docx in the browser from a Blob and let the user download it
- update the data behind a chart in a Word template from JavaScript
- list every tag in a Word template so our app knows which fields to ask for

## Features

- {tag} and {#loop}{/loop} syntax with customisable delimiters
- loops over text, table rows, table columns and list items, with simple conditions
- image plugin: replace a text tag or a placeholder image
- link plugin for hyperlinks
- chart plugin to update chart data
- raw XML plugin
- custom plugins and custom resolvers (Angular-style expressions via an extension)
- list a template's tags
- tags with spaces and any Unicode alphabet
- Blob, Buffer and ArrayBuffer input in Node and the browser

## Capabilities

- Takes plugins: plan not known

## Trust

Overall: 0.28 out of 1.
Signals: backing 0.20, extensibility 0.20.

- created by Alon Bar
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Carbone](https://talira.ai/catalog/carbone-hz5gt655.md): Generates PDF, DOCX and other documents from JSON data and Office templates
- [docxtemplater](https://talira.ai/catalog/docxtemplater-gjcbyhm2.md): Powerful Word, PowerPoint and Excel generation
- [Sablon](https://talira.ai/catalog/sablon-5bjabghv.md): Ruby document template processor based on docx templates and Mail Merge fields
- [docx-templates](https://talira.ai/catalog/docx-templates-w28fxj7t.md): Template-based docx report creation for both Node and the browser
- [docxtpl](https://talira.ai/catalog/docxtpl-yhjaa0ty.md): Use a docx as a jinja2 template
- [Adobe PDF Services API](https://talira.ai/catalog/adobe-pdf-services-api-s29kgg3f.md): Modern cloud-based capabilities for PDF manipulation.

## Sources

[^1]: https://github.com/alonrbar/easy-template-x/blob/master/LICENSE (checked 20 Nov 2026)
[^2]: https://github.com/alonrbar/easy-template-x/blob/master/README.md (checked 20 Nov 2026)
