DEV Community

Srijith Kartha
Srijith Kartha

Posted on • Originally published at blog.rynko.dev

Fast PDF Generation API: A Native Puppeteer Alternative

Today, I am introducing Rynko. This is a new document generation platform built to help developers and AI agents design and generate PDF and Excel documents at scale without the traditional overhead.

If you are building a SaaS, you eventually have to generate an invoice, a receipt, or a complex report. Developers usually waste days wrestling with CSS media queries or setting up resource-heavy HTML-to-PDF microservices using Puppeteer. Rynko provides the infrastructure to design, version, and generate documents deterministically. You can go from a blank canvas to a production-ready template in minutes and get back to building your core product.

Architecture: Native Speed, No Bloat

Rynko generates PDF and Excel documents from a single definition. This definition is a structured JSON component tree rather than HTML.

We explicitly chose not to use HTML because headless browsers are heavy. A standard Chromium-based PDF generator can easily consume hundreds of megabytes of RAM per instance. Rynko uses a native layout pipeline powered by the Yoga Layout Engine and PDFKit.

The result is a massive win for your server costs and performance:

  • Low Footprint: Rynko workers operate at roughly 50MB of memory.

  • High Speed: Documents generate in a median of 426 milliseconds.

  • Deterministic: Identical JSON input produces identical PDF output every single time. There are no rendering differences between your local machine and your production server.

The Template Designer

You do not have to write the JSON manually. Templates are designed visually using a drag-and-drop editor that supports over 19 component types. These include data tables, charts, dynamic QR codes, and conditional logic.

Each component has a strict property schema validated at design time. You can preview templates in real time with live variable substitution and sample data. Once designed, the exact same template can generate both a highly styled PDF and a formatted Excel spreadsheet with native formulas.

AI Integration: Let Agents Do the Work

To make integration even faster, we built a native Model Context Protocol (MCP) server. This allows AI agents from Claude Desktop, Cursor, or Windsurf to interact with Rynko directly.

You can prompt your IDE to "Generate an invoice template for Acme Corp with a tax calculated field." The agent will use the MCP tools to build the JSON tree and draft the template. You can then review it visually in the dashboard before using it in your application.

Developer Experience

We treat document generation as a code-first citizen. We provide official SDKs for Node.js, Python, and Java. These SDKs feature automatic retries with exponential backoff.

You can batch generate multiple documents in a single API call. Final documents are delivered via cryptographically signed URLs that automatically expire after three days. Webhook deliveries include HMAC-SHA256 signature verification so you can securely update your database when a document is ready.

Infrastructure That Grows with You

Rynko is easy enough for a weekend side project, but it is built to handle enterprise scale when your startup grows.

We organize resources using Projects and Environments. You get complete resource isolation for your dev, staging, and production environments. When you land enterprise clients, Rynko is ready with PDF/A-2b compliance for long-term archival, role-based access control for your team, and full audit logs.

Join the Public Beta: Founder's Preview

Rynko isn't just a basic PDF wrapper. We are building the deterministic infrastructure that allows developers and AI agents to generate documents at scale.

Rynko is currently in Public Beta: Founder's Preview. Join today to claim 5,000 free document generation credits and start building deterministic document workflows without the Chromium overhead.

Try It Free | MCP Setup Guide | Documentation


Questions? Join our Discord or check the npm package.

Disclosure: I ideate and draft content, then refine it with the aid of artificial intelligence tools like Claude and revise it to reflect my intended message.

Top comments (0)