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

@0x2e8/phantom-ai-crawler

v1.5.2

Published

Adaptive AI-powered web crawler with behavioral mutation engine

Readme

🎭 Phantom AI

Adaptive AI-powered web crawler with behavioral mutation engine.

Powered by Claude Sonnet 4.5+ - the crawler evolves its behavior to match what targets expect.

✨ Features

  • 🧠 AI-Driven: Uses Claude Sonnet 4.5 for behavioral analysis
  • 🔄 Self-Mutating: DNA evolves based on target responses
  • 🚦 Green Light System: Trust-based progression from RED → GREEN
  • 📊 Real-time Dashboard: Web UI for monitoring and control
  • 🎯 Multi-target: Crawl multiple sites simultaneously
  • 🔒 Stealth: Adapts to avoid detection

🚀 Quick Start

Installation

# Via npx (no install)
npx phantom-ai-crawler

# Or install globally
npm install -g phantom-ai-crawler
phantom-ai

# Or local install
npm install phantom-ai-crawler
npx phantom-ai

First Run

# 1. Setup (configure API key)
phantom-ai setup

# 2. Start server
phantom-ai start

# 3. Open dashboard
# http://localhost:8081

🛠️ Commands

phantom-ai               # Start server (default)
phantom-ai start         # Start backend + dashboard
phantom-ai setup         # Run configuration wizard
phantom-ai status        # Check configuration

Options

phantom-ai start -p 3000      # Backend on port 3000
phantom-ai start -u 8080      # Dashboard on port 8080
phantom-ai start --setup      # Force reconfiguration

🔧 Configuration

The setup wizard will ask for:

  1. Anthropic API Key - Get from https://console.anthropic.com
  2. Claude Model - Recommended: claude-4-5-sonnet-20250929
  3. Backend Port - Default: 4000
  4. Dashboard Port - Default: 8081

Config is saved to .env in your working directory.

📁 Project Structure

phantom-ai/
├── .env                 # Your configuration
├── phantom.db          # SQLite database
├── src/
│   ├── cli.ts          # CLI entry point
│   └── server/         # Backend API
├── dashboard/          # Web UI
└── prisma/            # Database schema

🔌 API Endpoints

| Endpoint | Method | Description | |----------|--------|-------------| | /health | GET | Server status | | /api/targets | GET | List targets | | /api/targets | POST | Create target | | /api/targets/:id | GET | Target details | | /api/dna/:id/current | GET | Current DNA | | /api/mcp/analyze/:id | POST | Run MCP analysis |

🧬 How It Works

  1. Discovery (🔴 RED): Initial reconnaissance phase
  2. Learning (🟡 YELLOW): Testing behavioral patterns
  3. Established (🟢 GREEN): Trusted access achieved
  4. Maintenance: Continuous adaptation

The MCP (Model Context Protocol) analyzes each interaction and suggests DNA mutations to improve trust scores.

📝 Requirements

  • Node.js 18+
  • Anthropic API key
  • Claude Sonnet 4.5+ access

🐛 Troubleshooting

Port already in use:

phantom-ai start -p 3000 -u 8080  # Use different ports

Database issues:

rm phantom.db  # Reset database
phantom-ai setup

API key not working:

phantom-ai status  # Check configuration
phantom-ai setup   # Reconfigure

🏗️ Development

git clone https://github.com/0x2e8-gc/phantom-ai-crawler.git
cd phantom-ai
npm install
npm run dev          # Development mode
npm run build        # Build for production

📦 Publishing to NPM

# 1. Update version
npm version patch

# 2. Build
npm run build

# 3. Publish
npm publish

# Or dry run first
npm publish --dry-run

📄 License

MIT


Built with 🎭 by 0x2e8