Catalog npm
Back to packageRELEASE DETAILS

1.1.5

npm

@0x2e8/phantom-ai-crawler

Adaptive AI-powered web crawler with behavioral mutation engine

adaptiveaianthropicclaudecrawlerpentestscraperstealth
Published9 Feb 2026
Direct dependencies20
Transitive dependenciesNot calculated

README

Current package documentation

🎭 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

EndpointMethodDescription
/healthGETServer status
/api/targetsGETList targets
/api/targetsPOSTCreate target
/api/targets/:idGETTarget details
/api/dna/:id/currentGETCurrent DNA
/api/mcp/analyze/:idPOSTRun 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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 20

Native requirements
20 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
ora
Environment
{
  "local_name": "ora",
  "alias": false,
  "peer_metadata": null
}
^5.4.1runtime
cors
Environment
{
  "local_name": "cors",
  "alias": false,
  "peer_metadata": null
}
^2.8.5runtime
chalk
Environment
{
  "local_name": "chalk",
  "alias": false,
  "peer_metadata": null
}
^4.1.2runtime
dotenv
Environment
{
  "local_name": "dotenv",
  "alias": false,
  "peer_metadata": null
}
^16.4.5runtime
express
Environment
{
  "local_name": "express",
  "alias": false,
  "peer_metadata": null
}
^4.21.0runtime
graphql
Environment
{
  "local_name": "graphql",
  "alias": false,
  "peer_metadata": null
}
^16.12.0runtime
inquirer
Environment
{
  "local_name": "inquirer",
  "alias": false,
  "peer_metadata": null
}
^8.2.6runtime
commander
Environment
{
  "local_name": "commander",
  "alias": false,
  "peer_metadata": null
}
^12.0.0runtime
socket.io
Environment
{
  "local_name": "socket.io",
  "alias": false,
  "peer_metadata": null
}
^4.8.0runtime
@prisma/client
Environment
{
  "local_name": "@prisma/client",
  "alias": false,
  "peer_metadata": null
}
^5.22.0runtime
graphql-request
Environment
{
  "local_name": "graphql-request",
  "alias": false,
  "peer_metadata": null
}
^7.4.0runtime
@anthropic-ai/sdk
Environment
{
  "local_name": "@anthropic-ai/sdk",
  "alias": false,
  "peer_metadata": null
}
^0.32.0runtime
socks-proxy-agent
Environment
{
  "local_name": "socks-proxy-agent",
  "alias": false,
  "peer_metadata": null
}
^8.0.5runtime
tsx
Environment
{
  "local_name": "tsx",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development
prisma
Environment
{
  "local_name": "prisma",
  "alias": false,
  "peer_metadata": null
}
^5.22.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.6.0development
@types/cors
Environment
{
  "local_name": "@types/cors",
  "alias": false,
  "peer_metadata": null
}
^2.8.17development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^20.19.32development
@types/express
Environment
{
  "local_name": "@types/express",
  "alias": false,
  "peer_metadata": null
}
^4.17.21development
@types/inquirer
Environment
{
  "local_name": "@types/inquirer",
  "alias": false,
  "peer_metadata": null
}
^9.0.7development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "53df2c7e6ed78298e666f6489e347688f2e41f14",
  "tarball": "https://registry.npmjs.org/@0x2e8/phantom-ai-crawler/-/phantom-ai-crawler-1.1.5.tgz",
  "fileCount": 39,
  "integrity": "sha512-EHIPJ4ePTAs+PmIItsvbOVl//UVFRaewG+Ij0SeIYtwzrYAgoPZkpJZ9FnNttzvUPnbk8r69Hjn61X/f4950BA==",
  "signatures": [
    {
      "sig": "MEQCIHxX5IrgsX8BsvitZrJDsi+qmdfPDeywFhcVYYPKIsO+AiAX6rBVqclSm8m2HSQb8gOjDUUEAwyNoLizG3GRJq3/Mg==",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 308245
}

Repository

PENDING
0x2e8-gc/phantom-ai-crawler

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
0x2e8/phantom-ai

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:34 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:66bb3bfa673aee6da2cfdfbd00f3bbcb77a9d09873cf2ce5a3bc57035c849ab7

Other collected versions

1.5.210 Feb1.5.110 Feb1.5.010 Feb1.4.010 Feb1.3.110 Feb1.3.010 FebView all collected versions →