Critical-path latency
Browser startup and page rendering can push documents off the request path.
Rust execution keeps inline render calls predictable for user-facing flows.
发票、合同、报告、书籍、证书 — Typst 能排版的一切。一次 POST,一个 PDF。Rust-powered,无需无头浏览器。
渲染路径
同步 API 响应
运行时
Rust 引擎,无 headless browser
Powered by Typst under the hood.

Workflow canvas
Source to PDF in one synchronous path
Write
main.typ + data.json
Preview
Inline diagnostics path
Ship
Versioned API render
Why PDF stacks fail in production
Treat PDF generation as infrastructure: stable request contracts, predictable runtime behavior, and controlled version promotion.
Browser startup and page rendering can push documents off the request path.
Rust execution keeps inline render calls predictable for user-facing flows.
Queue workers, retries, and webhooks add moving parts to simple PDF delivery.
A synchronous render API removes pipeline complexity for core document paths.
Template edits without clear promotion rules create regressions in production.
Store templates in your own git repo. Send the Typst source directly with each request, or save it once and reference by ID.
功能
通过显式契约构建、校验并发布模板,让生产行为可预测。
用 Monaco 编写模板,结合诊断能力,从源码直达运行时输出。
Contract-first templates
预览与生产共用同一套确定性渲染核心。
Inline preview
字体和图片一次上传,通过稳定文件引用绑定到模板。
Assets once
清晰追踪渲染、配额与 API key,并提供可观测的使用信号。
Usage visibility
流程
采用与生产一致的三步发布模型:编写、验证、发布。
Step 01
模板与数据契约并排演进,让 schema 与版式同步迭代。
Step 02
实时渲染并通过诊断直接定位到失败行。
Step 03
通过清晰审计轨迹推广版本,并经由 API 在生产渲染。
Security, API and MCP
Protect customer documents by default and keep audit conversations short. DocuForge gives teams secure delivery controls without slowing down shipping velocity.
TLS transport, authenticated APIs, and hardened defaults help teams clear security reviews without custom hardening projects.
Password-protected PDF delivery is built in for regulated workflows handling sensitive documents.
Credential and token handling defaults are designed to reduce leakage risk across render, billing, and webhook paths.
curl -X POST "$DOCUFORGE_API_URL/v1/render" \
-H "X-API-Key: $DOCUFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "template_id": "tpl_123", "data": { "invoice_id": "1234" } }' \
--output invoice.pdfBlogs