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

greatescrape

v0.1.1

Published

đź‘€GreatEscrape CLI for geographically decomposed web scraping with OSM, DuckDuckGo, Ollama, PinchTab, and Obsidian-friendly output.

Readme

đź‘€GreatEscrape

đź‘€GreatEscrape is a CLI that fans a search out across geographic subdivisions, expands the search phrase with lightweight synonym generation, collects candidate pages from DuckDuckGo, deterministically extracts contact details, and writes SQLite state, Obsidian-friendly notes, and raw text logs.

It now also supports PinchTab as an optional rendered-page backend, so JavaScript-heavy targets can be extracted through a real browser without giving up the default fast HTTP path.

Brand: đź‘€GreatEscrape Command: greatescrape

What it does

For a command like:

greatescrape bars toronto contact

the pipeline is:

  1. Resolve toronto with OpenStreetMap Nominatim.
  2. Expand Toronto into nearby subdivisions with Overpass.
  3. Generate search variants for bars through Ollama, with a fallback if Ollama is unavailable.
  4. Search DuckDuckGo for every (variant x subdivision) query.
  5. Fetch the pages and extract emails, phones, hours, addresses, and relevant snippets.
  6. Save structured JSON, Obsidian markdown notes, and raw text logs.

If PinchTab is configured, page extraction can:

  1. stay on the fast HTTP extractor when direct fetches already expose contact signals
  2. fall back to a rendered browser capture for JS-heavy pages
  3. run fully through PinchTab when you need browser-only extraction

Install

npm install -g greatescrape

From source:

git clone https://github.com/lmtlssss/greatescrape.git
cd greatescrape
npm install
npm run build
npm link

Usage

greatescrape <term> <location> [detail]
greatescrape /term ... /detail ... /location ...
greatescrape watch <job-path>
greatescrape status <job-path>
greatescrape token <job-path>
greatescrape serve <job-path>
greatescrape vps <job-path> --ssh-host greatescrape.lmtlssss.fun

Examples:

greatescrape bars toronto contact
greatescrape /term dog walker /detail contact /location parkdale toronto
greatescrape /term cafe /detail menu /location germany
greatescrape "ski resort" montana contact --max-locations 100 --max-results 4
greatescrape brewery quebec contact --vault ~/Obsidian/MyVault
greatescrape "roofing company" chicago contact --pinchtab-url http://127.0.0.1:9867
greatescrape "private dentist" london contact --pinchtab-url http://127.0.0.1:9867 --pinchtab-mode always
greatescrape watch ./greatescrape-output/my-job
greatescrape token ./greatescrape-output/my-job
greatescrape serve ./greatescrape-output/my-job

The older greatescrape run ... form still works as a compatibility alias. Slash sections capture every word until the next slash section, so multi-word locations and terms do not need rigid positional parsing.

Options

  • --detail <type>: override the optional positional detail value.
  • --vault <path>: write Obsidian notes into an existing vault location.
  • --output <path>: base output directory for the run.
  • --ollama-model <name>: model to use for synonyms and parsing.
  • --max-locations <number>: cap geographic subdivisions considered.
  • --max-results <number>: cap DuckDuckGo results fetched per query.
  • --synonyms <number>: number of synonym variants requested from Ollama.
  • --concurrency <number>: page fetch concurrency.
  • --pinchtab-url <url>: optional PinchTab server used for rendered-page extraction.
  • --pinchtab-instance <id>: reuse a specific PinchTab instance instead of auto-selecting a running one.
  • --pinchtab-mode <auto|always>: auto keeps the fast HTTP extractor first and falls back to PinchTab when needed; always captures every page through PinchTab.

Environment equivalents:

  • GREATESCRAPE_PINCHTAB_URL
  • GREATESCRAPE_PINCHTAB_INSTANCE_ID
  • GREATESCRAPE_PINCHTAB_MODE

Output

Each run creates:

  • job.sqlite
  • job.log
  • run-summary.json
  • search-results.json
  • entities.json
  • raw/*.txt
  • obsidian/entities/*.md

The markdown notes use YAML frontmatter so they work well with Obsidian Dataview-style queries.

Web Shell

The static public dashboard shell lives in site/. It is designed to deploy directly to Netlify and stay zero-knowledge by default:

  1. Run greatescrape ... and keep the access token the CLI prints.
  2. Run greatescrape serve <job-path> to expose the local gateway for that job.
  3. If you need the token again later, run greatescrape token <job-path> locally.
  4. Open the hosted shell and paste your gateway URL plus access token into the form.

The browser talks directly to your gateway using x-greatescrape-token, so the hosted shell does not need your raw crawl data copied into Netlify. The hosted shell no longer uses token-in-URL launch links.

PinchTab

PinchTab fits into GreatEscrape as a browser-sidecar, not as a replacement for the whole crawl engine.

Typical setup:

pinchtab
greatescrape "family lawyer" toronto contact --pinchtab-url http://127.0.0.1:9867

Behavior:

  • GreatEscrape reuses a running PinchTab instance when one is already available.
  • If the server exposes orchestrator endpoints and no instance is running, GreatEscrape starts a temporary headless instance and stops it when the job ends.
  • If you need a specific logged-in browser session, pass --pinchtab-instance <id>.

Notes

  • The current MVP uses DuckDuckGo HTML results and deterministic extraction first.
  • Known directory and social pages are kept in search-results.json, but the final entity dataset is biased toward pages with extracted contact signals.
  • Ollama is optional. If the local model is unavailable, đź‘€GreatEscrape falls back to simple term variants and regex/schema extraction.
  • PinchTab extraction uses rendered page text, so it is especially helpful for client-rendered sites and browser-only content.
  • Overpass queries can still hit practical limits on extremely large geographies. The code is structured so deeper recursive chunking can be added cleanly next.