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

google-crawl-simulator

v1.0.1

Published

Simulates how Googlebot crawls and indexes a page: robots.txt rules, raw HTML crawl (wave 1), JS-rendered crawl (wave 2, like Google's Web Rendering Service), and SEO signal extraction (title/meta/canonical/hreflang/structured data/alt text/links/status c

Readme

google-crawl-simulator

Simulates how Googlebot actually crawls and indexes a page, replicating Google's real two-wave process:

  1. robots.txt check — fetches /robots.txt, parses User-agent/Allow/Disallow groups the way Google's spec resolves them (longest match wins, 5xx = full disallow, 404 = full allow), and decides whether Googlebot may fetch the URL.
  2. Wave 1 — raw HTML crawl — fetches the URL with a Googlebot user agent, follows redirects manually (reporting the full chain), and parses the raw (non-JS-executed) HTML.
  3. Wave 2 — JS rendering — loads the page in headless Chromium via Playwright (Google's Web Rendering Service is also an evergreen Chromium), with a configurable render-timeout to mimic Google's finite render/crawl budget, and captures failed requests + console errors that could break rendering.
  4. SEO/indexability signal extraction — for both raw and rendered HTML: title, meta description, canonical, meta robots (noindex/nofollow), lang, viewport, headings, image alt text, internal/external/nofollow links, JSON-LD structured data, Open Graph/Twitter Card tags, and visible word count.
  5. Raw vs. rendered diff — flags when content, title, meta description, or canonical only appear after JS execution, which is exactly the situation that delays or risks indexing in the real Google pipeline.

Setup

npm install

(postinstall downloads Playwright's Chromium automatically.)

Usage

npx google-crawl-simulator http://localhost:3000 [options]

Options:

  • -m, --mobile — use the Googlebot Smartphone UA + mobile viewport (Google is mobile-first)
  • --no-render — skip JS rendering, only do the raw HTML crawl
  • --timeout <ms> — render timeout (default 15000), simulating Google's render budget
  • --json <file> — dump the full structured result to a JSON file

Example:

node src/index.js --mobile https://example.com --json report.json

You can also install it as a global command:

npm link
gcrawl https://example.com

What it does NOT simulate

  • PageRank/link-graph-based crawl prioritization or actual crawl scheduling/frequency.
  • Google's exact render queue delay (real Wave 2 can lag Wave 1 by hours to weeks — this tool renders immediately).
  • Signals that require Search Console data (actual indexing status, coverage errors, manual actions).