SDK

Overview

Last updated on

TypeScript SDK for creating and working with Paradoc artifacts

The @paradoc/sdk package is the main framework entry point for creating, validating, rendering, and sealing Paradoc artifacts.

The SDK builds artifacts in TypeScript. For the JSON shape of the same artifacts, see the schema reference.

Installation

npm install @paradoc/sdk

What the SDK includes

@paradoc/sdk re-exports four packages, so one import covers the common path:

PackageDescription
@paradoc/coreBuilders, instances, lifecycle types, bundle assembly, and sealing for every artifact type
@paradoc/formatLocale-aware presentation of artifact values
@paradoc/sessionsEvent-sourced form-completion sessions
@paradoc/renderThe MIME-selected createLayerRenderer() entry point, plus the PDF placement helpers locate, locator, and extractFieldsFromPdf

The SDK also exports hostedSealAdapter, which converts non-PDF layers through the hosted converter when you seal.

Install @paradoc/render directly when you import its format subpaths (@paradoc/render/text, /pdf, /docx) or want rendering as an explicit dependency.

These packages are not part of @paradoc/sdk. Install each one on its own.

PackageDescription
@paradoc/resolversRead file-backed layers from the filesystem (/fs), over HTTP (/http), or from memory (/memory)
@paradoc/exprThe expression language behind artifact logic
@paradoc/reactReact bindings, pagination, and the runtime for React layers
@paradoc/react-pdfPDF rendering and composition checks for @paradoc/react
@paradoc/essentialsReady-to-use artifacts for common business forms
@paradoc/ai-toolsFramework-neutral AI tool definitions
@paradoc/ai-sdkAdapter for the Vercel AI SDK
@paradoc/tanstack-aiAdapter for TanStack AI
@paradoc/mastraAdapter for Mastra

On this page