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

v0.1.2

Published

n8n community node: convert a PDF (binary) to semantic Markdown in-process via @opendocsg/pdf2md. No external API.

Readme

n8n-nodes-pdf2md

n8n community node that converts a PDF (binary) into semantic Markdown entirely in-process via @opendocsg/pdf2md. No external API, no network calls — the PDF never leaves your n8n instance.

Built after the n8n-nodes-pdf-extractor community node crashed (TypeError: …reading 'indexOf') on designed multi-page PDFs; @opendocsg/pdf2md parses them without crashing (heuristic font-size → heading detection).

Node: PDF to Markdown (pdf2md)

| Parameter | Default | Purpose | |---|---|---| | Input Binary Field | data | Binary property holding the PDF | | Output Field | markdown | JSON field the Markdown is written to | | Demote Headings One Level | false | Shift every heading down one level (H1→H2 … cap H6). Enable when the Markdown is nested under another H1 (e.g. PRIMA's # Content) so the document's own H1s don't end that section early. |

Output item = the input json plus { [outputField]: markdown }, binary preserved on the item. Honours Continue On Fail (emits { error } instead of throwing).

Build

npm install
npm run build      # -> dist/

Install into self-hosted n8n

Option A — publish to npm, then GUI install (easiest for users):

npm login
npm publish        # publishes n8n-nodes-pdf2md

Then in n8n: Settings → Community Nodes → Installn8n-nodes-pdf2md.

Option B — install the packed tarball without publishing:

npm pack           # -> n8n-nodes-pdf2md-<ver>.tgz
# copy the tgz to the n8n host, then in the n8n custom-extensions dir:
cd ~/.n8n/custom && npm init -y 2>/dev/null; npm install /path/to/n8n-nodes-pdf2md-<ver>.tgz
# ensure N8N_CUSTOM_EXTENSIONS=~/.n8n/custom and restart n8n

Note

Heuristic extractors (this, unpdf, Jina-keyless) infer structure from font geometry — great on single-column reports/papers, noisier on heavily-designed magazine layouts. For pixel-perfect structure on designed PDFs, an LLM/vision converter (MarkItDown-with-LLM, Jina ReaderLM) is required.