Templar: A REST API for Instant PDF Generation
Send a POST /api/render with templateName and data to receive a PDF URL from Templar, eliminating the need for Puppeteer, custom templates, and storage setup.
Send a POST /api/render with templateName and data to generate a PDF.
Summary
Templar is a new REST API that turns natural language prompts into PDF invoices, reports, contracts, and receipts without the need for Puppeteer or custom HTML templates. It uses an AI model to generate an HTML template from a description such as "invoice" and then renders it to PDF. Developers send a POST /api/render request with a templateName and data payload, and receive a signed URL to the generated PDF.
The service eliminates the typical pain points of PDF generation: no worker processes, no storage setup, no cleanup jobs, and no memory‑heavy rendering. Templar handles the entire pipeline in seconds, making it ideal for SaaS backends that need to produce documents on demand. The API is still in early stages and the author invites feedback, positioning it as a tool for developers and SaaS builders. The URL for the service is https://templar.odysii.in.
Key changes
- Templar is a REST API for PDF generation.
- AI generates HTML templates from a prompt like 'invoice'.
- POST /api/render accepts templateName and data, returns a signed PDF URL.
- No need for Puppeteer, custom HTML templates, worker processes, storage setup, or cleanup jobs.
- Generates PDFs in seconds.
- Supports invoices, reports, contracts, receipts.
- Early stage, open for feedback.
- Service URL: https://templar.odysii.in.