@paradoc/schemas
v0.1.1
Published
JSON Schema definitions for Paradoc framework artifacts, blocks, and primitives
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
Zod schemas for Paradoc artifacts, forms, documents, and primitives.
Installation
npm install @paradoc/schemasUsage
import { FormSchema, DocumentSchema, BundleSchema } from "@paradoc/schemas";
// Validate form data
const result = FormSchema.safeParse(myFormData);
if (!result.success) {
console.log(result.error.issues);
}
// Parse and validate (throws on error)
const form = FormSchema.parse(myFormData);Changelog
View the Changelog for updates.
Related packages
@paradoc/sdk- Paradoc framework SDK
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.
Acknowledgments
Built with these excellent libraries:
- Zod - TypeScript-first schema validation
