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-docjet

v1.0.1

Published

n8n community node for DocJet — render branded PDFs and PNG images from templates or raw HTML via the DocJet API

Readme

n8n-nodes-docjet

n8n community node for DocJet — render branded PDFs (invoices, reports, certificates) and PNG/OG social images from stored templates or raw HTML, directly inside your n8n workflows.

n8n is a fair-code licensed workflow automation platform.

  • Zero runtime dependencies — all HTTP goes through n8n's declarative routing engine
  • API base: https://api.docjet.dev

Installation

Follow the official guide for installing community nodes:

  1. In n8n, go to Settings → Community Nodes.
  2. Select Install, enter n8n-nodes-docjet, and confirm.

For a self-hosted instance you can also install from the CLI:

npm install n8n-nodes-docjet

Credentials

The node uses a single DocJet API credential:

| Field | Value | | ------- | ------------------------------------------------------ | | API Key | Your DocJet API key (binfra_ prefix), issued at signup |

Get a key (free tier, no card required):

curl -X POST https://api.docjet.dev/v1/signup \
  -H "Content-Type: application/json" \
  -d '{"email": "[email protected]"}'

The key is sent as Authorization: Bearer <key> on every authenticated request. The credential test calls GET /v1/keys/usage.

Operations

| Operation | Endpoint | Description | | -------------- | ---------------------------- | ------------------------------------------------------ | | Render PDF | POST /v1/render?response=url | Render a PDF from a template ID or raw HTML; returns { "url": "..." } (signed download URL) | | Render Image | POST /v1/image?response=url | Render a PNG image from a template ID or raw HTML; returns { "url": "..." } | | List Templates | GET /v1/templates | Fetch the public template catalog (id, name, description, outputType) |

For Render PDF / Render Image:

  • SourceTemplate ID (a stored template) or Raw HTML (inline HTML, max 512 KB).
  • Data — Handlebars template variables as a JSON object (e.g. { "invoice_no": "INV-001" }).

Manual test recipe (local, ephemeral)

Verified-node submission requires a working node; test locally with a throwaway n8n instance — do not install n8n on a production server.

  1. Build and link the package:

    npm install && npm run build && npm link
  2. Start an ephemeral n8n with the node linked (n8n picks up linked community nodes from its custom extensions dir):

    mkdir -p ~/.n8n/custom && cd ~/.n8n/custom && npm link n8n-nodes-docjet
    npx n8n
  3. Open http://localhost:5678, create a DocJet API credential and paste an API key (get one via the signup curl above). The credential test should pass (GET /v1/keys/usage).

  4. Add the DocJet node to a workflow:

    • Run List Templates — expect the template catalog as items.
    • Run Render PDF with Source = Template ID, a template ID from the catalog (e.g. invoice-eu), and Data = {} (or template variables) — expect a JSON item with a signed url.
    • Open the returned URL in a browser — the rendered PDF downloads.
  5. Tear down: stop n8n (Ctrl+C) and npm unlink n8n-nodes-docjet from ~/.n8n/custom.

Development

npm install     # install dev dependencies (zero runtime deps by design)
npm run lint    # eslint-plugin-n8n-nodes-base rule sets (community/credentials/nodes)
npm run build   # tsc -> dist/ + node icon copy

Publishing

Publishing happens exclusively through GitHub Actions (.github/workflows/publish.yml) with an npm provenance statement — required for n8n verified community nodes since May 1 2026. Publish a GitHub release to trigger it; NPM_TOKEN must be configured as a repo secret.

Resources

License

MIT