Skip to main content
Use docx (docx.js) if you want to generate Word files from JavaScript or TypeScript with a declarative API, for free and even in the browser. Use Doconda if you want to ask for the finished document with its PDF, also work with Excel, PowerPoint and PDF, or change existing files with an instruction instead of placeholders.

Comparison

When to choose docx

  • You want a free, open source dependency with no accounts or API keys.
  • You need to generate the Word file in the user’s browser, without a server.
  • Your document has a known structure and you prefer to describe every element in code.
  • You already have templates with {{placeholders}} and only need to fill them.

When to choose Doconda

  • You want the finished document from text or a sentence, without maintaining layout code.
  • You need the PDF, or Excel, PowerPoint and PDF too.
  • You have to edit files you did not prepare (no placeholders), for example “change the signing date and add a clause”, and have new content follow the document’s formatting.
  • You want to review files and get a report of what was fixed and what was not.
  • An AI agent uses it: the TypeScript SDK ships the tools ready for function calling.

Using them together

docx fits fixed documents generated in the browser; Doconda fits documents that change with what the user asks for. You can also generate a Word file with docx and send it to Doconda to review it and get its PDF. Both install from npm (npm install docx, npm install @doconda/sdk).

Sources