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

docs-scraper

v1.0.6

Published

CLI and SDK for scraping documents from DocSend, Notion, and other sources

Readme

docs-scraper

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.1.30. Bun is a fast all-in-one JavaScript runtime.

Supported Links

  • [ ] Notion
  • [ ] Docsend
  • [ ] Pitch.com
  • [ ] Google slides
  • [ ] Google drives
  • [ ] PDF links

How it works?

  1. User sends link via /api/v1/scrape with url and JSON object data that may contain email, password or other values
  2. A spin up Playwright to interact with the page
  3. For templated projects we will follow our scripts, if blockers are met, it stores the status and required items to proceed
  4. User polls /api/v1/results/:jobId to check scraping result and status. If blocked, users should provide blocking items via ``api/v1/update`
  5. Scraped content gets stored into a PDF file.
  6. Each scrape returns an array of PDF file. For single page link, it returns an array of single PDF file link. For pages that may contain multiple scraping jobs (e.g. Docsend folders), we will return an array of pdf link.
  7. /api/v1/scrape returns sessionId and jobId. To scrape with an old session (e.g. to avoid signing in twice), pass sessionId as parameter
  8. Falls back to using LLM to scrape when links are not supported.

API Endpoints

| Method | Endpoint | description | | ------ | ---------------------- | ------------------- | | POST | /api/v1/scrape | Submit job | | POST | /api/v1/update | Provide auth data | | GET | /api/v1/results/:jobId | Poll for results | | GET | /api/v1/jobs | List jobs | | DELETE | /api/v1/jobs/:jobId | Cancel job | | GET | /api/v1/sessions | List saved sessions | | DELETE | /api/v1/sessions | Clear sessions |

Tech Stack

  • Typescript + express
  • BullMQ to queue tasks
  • Playwright to interact with links
  • Cloudflare R2 to store scraped content as PDF files

Auth

Use a simple api secret to gate access to this service.

  1. Configure API_SECRET in your env variables
  2. All requests must include x-api-secret to access the service