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

nojx

v0.1.3

Published

Webscrapping without JS, just an api call or a CLI command.

Readme

🧰 NoJX

🕸️ Webscrapping without JS, just an api call or a CLI command.

In multiple occasions, I have found myself in need of a web scrapper. However, in today’s digital landscape, every webpage contains some form of JavaScript, making it more complex to run a simple web crawler like those used in the past. Regardless of the programming language, I require a way to wait until the JavaScript is loaded. Consequently, a solution like Selenium emerges, which is an excellent tool. However, it is a dependency that necessitates a headless browser, typically Chrome. This, in turn, increases the server requirements, as running a headless browser consumes significant resources and can be costly. Additionally, these tools are primarily designed for testing purposes, rendering most of their features redundant.

Despite my personal preference for JavaScript, I must acknowledge the importance of its ecosystem. In this case, one of the best tools for web scraping is Puppeteer. This library does not require any configuration to interact with the browser, making it an ideal fit for this project. We can scrape HTML from any language and render the entire DOM on a browser, thereby reducing the load on other resources in a project that requires such tasks.

As an initial version, NoJX will simply return the html processed content, color histogram and a screenshot on the api version.

📦 Install (CLI)

npm install -g nojx

🚀 Usage

CLI

nojx <url> [--colors]
Examples
nojx https://example.com
# → prints HTML content of the page

nojx https://example.com --colors
# → prints the dominant colors from the page as JSON

Local API

Start the Express server:

nojx server

Endpoints available:

  • GET /api/up → health check
  • POST /api/fetch{ url } → returns { html, colors }
  • POST /api/screenshot{ url } → returns image (screenshot)

🌐 Hosted API (via Vercel)

You can use the hosted version at, hoever for large pages it might fail due the timeout limit of 60 seconds of vercel

https://nojx-page.vercel.app/

Example Request

curl -X POST https://nojx-page.vercel.app/api/fetch \
  -H "Content-Type: application/json" \
  -d '{"url": "https://news.ycombinator.com"}'

🧱 Use Cases

  • Scraping HTML for content or SEO
  • Extracting color palettes from websites
  • Automating screenshots for visual diffs
  • CLI + API convenience for scripting or pipelines

📦 Dev / Contributing

npm install
npm link   # to test CLI as `nojx`