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

pdf2markdown-cli

v1.0.1

Published

CLI for pdf2markdown.io — convert PDF and images to Markdown. Sync (30MB) and async (100MB). Skills for Cursor, Codex, OpenCode.

Readme

PDF2Markdown CLI

Convert PDF and image documents to clean Markdown. Also available as pdf2md.

Skills (AI Coding Agents)

Install PDF2Markdown skills for Cursor, Codex, Claude Code, OpenCode, etc., so agents can convert PDFs to markdown via the CLI.

# Install to all detected agents
pdf2markdown setup skills
# or
pdf2md setup skills

# Install to a specific agent
pdf2markdown setup skills --agent cursor
pdf2md setup skills --agent opencode

Supported agents: cursor, codex, claude, opencode, agents, windsurf, continue, project (project installs to .cursor/skills and .opencode/skills).

See skills/pdf2markdown-cli/rules/install.md for full setup.


Installation

Supports macOS, Windows, and Linux.

# npm
npm install -g pdf2markdown-cli

# pnpm / yarn
pnpm add -g pdf2markdown-cli
yarn global add pdf2markdown-cli

Or use without installing:

npx -y pdf2markdown-cli document.pdf -o output.md

After global install, both pdf2markdown and pdf2md are available.

One-shot setup (install, auth, and skills):

npx -y pdf2markdown-cli init -y

Quick start

  1. Get your API key from pdf2markdown.io/dashboard.

  2. Login:

    pdf2markdown login
    # or
    pdf2markdown login --api-key "p2m_live_xxxx"
  3. Convert a document:

    pdf2markdown document.pdf -o output.md
    pdf2md document.pdf -o .pdf2markdown/output.md

Commands

Use pdf2markdown or pdf2md (same CLI):

| Command | Description | | -------------- | ------------------------------------ | | parse | Sync parse (files up to ~30MB) | | parse-async | Async parse for large files (100MB) | | login | Authenticate with API key | | logout | Clear credentials | | status | Show version and auth status | | init | Install CLI, auth, and skills | | setup skills | Install skills for AI coding agents | | setup skills --agent <name> | Install to specific agent |

Examples

Both pdf2markdown and pdf2md work the same:

# Shorthand: file as first argument
pdf2markdown document.pdf -o output.md
pdf2md document.pdf -o .pdf2markdown/output.md

# From URL
pdf2markdown parse --url "https://example.com/doc.pdf" -o doc.md

# Multiple files
pdf2markdown parse file1.pdf file2.png -o .pdf2markdown/

# Large file (async) — submit and wait
pdf2markdown parse-async large.pdf --wait -o output.md

# Or step by step: submit → status → result
pdf2md parse-async large.pdf
pdf2md parse-async task_xxx --status
pdf2md parse-async task_xxx --result -o output.md

Supported formats

PDF, JPEG, PNG, GIF, WebP, TIFF, BMP

Testing

pnpm run build
pnpm run test

See TESTING.md for details.

Documentation