Document-as-Code Engine
Document-as-Code.
Deterministic rendering.
Define documents in JSON using an open spec, validate authorings, and generate PDF/HTML via API.
Free trial: 50 docs/day. No credit card.
Built for Developers
Everything you need to define, validate, and render documents programmatically.
Versioned JSON schema, examples, changelog. Open source.
Canonical full model ensures consistent printed output across formats.
Reuse styles via stylesId and inject defaults via profiles.
How it works
From authoring to rendered output in four deterministic steps.
Authoring JSON
Define your document
Profile + Normalize
Apply defaults & validate
Full Canonical Model
Single source of truth
Render
PDF / HTML output
The full canonical model is the single source of truth. Once normalized, rendering is deterministic — the same input always produces the same output, whether PDF or HTML.
Playground
Explore the spec interactively. Edit, validate, normalize, and preview — all in the browser.
- JSON editor with examples
- Validate against schema (show errors with JSON paths)
- Normalize authoring to full canonical model
- Preview HTML and generate PDF
{
"version": "1doc/v1",
"document": {
"title": "Sample Invoice",
"sections": [...]
}
}
API Trial keys in minutes
Get started with the rendering API. No credit card required.
- Auth via Bearer token
- Rate limits per key
- Daily quota included in free trial
POST https://api.1doc.example/v1/render/pdf
Authorization: Bearer $API_KEY
Content-Type: application/json
{
"version": "1doc/v1",
"document": { ... }
}Open Spec
The spec is open source; the API is currently private with a free trial.
