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

@xpert-ai/plugin-pdfium

v0.0.6

Published

`@xpert-ai/plugin-pdfium` is a PDF conversion toolset plugin for the [Xpert AI](https://github.com/xpert-ai/xpert) agent platform. It equips agents with the ability to convert PDF files into Markdown format, extracting both text and images for easier proc

Readme

Xpert Plugin: Pdfium

@xpert-ai/plugin-pdfium is a PDF conversion toolset plugin for the Xpert AI agent platform. It equips agents with the ability to convert PDF files into Markdown format, extracting both text and images for easier processing within workflows.

Installation

pnpm add @xpert-ai/plugin-pdfium
# or
npm install @xpert-ai/plugin-pdfium

Note: This plugin depends on @xpert-ai/plugin-sdk, @nestjs/common@^11, @hyzyla/pdfium, pngjs, and zod as peer dependencies. Install these in the host project before enabling the plugin.

Quick Start

  1. Register the Plugin
    Include the package in your plugin list (environment variable or configuration):

    PLUGINS=@xpert-ai/plugin-pdfium

    The plugin bootstraps the PdfiumModule NestJS module, registers the toolset, and emits lifecycle logs.

  2. Provision Toolsets for Agents

    • Xpert Console: add a Built-in Toolset instance and choose PDF to Markdown.
    • API: request toolset pdfium.

    No credentials or secrets are required, so any authorized agent can immediately create instances.

Pdfium Toolset

| Field | Value | | ------------ | ------------------------------------------------------------------ | | Name | pdfium | | Display Name | PDF to Markdown / PDF 转 Markdown | | Category | tools | | Description | Convert PDF files to markdown with extracted text and page images. | | Config | No configuration or external integrations are needed. |

The toolset uses @hyzyla/pdfium to render PDF pages and extract text. Images are saved as PNG files.

Tools

| Tool | Purpose | Input Highlights | Output | | ----------------- | ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | pdf_to_markdown | Convert a PDF file into a markdown file with extracted text and rendered page images. | fileUrl, filePath, or content (base64/buffer). Optional fileName and scale (default 2.0). | JSON object containing group, pageCount, content (markdown string), and files list. |

Example Payloads

// PDF to Markdown
{
  "tool": "pdf_to_markdown",
  "input": {
    "fileUrl": "https://example.com/document.pdf",
    "scale": 2.0
  }
}

The tool returns a JSON object. Agents typically use the content field for the markdown text and files for accessing generated images.

Permissions & Security

  • Network Calls: Fetches PDF from URL if fileUrl is provided.
  • Filesystem: Writes generated markdown and image files to the workspace volume.
  • Logging: Only lightweight lifecycle logs are emitted.

Development & Testing

npm install
npx nx build @xpert-ai/plugin-pdfium
npx nx test @xpert-ai/plugin-pdfium

License

This project follows the AGPL-3.0 License located at the repository root.