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

apex-scraper

v1.1.1

Published

A stealth web scraper for crawling websites and extracting clean text content with page and word limits.

Readme

Apex Scraper

  • Version 1.1.1

Apex Scraper is a web scraping tool developed for websites, applications, and data collection workflows. It automatically discovers all reachable pages of a target website and returns their extracted content in a structured format.


Features

  • Cloudflare, Anti-Bot, and Rate-Limit bypass techniques
  • High efficiency with low RAM usage
  • Semi–open source architecture

Limits & Plans

| Feature / Limit | Free Version | Pro Version | | --------------- | ------------ | -------------- | | Max Pages | 30 | 1050 | | Max Words | 128,000 | 4,480,000 | | Crawl Speed | Normal | 10× Faster |

Limits shown above are enforced automatically by the scraper.


Support

If you need help, have questions, or want to report bugs, you can join the official support server:

Community support, announcements, and Pro updates are shared there.


Documentation

Parameters

The scrape function accepts a single options object.

Required

  • link (string) – Target website URL (must start with https://)

Optional

  • maxPage (number) – Maximum number of pages to crawl
  • maxWord (number) – Maximum number of words to extract

New in v1.1.0

  • screenshot (boolean) – If true, captures a full-page screenshot (Base64)
  • extractImages (boolean) – If true, extracts all images (img tags, background images, lazy-loaded images)
  • extractHtml (boolean) – If true, extracts the raw HTML source of the page
  • waitDuration (number) – Time to wait after page load before extraction (in milliseconds)
  • waitSelector (string) – Waits until the specified CSS selector appears on the page

Usage

Apex Scraper is published as an ES Module (ESM) package. It works in both ESM and CommonJS projects.


ESM Usage (Recommended)

import { scrape } from 'apex-scraper';

const result = await scrape({
  link: 'https://example.com',
  maxPage: 5,
  maxWord: 10000
});

console.log(result);

CommonJS Usage

If your project uses CommonJS (require), you can still use Apex Scraper via dynamic import:

(async () => {
  const { scrape } = await import('apex-scraper');

  const result = await scrape({
    link: 'https://example.com',
    maxPage: 5,
    maxWord: 10000
  });

  console.log(result);
})();

Example Response

{
  "duration": 17.691,
  "pages": [
    {
      "url": "https://example.com",
      "content": "Extracted page text...",
      "wordCount": 336,
      "screenshot": "<base64-string>",
      "images": [
        "https://example.com/image1.png",
        "https://example.com/image2.jpg"
      ],
      "html": "<html>...</html>"
    }
  ]
}

This response includes:

  • duration – Total scrape duration (seconds)

  • pages – Array of scraped pages

    • url – Page URL
    • content – Extracted visible text
    • wordCount – Word count for the page
    • screenshot (optional) – Full-page screenshot (Base64)
    • images (optional) – Extracted image URLs (img, background, lazy-load)
    • html (optional) – Raw HTML source of the page