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

@pdfbear/cli

v0.1.2

Published

Official command-line interface for PDFBEAR PDF tools

Readme

@pdfbear/cli

The official command-line interface for PDFBEAR: convert, compress, merge, split, protect, unlock and OCR PDFs from a terminal or CI job.

Requirements

Install

npm install --global @pdfbear/cli
pdfbear login

You can also run it without installing:

npx @pdfbear/cli tools

pdfbear login prompts for the API key without displaying it, verifies it with PDFBEAR, and saves it in the operating system's user configuration directory. For CI or temporary use, set PDFBEAR_API_KEY instead.

Examples

pdfbear compress-pdf report.pdf --compression-level recommended
pdfbear merge-pdf chapter-1.pdf chapter-2.pdf -o book.pdf
pdfbear pdf-to-word scan.pdf -o scan.docx
pdfbear pdf-to-word https://example.com/scan.pdf -o scan.docx
pdfbear html-to-pdf https://example.com -o page.pdf
pdfbear presentation-maker "Quarterly sales review" --num-slides 8

The CLI reads the current catalog from the PDFBEAR API, so every supported tool_id is automatically available as a command. Run pdfbear tools --json to inspect inputs, options, output formats and plan requirements.

Automation

Use --json for structured output and --no-wait to return as soon as a job is accepted:

export PDFBEAR_API_KEY="pdfb_live_..."
pdfbear compress-pdf report.pdf --no-wait --json
pdfbear job job_123 --wait --download -o report-small.pdf --json

Use -o - to write the downloaded file to standard output:

pdfbear compress-pdf report.pdf -o - > report-small.pdf

The CLI will not replace an existing output file unless --force is supplied.

Commands

pdfbear login
pdfbear logout
pdfbear account [--json]
pdfbear tools [--json]
pdfbear job <job-id> [--wait] [--download] [-o <path>] [--json]
pdfbear <tool-id> <input...> [tool options] [-o <path>]

API documentation and plan limits are available at pdfbear.com/developers.

Security

Avoid putting API keys or document passwords directly in shell commands. Use pdfbear login, PDFBEAR_API_KEY, and the CLI's hidden prompt for required PDF passwords. Uploaded documents are processed according to the PDFBEAR privacy policy.

License

MIT © Targa Limited