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

scrape-le

v2.5.3

Published

Check whether a page is scrapeable before the scraper is written, and say when it cannot tell.

Downloads

255

Readme

scrape-le

Check whether a page is scrapeable before the scraper is written, and say when it cannot tell.

npx scrape-le https://example.com/search
npx scrape-le --no-render https://example.com/search
npx scrape-le --input urls.txt

This is the same command line as the Rust crate scrape-le, and it behaves identically: same flags, same requests, same output, same exit codes. Install whichever toolchain you already have.

What it checks

robots.txt, anti-bot vendors, rate limits and authentication walls, for one URL or a batch. Every finding carries the signal that produced it: not "Cloudflare detected" but which header, script, element or window global.

The browser

Rendering is the default, and it drives a Chromium-family browser you already have: Chrome, Chromium, Brave or Edge, or whatever CHROME names. It never downloads one. scrape-le doctor says which it found.

Without a browser, or with --no-render, robots.txt, status, headers and redirects still answer, but anti-bot and authentication run partially and the verdict can never be clear. A rendered check writes a full-page PNG into the working directory, one per URL per day, and the report names the file.

Output

stdout carries one JSON report per URL whenever it is piped or redirected, and nothing when it is a terminal. stderr carries the human summary.

$ scrape-le --no-render 'http://127.0.0.1:8080/search?q=x'

restricted — 2 findings  (http://127.0.0.1:8080/search?q=x · 6ms · exit 1)
  warns   antibot    Cloudflare (cf-ray header)
  blocks  robots     Disallow: /search for User-agent: *
  robots  Crawl-delay: 2s (User-agent: *)
  checks  antibot partial (no render)  ·  rate-limit ✓  ·  robots ✓  ·  auth partial (no render)
  note    verdict cannot be `clear` until every check runs fully
{"schema":1,"url":"http://127.0.0.1:8080/search?q=x","final_url":"http://127.0.0.1:8080/search?q=x","status":200,"title":"Search","verdict":"restricted","findings":[{"kind":"antibot","severity":"warns","detail":"Cloudflare (cf-ray header)","evidence":{"signal":"cf-ray","source":"response-header"}},{"kind":"robots","severity":"blocks","detail":"Disallow: /search for User-agent: *","evidence":{"agent":"*","rule":"Disallow: /search"}}],"checks":{"antibot":"partial","rate_limit":"ran","robots":"ran","auth":"partial"},"checks_skipped":["antibot","auth"],"robots":{"exists":true,"allows_crawling":false,"agent":"*","crawl_delay":2.0,"disallowed_paths":["/search"],"sitemaps":[]},"console_errors":[],"crawl_delay_ignored":false,"timing_ms":{"fetch":5,"total":6}}

Batches

--input takes a JSON array, a CSV with a url column or one URL per line, detected by content, from a file or from - for stdin. Hosts are checked in parallel and the URLs of one host one at a time, never two at once, and a declared Crawl-delay is waited out between them unless you pass --ignore-crawl-delay. Reports stream as they complete and carry their input index.

Exit codes

  • 0: clear. Every check ran and nothing would stop a naive scraper.
  • 1: restricted, blocked or inconclusive. Not a yes.
  • 2: the question was malformed: not an http(s) URL, a name that does not resolve, a timeout. A batch exits with its worst outcome.

A clear verdict is about mechanisms, from one load, at one moment. It is a floor, not a prediction, and it is not permission.

For agents

scrape-le mcp serves the Model Context Protocol on stdio with three tools: analyze_robots_txt for robots.txt content, scrape_le_check for one URL or several, and scrape_le_doctor. Hosts that want the robots.txt analysis alone, with no browser, can install scrape-le-mcp.

scrape-le --help lists every option.

MIT licensed. Part of letools.