@paradoc/renderers
v0.1.1
Published
Umbrella package for Paradoc framework renderers - re-exports all renderers from @paradoc/renderer-docx, @paradoc/renderer-pdf, and @paradoc/renderer-text
Maintainers
Readme
Paradoc is documents as code. It lets developers and AI agents define, validate, and render business documents using typed, composable schemas. This eliminates template drift, broken mappings, and brittle glue code — while giving AI systems a reliable document layer they can safely read, reason over, and generate against in production workflows.
Package overview
Umbrella package that re-exports all Paradoc renderers for convenient installation and usage.
- All-in-one - Single package containing all renderers
- Batteries included - support for text, HTML, Markdown, DOCX, PDF
- Type-safe - Full TypeScript support
Installation
npm install @paradoc/renderersUsage
Import desired renderer and pass to the render method's renderer configuration. Included renderers are textRenderer, docxRenderer, and pdfRenderer.
import { para } from "@paradoc/sdk";
import { textRenderer } from "@paradoc/renderers";
const textString = await para
.form({
name: "my-form",
title: "My Form",
// ...
fields: {
name: { type: "string", required: true },
},
layers: {
markdown: {
kind: "inline",
mimeType: "text/markdown",
text: "Hello {{fields.name}}",
},
},
})
.fill({
fields: { name: "Alice" },
})
.render({
renderer: textRenderer, // Plug in renderer
layer: "markdown", // Specify target layer
});
console.log(textString); // => "Hello Alice"Changelog
View the Changelog for updates.
Related packages
@paradoc/sdk- Paradoc framework SDK@paradoc/renderer-text- Text Renderer@paradoc/renderer-docx- DOCX Renderer@paradoc/renderer-pdf- PDF Renderer
Contributing
We're open to all community contributions! If you'd like to contribute in any way, please read our contribution guidelines and code of conduct.
License
This project is licensed under the MIT license.
See LICENSE for more information.
