npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@opengis/docm

v0.1.13

Published

<!-- ![alt text](https://cdn.softpro.ua/data/npm/admin/opengis-admin.png) -->

Downloads

148

Readme

@opengis/docm

NPM version NPM last update NPM downloads js-standard-style

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

Features Enterprise

  • Template Registry – Centralized governance of templates with full lifecycle control and auditability
  • Multi-Format Support – Standardize document creation across DOCX, HTML, and Markdown formats
  • Dynamic Data Binding – Structured variable schema for consistent and controlled data injection
  • Flexible Generation Engine – Integrate with internal systems via JSON, forms, or external IDs
  • Document Lifecycle Management – Enforce workflows from draft to approval, signing, and closure
  • Document Registry – Maintain a single source of truth with filtering, metadata, and traceability
  • Real-Time Preview – Validate outputs instantly with controlled sample data
  • Post-Generation Editing – Enable controlled updates while preserving document integrity
  • Export & Compliance – Generate PDF/DOCX outputs for legal and operational use

Install

npm i @opengis/docm

Usage

// 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),
  },
];

Config Data Provider

Конфігурація Data Provider описує джерела даних для підстановки в шаблони та генерації документів. Приклад user

Файли розміщуються в:

/config/docm/*.yml

Призначення:

  • Отримання даних з БД (SQL)
  • Підстановка змінних у шаблони
  • Джерело для select/lookup полів
  • Генерація документів (template + id)

Структура файлу

# Легкий SQL для autocomplete/select.
suggest: <SQL для пошуку> 

# Використовуються в UI
title.en: <Назва EN>
title.ua: <Назва UA>
description.ua: <Опис>

# Основний запит для отримання повних даних. Використовується при генерації документа.
sql:
  - <SQL частина 1>
  - <SQL частина 2>

Використання:

  1. Користувач обирає запис (через suggest)
  2. Система отримує дані (sql)
  3. Дані підставляються в шаблон

UI Компоненти

| UI Компонент | Короткий опис | | ------------------------ | --------------------------------------------------------------------------------------------------------------------- | | Редактор шаблонів | Інтерфейс для створення, перегляду та редагування шаблонів документів із підтримкою змінних і preview. | | Реєстр документів | Список згенерованих документів із фільтрами, статусами, метаданими та діями перегляду/редагування/експорту. | | Віджет “Шаблон + ID” | Компонент для генерації документа за обраним шаблоном і зовнішнім ID джерела даних. | | Віджет “Документи по ID” | Компонент для перегляду всіх документів, пов’язаних з конкретним ID, з можливістю створити новий документ по шаблону. |

Бізнес-процес

  1. Налаштувати Data Provider
  2. Створити шаблон і привязати до провайдеру
  3. Віджет в картку документу - шаблон + id
  4. Віджет в картку документу перелік документів по id і створити по шаблону

Documentation

For a detailed understanding of dataset, its features, and how to use them, refer to our Documentation.

Technology stack

Contribute

Feel free to contact us through our website SOFTPRO.UA or email [email protected]

  • Report bugs
  • Share your ideas
  • Ask questions

Follow Us

Official site

License

Copyright © SOFTPRO. All rights reserved.