npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pdfops-sdk

v0.3.0

Published

Typed client for the PDFops API — deterministic PDF fill, merge, and inspect over HTTP. Edge-safe: works in Cloudflare Workers, Vercel Edge, Deno, Bun, Node 18+, and browsers.

Readme

pdfops-sdk

Typed client for the PDFops API — deterministic PDF fill, merge, and inspect over HTTP. No Chromium, no native deps, no infrastructure.

Edge-safe by construction: the client uses only fetch/FormData/Blob, so the same build runs in Cloudflare Workers, Vercel Edge, Deno, Bun, Node 18+, and browsers.

npm install pdfops-sdk

Quick start

import { PdfOps } from 'pdfops-sdk';

const pdfops = new PdfOps({ apiKey: process.env.PDFOPS_API_KEY }); // or omit for keyless trial (100 req/IP/mo)

// 1. Discover the form's field names
const { fields, fillTemplate } = await pdfops.inspect(templatePdf);

// 2. Fill it
const filled = await pdfops.fillForm(templatePdf, {
  customer_name: 'Ada Lovelace',
  total: '$1,250.00',
  agree: 'true',
});

// 3. Merge with a cover page
const combined = await pdfops.merge([coverPdf, filled]);

Generate an invoice (no template needed)

const pdf = await pdfops.invoice({
  from: { name: 'Acme LLC', lines: ['100 Main St', 'Springfield, IL'] },
  to: 'Globex Corporation',
  invoice_number: 'INV-0042',
  date: '2026-07-21',
  tax_rate: 8.5,
  items: [{ description: 'Consulting', quantity: 10, unit_price: 145 }],
});

Deterministic: the same request returns byte-identical bytes — safe to re-render idempotently from webhooks and crons. Free-tier output carries a small pdfops.dev footer; paid tiers render clean.

fillForm/merge return Uint8Array PDF bytes — hand them to R2/S3/Blob storage, a Response, or an email attachment as-is.

API keys

  • Keyless: 100 requests / IP / month — try it without an account.
  • Free key: 250 requests / month, no card — await pdfops.signup('[email protected]') or the form at pdfops.dev/pricing. The key arrives by email.
  • Paid: Indie $16/mo (4,000 req) · Pro $79/mo (25,000 req) — pdfops.dev/pricing.

Check your quota anytime:

const { used, remaining, resets_at } = await pdfops.usage();

Errors

Every non-2xx response throws a PdfOpsError with the API's stable error slug:

import { PdfOpsError } from 'pdfops-sdk';

try {
  await pdfops.fillForm(pdf, { nope: 'x' });
} catch (e) {
  if (e instanceof PdfOpsError) {
    console.log(e.status, e.code); // 400 'unknown_field'
  }
}

Common codes: unknown_field, invalid_pdf, invalid_api_key (401), rate_limited (429 — includes a Retry-After on the HTTP response).

Docs

Full API reference: pdfops.dev/docs · Field inspector web tool: pdfops.dev/tools/inspect

MIT © PDFops