The Document Generation Platform (DOCM) lets you create, manage, and export documents based on templates and structured data.
- Centralized template storage with browsing, editing, and versioning.
- Online editor for creating and updating templates with variables and preview support.
- Service that combines a template, data, and additional parameters to produce a ready document.
- Storage for all created documents with viewing, editing, and status management.
- JSON data, form input, or external ID (integration with business systems).
- Export to PDF, DOCX
npm install @opengis/docm// router.config.ts
export default [
{
path: '/templates/:id?',
component: () => import('@opengis/docm').then((m) => m.Template),
},
{
path: '/documents/:id?',
component: () => import('@opengis/docm').then((m) => m.Document),
},
];import Fastify from 'fastify';
import docmPlugin from '@opengis/docm/plugin.js';
const app = Fastify();
app.register(docmPlugin, { prefix: '/api' });We welcome contributions! Feel free to open issues, suggest features, or submit pull requests.
MIT License