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

@constellix/ai-scraper

v0.1.4

Published

Wrapper for LLM-driven element queries.

Readme

Constellix AI Scraper

An open-source web automation and scraping library powered by LLM. Interact with and extract data from websites using natural or structured queries — streamline automation without writing complex code.

Live

Try playground → https://constellix.vercel.app/

Installation

npm i @constellix/ai-scraper

Prerequisites

You'll need a Gemini API key from Google. Get one from https://ai.google.dev/gemini-api/docs/api-key

Usage

import { setup, wrapper } from '@constellix/ai-scraper';
import { chromium } from 'playwright';

// Setup with your Gemini API key
setup('your-gemini-api-key');

async function run() {
  const browser = await chromium.launch();
  
  // Wrap your Playwright page to make it LLM-friendly
  const page = await wrapper(await browser.newPage());
  await page.goto('https://example.com');
  
  // Find elements using natural language
  const loginButton = await page.getElementsByQuery("Find the login button");
  await loginButton.click();

  //Automate logging using credentials

  //Define your own custom query
  const loginFormQuery = `{
    username_input_field,
    password_input_field,
    submit_btn
  }`
  const form = await page.getElementsByQuery(loginFormQuery);
  await form.username_input_field.fill("shashank");
  await form.password_input_field.fill("123@s&$NND");
  await form.submit_btn.click();
  
  // Extract structured data
  const productsQuery = `{
    products[] {
      name,
      price,
      description
    }
  }`;

  const products = await page.getDataByQuery(productsQuery);
  console.log(products);
  
  // Get CSS paths or XPaths
  const cssPath = await page.getCssPathByQuery("Find the search box");
  const xpath = await page.getXPathByQuery("Find the submit button");
  
  await browser.close();
}

run().catch(console.error);

Features

  • Automate user actions using AI
  • Extract structured data from web pages
  • Query HTML elements using natural language
  • Get CSS selectors or XPaths for elements
  • Compatible with Playwright and Puppeteer

Examples

Playwright Examples Puppeteer Examples

License

MIT