Template-driven document generation engine

We built an engine that turns versioned templates into finished PDF documents with a full audit history.

Sector: Documents & AI. Platforms: Web, API. Client: kept confidential.

The challenge

Teams were producing large numbers of similar documents by hand, which made consistency, version control and traceability difficult.

What we built

Users design templates with fields and placeholders, manage template versions and generate documents that a background worker renders to PDF.

Every action is recorded in an audit log, and analytics show how each template is used.

Key features

  • Templates with fields and placeholders
  • Template versioning
  • Background PDF generation
  • Asset management
  • Audit logs and audit events
  • Usage analytics

Engineering notes

  • PDF rendering runs in a separate worker, so heavy documents never slow down the interface.

Technology

  • Node.js
  • TypeScript
  • React
  • Vite
  • Tailwind CSS
  • PostgreSQL
  • Docker