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

@rafaelgdn/browser-scraper

v0.2.0

Published

CDP-first browser automation library with closed Shadow DOM access, profile seeding, and antibot-oriented features

Readme

Browser Scraper

@rafaelgdn/browser-scraper is a CDP-first browser scraping package for Node.js, preserving the same public API and the same design direction used in the original GDNox prototype.

Status

This package has the core ported:

  • Direct Chrome launch with raw CDP
  • Tab/page control
  • Unified DOM search with shadow root piercing
  • OOP iframe support
  • Element interactions
  • Network monitoring and interception
  • Profile seeding

Install

pnpm install

If pnpm blocks native build scripts, run:

pnpm rebuild better-sqlite3 esbuild

Usage

import { Browser } from "@rafaelgdn/browser-scraper";

const browser = new Browser();

try {
  const tab = await browser.new_tab();
  await tab.goto("https://example.com");

  const heading = await tab.find("h1");
  console.log(await heading?.text());
} finally {
  await browser.close();
}

API

Browser

new Browser({
  chrome_path: null,
  headless: false,
  user_data_dir: null,
  proxy: null,
  extra_args: [],
  auto_seed: true,
});

Tab

await tab.goto(url, "load", 30);
await tab.find(selector, 5);
await tab.find_all(selector);
await tab.wait_for_selector(selector, false, false, 30);
await tab.wait_for_function(expression, 30);
await tab.race([".success"], ["window.done === true"], false, 30);
await tab.evaluate("document.title");
await tab.screenshot("shot.png");
await tab.content();
await tab.sleep(2);

Element

await element.click();
await element.type("hello");
await element.text();
await element.inner_html();
await element.get_attribute("href");
await element.set_attribute("data-test", "1");
await element.is_visible();

Notes

  • The port currently mirrors the real implemented behavior in the Python package.
  • The dedicated fingerprint and runtime stealth modules were removed from the Node package because enabling them increased Cloudflare detection in testing.

Publish

Build the package first:

pnpm build

Inspect the publishable tarball locally:

pnpm pack

Log into npm:

npm login
npm whoami

Publish the scoped package publicly:

pnpm publish --access public --no-git-checks