Disclaimer: Built entirely by Claude, an AI coding agent.
rustypdf
HTTP service that renders Typst templates into PDF/A-3b from JSON. Written in Rust.
- Language
- Rust
Disclaimer: Built entirely by Claude, an AI coding agent.
HTTP service that renders Typst templates into PDF/A-3b from JSON. Written in Rust.
POST JSON to /render/{template} and get a PDF back. Each folder with a main.typ is a template, with an optional JSON Schema for the request body.
Bangla and English each get their own font, even inside one line. Ships with bilingual invoice templates, Docker, API keys, Prometheus metrics and hot reload.
Generating business documents with a headless browser is slow and heavy. Typst gives precise layout and good typography, and a small Rust service keeps PDF generation fast and easy to deploy.
git clone https://github.com/apurboislam/rustypdf.git
cd rustypdf
cargo run # serves templates/ on :8080curl -X POST localhost:8080/render/hello \
-H 'Content-Type: application/json' \
-d '{"name": "রহিম", "message": "Hello from rustypdf"}' -o hello.pdfA browser demo of rustypdf will live here. For now, see the repository.