-
docx
Easily generate and modify .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Since I don't have much knowledge of web development, the application has a very basic structure: html + css + javascript. To generate the document, I use a library called docx.js (https://docx.js.org). When the user clicks to submit the form, the request is passed to a function in the main file (app.js), which , through conditional logic, assembles the document using docx.js.