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

web-cloner

v0.2.2

Published

AI-powered website cloner. Reverse-engineer any site into clean, modern code using AI agents.

Readme

web-cloner

AI-powered website cloner. Reverse-engineer any website into clean, modern code using AI agents.

npm i web-cloner    # install
npx web-cloner      # install skill to your agent

Quick Start

Install

npx web-cloner --dest ./skills

This installs the skill to ./skills/web-cloner/.

Use in your AI agent

/clone https://example.com --output ./my-clone

Or trigger naturally:

  • "clone this website"
  • "rebuild this page"
  • "pixel-perfect clone"
  • "reverse engineer website"

Supported AI Tools

Claude Code (recommended)

# Project-local (recommended)
npx web-cloner --dest ./.claude/skills

# Global (all projects)
npx web-cloner --dest ~/.claude/skills

Cursor

npx web-cloner --dest ~/.cursor/skills

Then restart Cursor and enable Agent Skills in Settings → Rules.

Codex CLI

# Project-local
npx web-cloner --dest ./.agents/skills

# User-wide
mkdir -p ~/.agents/skills && npx web-cloner --dest ~/.agents/skills

Gemini CLI

npx web-cloner --dest ~/.gemini/skills

Windsurf

npx web-cloner --dest ~/.codeium/windsurf/skills

Features

  • Pixel-perfect cloning — exact match in colors, spacing, typography, animations
  • Framework-agnostic — outputs to Next.js, Vue, Svelte, or plain HTML/CSS
  • Multi-URL support — clone multiple sites in parallel
  • Asset extraction — downloads images, videos, fonts, SVGs
  • Interaction detection — scroll-driven, click-driven, hover-driven behaviors
  • Visual QA — side-by-side comparison with original

How It Works

The /clone skill runs a 5-phase pipeline:

  1. Phase 0.5: Direction Confirm — scope, framework, output path
  2. Phase 1: Reconnaissance — screenshots, design tokens, interaction sweep
  3. Phase 2: Foundation — fonts, colors, globals, downloaded assets
  4. Phase 3: Spec + Dispatch — component specs → parallel builder agents
  5. Phase 4: Assembly — merge worktrees, wire up the page
  6. Phase 5: QA — visual comparison, verify interactions

Output Structure

{output}/
├── src/
│   ├── app/
│   │   ├── layout.tsx          # Root layout with fonts + metadata
│   │   └── page.tsx            # Page assembly
│   ├── components/
│   │   ├── Header.tsx           # Fixed header (scroll-driven states)
│   │   ├── Hero.tsx            # Hero section
│   │   ├── Features.tsx         # Feature cards (scroll-driven)
│   │   ├── Pricing.tsx          # Tabbed pricing (click-driven)
│   │   ├── Footer.tsx          # Static footer
│   │   └── icons.tsx           # Extracted SVG icons
│   └── lib/
│       └── utils.ts            # cn() utility
├── public/
│   ├── images/                 # Downloaded images
│   ├── videos/                 # Downloaded videos
│   └── seo/                    # Favicons, OG images
├── docs/
│   ├── research/
│   │   ├── BEHAVIORS.md        # Interaction patterns
│   │   ├── PAGE_TOPOLOGY.md    # Section map
│   │   ├── WARNINGS.md         # Download errors
│   │   └── components/         # Spec files
│   │       ├── Hero.spec.md
│   │       ├── Features.spec.md
│   │       └── ...
│   └── design-references/
│       ├── homepage-desktop.png
│       ├── homepage-mobile.png
│       └── Hero-section.png
└── package.json

Arguments

| Argument | Default | Description | |----------|---------|-------------| | url(s) | required | Target URL(s) to clone | | --framework | nextjs | Output: nextjs, vue, svelte, html | | --output | ./cloned-{hostname}/ | Output directory |


Examples

# Clone a single site
/clone https://example.com

# Clone with specific framework
/clone https://example.com --framework vue --output ./my-vue-clone

# Clone multiple sites (parallel)
/clone https://site1.com https://site2.com https://site3.com --output ./sites/

Options

--dest <dir>       Destination directory
--repo <owner/repo> Download from GitHub (default: O-Pencil/skills)
--ref <branch>     Git ref (default: main)
--help, -h         Show this help

Examples:

# Install from local repo
npx web-cloner --dest ./skills

# Install from GitHub release
npx web-cloner --dest ~/.claude/skills --repo O-Pencil/skills --ref v1.0.0

Dependencies

  • Browser automation required — Puppeteer MCP, Playwright MCP, Chrome MCP, etc.
  • Your AI agent will detect available browser tools automatically.

License

MIT · GitHub