npm package: @opengis/docm
Description: <!-- ![alt text](https://cdn.softpro.ua/data/npm/admin/opengis-admin.png) -->
Author: Softpro
Latest version: 0.1.0

<!-- ![alt text](https://cdn.softpro.ua/data/npm/admin/opengis-admin.png) -->

# @opengis/docm

[![NPM version](https://img.shields.io/npm/v/@opengis/docm?style=plain)](https://www.npmjs.com/package/@opengis/docm)
[![NPM last update](https://img.shields.io/npm/last-update/@opengis/docm?style=plain)]()
[![NPM downloads](https://img.shields.io/npm/dw/@opengis/docm?style=plain)]()
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=plain)](http://standardjs.com/)

This service provides a robust platform for dynamic document generation and template lifecycle management, enabling teams to create, manage, and export documents from structured data with full control over content and formatting.

## Features

- Centralized template registry with list, view, and edit capabilities
- Support for multiple template formats: DOCX, Markdown/TXT, HTML, and block-based
- Online template editor for real-time updates
- Configurable variable schema for dynamic data binding
- Flexible document generation: template + JSON, template + form input, or template + external ID
- Ability to provide additional data during document creation
- Real-time preview with built-in sample data generator
- Document registry for managing generated documents
- Post-generation document editing
- Document lifecycle management: draft / in_approval / signed / closed
- Export to PDF and DOCX formats

## Install

```bash
npm i @opengis/docm
```

## Usage

```js
// router.config
export default [
  {
    path: "/templates/:id?",
    component: () => import("@opengis/docm").then((m) => m.TemplateRoute),
    props: { routePath: "/templates/:id?" },
  },
  {
    path: "/documents/:id?",
    component: () => import("@opengis/docm").then((m) => m.Document),
  },
];
```

## Documentation

For a detailed understanding of `dataset`, its features, and how to use them, refer to our [Documentation](https://docm.opengis.info/).

## Technology stack

<a href="https://fastify.dev/" target="_blank">
<img src="https://img.shields.io/badge/Fastify-323330?style=for-the-badge&logo=fastify" /></a>

<a href="https://vuejs.org/" target="_blank">
<img src="https://img.shields.io/badge/Vue%20js-323330?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D" /></a>

<a href="https://vite.dev/" target="_blank">
<img src="https://img.shields.io/badge/Vite-323330?style=for-the-badge&logo=vite" /></a>

<a href="https://www.postgresql.org/" target="_blank">
<img src="https://img.shields.io/badge/PostgreSQL-323330?style=for-the-badge&logo=postgresql&logoColor=white" /></a>

<a href="https://redis.io/" target="_blank">
<img src="https://img.shields.io/badge/redis-323330.svg?&style=for-the-badge&logo=redis&logoColor=%23DD0031" /></a>

<a href="https://nodejs.org/" target="_blank">
<img src="https://img.shields.io/badge/Node.js-323330?style=for-the-badge&logo=node.js&logoColor=white" /></a>

## Contribute

Feel free to contact us through our website [SOFTPRO.UA](https://softpro.ua) or email <info@softpro.ua>

- Report bugs
- Share your ideas
- Ask questions

## Follow Us

[Official site](https://softpro.ua)

<p>
  <a href="https://www.instagram.com/gissoftpro/" target="_blank"><img src="https://cdn.softpro.ua/data/npm/instagram.png" alt="Softpro Instagram" title="oftpro Instagram"></a>&nbsp;&nbsp;
  <a href="https://www.facebook.com/gissoftpro" target="_blank"><img src="https://cdn.softpro.ua/data/npm/facebook.png" alt="Softpro Facebook" title="Softpro Facebook"></a>&nbsp;&nbsp;
  <a href="https://t.me/softprogis" target="_blank"><img src="https://cdn.softpro.ua/data/npm/telegram.png" alt="Softpro Telegram" title="Softpro Telegram"></a>&nbsp;&nbsp;
  <a href="https://www.linkedin.com/in/softpro-ukraine-a8876b282/recent-activity/all/" target="_blank"><img src="https://cdn.softpro.ua/data/npm/social/linkedin.png" alt="Softpro Linkedin" title="Softpro LinkedIn"></a>&nbsp;&nbsp;
</p>

## License

Copyright © SOFTPRO. All rights reserved.