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

edgeparse

v0.2.3

Published

High-performance PDF extraction — Rust engine, Node.js interface

Readme

edgeparse

High-performance PDF extraction for Node.js — Rust engine, JavaScript/TypeScript interface.

npm version License: Apache-2.0 GitHub

EdgeParse converts PDF documents to Markdown, JSON, HTML, or plain text. It is powered by a native Rust engine (via N-API) with pre-built binaries — no compilation required.

Install

npm install edgeparse
# or
pnpm add edgeparse
# or
yarn add edgeparse

Pre-built binaries are available for:

| Platform | Architecture | |---|---| | macOS | x64, arm64 (Apple Silicon) | | Linux | x64-gnu, arm64-gnu | | Windows | x64-msvc |

Quick Start

import { convert } from 'edgeparse';

// Convert a PDF to Markdown
const markdown = convert('report.pdf');
console.log(markdown);

// Convert to JSON
const json = convert('report.pdf', { format: 'json' });

// Convert specific pages to HTML
const html = convert('report.pdf', {
  format: 'html',
  pages: [0, 1, 2],   // pages 1–3 (0-indexed)
});

// Password-protected PDF
const text = convert('secure.pdf', {
  format: 'markdown',
  password: 'secret',
});

API

convert(inputPath, options?): string

Converts a PDF file and returns the content as a string.

| Parameter | Type | Description | |---|---|---| | inputPath | string | Absolute or relative path to the PDF file | | options.format | 'markdown' \| 'json' \| 'html' \| 'text' | Output format (default: 'markdown') | | options.pages | number[] | Zero-indexed page numbers to extract (default: all) | | options.password | string | Password for encrypted PDFs | | options.readingOrder | 'xycut' \| 'default' | Reading order algorithm (default: 'xycut') | | options.tableMethod | 'border' \| 'cluster' | Table detection method (default: 'border') | | options.imageOutput | 'embedded' \| 'external' \| 'none' | Image handling (default: 'none') |

version(): string

Returns the edgeparse engine version string.

import { version } from 'edgeparse';
console.log(version()); // e.g. "0.2.2"

CLI

The package also ships an edgeparse CLI binary:

npx edgeparse document.pdf
npx edgeparse document.pdf --format json
npx edgeparse document.pdf --format html --output output/

TypeScript

Full TypeScript support is included — no @types package needed.

import { convert, version } from 'edgeparse';
import type { ConvertOptions } from 'edgeparse';

Performance

EdgeParse consistently processes 40+ pages/second on a modern machine and achieves 88%+ extraction accuracy on diverse real-world PDFs — dramatically faster than Python-based alternatives.

Links

License

Apache-2.0 — see LICENSE.