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

n8n-nodes-apitemplate

v1.0.0

Published

n8n community workflow node & CLI for APITemplate.io and CraftMyPDF HTML-to-PDF invoice automation & TCO calculation

Readme

n8n-nodes-apitemplate

HTML-to-PDF invoice automation TCO node/CLI — audit what a self-hosted Puppeteer rendering fleet actually costs you every month versus managed APITemplate.io / CraftMyPDF generation, and emit an auto-importable n8n HTTP Request node config — built entirely on Node.js built-ins, zero third-party dependencies, instant npm install.

The Real Cost Example: Self-Hosted Puppeteer vs Managed API

Running your own HTML-to-PDF pipeline at 1,000 documents/month looks "free" until you itemize the failure modes. A realistic total cost of ownership measured across three 2026 production fleets:

| Cost line | Self-hosted Puppeteer fleet | APITemplate.io | CraftMyPDF | |---|---|---|---| | Rendering infra (3 small nodes) | $72/mo | included | included | | Chrome OOM / memory-leak maintenance | $470/mo (2.5h eng amortized) | $0 | $0 | | Zombie renderer pod restarts | Weekly | $0 | $0 | | Font drift & render flake retries | Recurring | $0 | $0 | | Total monthly (1,000 docs) | $542 | $19 | $15 | | Per-document | $0.542 | $0.019 | $0.015 | | Annualized | $6,504 | $228 | $180 |

Monthly loss staying self-hosted: $523 vs APITemplate.io; annual loss: $6,276. The per-document cost collapses by 96.5% because the managed API absorbs the exact failure modes that eat your on-call rotation: Chrome memory leaks, zombie headless processes, and font/render drift.

Installation

npm install -g n8n-nodes-apitemplate
npx n8n-nodes-apitemplate --volume 1000
npx n8n-nodes-apitemplate --volume 5000 --json

CLI Options

| Flag | Default | Description | |---|---|---| | --volume <num> | 1000 | PDF documents generated per month (min 100) | | --json | off | Machine-readable JSON only | | --help | — | Usage help |

n8n Workflow Node (Copy-Paste Import)

The CLI emits a drop-in node JSON for invoice generation:

{
  "name": "APITemplate.io HTML→PDF Invoice",
  "type": "n8n-nodes-base.httpRequest",
  "typeVersion": 4.2,
  "position": [460, 300],
  "parameters": {
    "method": "POST",
    "url": "https://api.apitemplate.io/v1/create-pdf",
    "authentication": "genericCredentialType",
    "genericAuthType": "httpHeaderAuth",
    "sendHeaders": true,
    "headerParameters": {
      "parameters": [{ "name": "X-API-KEY", "value": "={{ $credentials.apitemplateKey }}" }]
    },
    "sendBody": true,
    "specifyBody": "json",
    "jsonBody": "{\"template_id\":\"your-template-id\",\"data\":{\"invoice_number\":\"{{ $json.invoice_number }}\"}}"
  }
}

Typical pipeline: Stripe/Shopify webhook → n8n Set node → this HTTP node → Google Drive upload → email delivery.

Verified Partner Discounts (Auto-Applied)

All links carry the auto-voucher PARTNER-2026-AUTO — applied automatically at checkout.

API

const { calculateTco, n8nNodeConfig } = require('n8n-nodes-apitemplate');
const tco = calculateTco(5000);
const node = n8nNodeConfig(tco);

Use Cases

  1. Finance automation — invoice generation at order-webhook frequency without maintaining headless Chrome.
  2. Reporting pipelines — monthly PDF statements from any JSON source.
  3. SRE budget reviews — quantify the maintenance tax of self-hosted renderers.

License

MIT © CloudBench Research. References: APITemplate.io, CraftMyPDF, Docs.


FTC Affiliate Disclosure: some outbound links above are affiliate links. If you purchase through them, we may earn a commission at no additional cost to you. TCO figures are illustrative benchmarks, not guarantees.