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

@isdk/google-searcher

v0.1.1

Published

Standardized Google search engine scrapers for @isdk/ai-tools, featuring automated pagination, session persistence, and robust metadata extraction (e.g., publication dates).

Readme

Google Searcher

The GoogleSearcher is a specialized search engine scraper for Google, built on top of the WebSearcher framework. It uses browser-based scraping to navigate through search results, handle pagination, and extract structured data.

Features

  • Browser-based Execution: Uses Playwright (via @isdk/web-fetcher) to render JavaScript and simulate user behavior, capable of handling basic anti-bot challenges.
  • Pagination: Automatically handles multi-page results using Google's start offset parameter.
  • Data Extraction: Extracts titles, clean URLs, snippets, and attempts to parse publication dates from result snippets.
  • URL Cleaning: Automatically unwraps Google's /url?q=... redirection links.

Usage

import { GoogleSearcher, WebSearcher } from '@isdk/google-searcher'

// Register if not already done
WebSearcher.register(GoogleSearcher)

const results = await WebSearcher.search(
  'google',
  'typescript best practices',
  {
    limit: 20,
    region: 'US',
    language: 'en',
    timeRange: 'year',
  }
)

Options

In addition to standard SearchOptions, GoogleSearcher maps the following:

| Option | Type | Description | | :------------------- | :-------------------------- | :------------------------------------------------------------------------------------------------------- | | region | string | ISO 3166-1 alpha-2 country code (e.g., 'US', 'GB'). Maps to gl parameter. | | language | string | ISO 639-1 language code (e.g., 'en', 'fr'). Maps to hl parameter. | | timeRange | string | Filter by time: 'hour', 'day', 'week', 'month', 'year'. Maps to tbs=qdr:.... | | timeRange (Custom) | { from: Date, to?: Date } | Custom date range. Maps to tbs=cdr:1,cd_min:...,cd_max:.... | | category | string | Search category: 'images', 'videos', 'news'. Maps to tbm. | | safeSearch | string | 'off', 'strict'. Maps to safe. | | offset | number | Starting index (0-based). Maps to start. | | needDate | boolean | If true, will attempt to fetch and extract publication dates for each result if not found in snippets. |

Implementation Details

  • Engine: browser (Headless mode by default, can be configured).
  • Pagination Type: url-param (parameter: start, increments by 10).
  • Selector: Targets #main #search for the result container and a:has(h3) for items.
  • Anti-bot: Includes basic wait actions and strict selector targeting. Note that aggressive scraping may still trigger CAPTCHAs.