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

@pinkpixel/prysm-llm

v1.1.1

Published

Structure-focused web scraper optimized for LLMs for use with MCP with minimal console output. Configure output directory with PRYSM_OUTPUT_DIR environment variable.

Downloads

199

Readme

Prysm Logo

🔍 Prysm-LLM – Structure-Aware Web Scraper for LLM Integration

npm version License: MIT

Prysm-LLM is a specialized version of the Prysm scraper designed for integration with Large Language Models (LLMs) through Model Control Protocol (MCP). This version removes all console logging for clean integration with LLM tools and functions.


⚡ Features

  • 🧠 AI-style Structure Detection: Recipes, articles, docs, products, blogs — identified and extracted with precision.
  • 🕵️‍♂️ Cloudflare Bypass: Defeats the orange wall with stealth plugins and anti-bot evasion.
  • 🚫 Resource Blocking: Faster scrapes with image/script/fonts tracking turned off.
  • 🔄 Smart Pagination: Scroll, click, or URL pattern — handled automatically or manually.
  • 📸 Image Extraction: Scrape images with contextual information and optional local downloading.
  • 🛠 Pluggable & Modular: Add your own extractors, pagination styles, or content processors in seconds.
  • 🌐 REST API: OpenAPI-powered REST interface for remote control and integration.
  • 🔨 Brute Force Architecture: Core design applies all extraction techniques to every page without detection logic for maximum content retrieval
  • 🤖 LLM Integration: Optimized for use with Large Language Models through MCP.

🚀 Quick Start

# Install from npm
npm install @pinkpixel/prysm-llm

# Update to the latest version
npm install @pinkpixel/prysm-llm@latest

# Or install dependencies locally
npm install

🔧 Configuration

You can configure output directories using environment variables:

  • PRYSM_OUTPUT_DIR - Set the main output directory for results (default: ~/prysm/output)
  • PRYSM_IMAGE_OUTPUT_DIR - Set the output directory for downloaded images (default: ~/prysm/output/images)

Example:

# Set output directories using environment variables
export PRYSM_OUTPUT_DIR="/custom/path/to/results"
export PRYSM_IMAGE_OUTPUT_DIR="/custom/path/to/images"

These environment variables are especially useful when integrating with MCP or other systems where command-line arguments might not be available.

🧩 MCP Integration

This package is optimized for use through Model Control Protocol (MCP) with Large Language Models. Unlike the standard Prysm scraper, this version:

  • Removes all console output for clean LLM integration
  • Returns results as objects rather than logging to console
  • Preserves all the powerful scraping capabilities of Prysm
  • Allows direct integration with LLM tools and functions
  • Configurable output paths via environment variables

MCP Function Example

const { scrape } = require('@pinkpixel/prysm-llm');

// Configure environment variables for MCP
process.env.PRYSM_OUTPUT_DIR = '/tmp/mcp-results';
process.env.PRYSM_IMAGE_OUTPUT_DIR = '/tmp/mcp-images';

// Example function for MCP integration
async function scrapeFocused(url, options = {}) {
  const result = await scrape(url, {
    maxScrolls: 5,
    scrollDelay: 1000,
    ...options
  });
  
  return result;
}

// Example function for MCP integration
async function scrapeBalanced(url, options = {}) {
  const result = await scrape(url, {
    maxScrolls: 10,
    scrollDelay: 2000,
    ...options
  });
  
  return result;
}

// Example function for MCP integration
async function scrapeDeep(url, options = {}) {
  const result = await scrape(url, {
    maxScrolls: 20,
    scrollDelay: 3000,
    ...options
  });
  
  return result;
}

🧠 Smart Scan

Prysm includes an intelligent analysis system that examines page structure before scraping to optimize the extraction process. Based on this analysis, Prysm dynamically selects the optimal extraction strategy for maximum efficiency.

Prysm will automatically:

  • Detect page structure (article, recipe, product listing, etc.)
  • Choose the best extraction strategy
  • Handle pagination if present
  • Bypass anti-bot protections when needed
  • Block unnecessary resources for faster scraping
  • Follow links to additional pages when configured

🌐 REST API

Prysm includes a full-featured REST API that allows you to:

  • Start scraping jobs remotely
  • Check job status and progress
  • Retrieve scraped content
  • Manage jobs (cancel, delete)
  • Receive webhook notifications

See the API-USAGE.md file for detailed documentation.


📚 Documentation


📜 License

MIT License