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

webpack-plugin-hover

v0.6.0

Published

Webpack 5 plugin that injects the Hover chat widget into your dev server, so AI can drive a real (non-headless) debug Chrome via CDP. Works with vanilla webpack-dev-server, Rspack, Rsbuild, and legacy CRA / Vue CLI projects.

Readme

webpack-plugin-hover

Webpack 5 plugin for Hover — the floating chat widget that lets an AI agent drive your real Chrome via CDP + Playwright MCP.

Compatibility

Hover ships separate packages per bundler because each one has its own HTML pipeline. This package targets every host that runs the webpack 5 compiler API:

| Stack | Status | |---|---| | vanilla webpack-dev-server | ✅ canonical target | | Rspack / Rsbuild | ✅ API-compatible, HtmlRspackPlugin works out of the box | | Create React App (legacy) | ✅ via craco or react-app-rewired (CRA is in maintenance mode but still uses webpack 5 + HtmlWebpackPlugin) | | Vue CLI (legacy) | ✅ via vue.config.js's configureWebpack (Vue CLI is in maintenance mode) | | Next.js with --webpack | ✅ but requires the --webpack flag (Next.js 16 ships Turbopack as the default; webpack plugins do not load under Turbopack) | | Next.js default (Turbopack) | ❌ not supported by webpack plugins. Turbopack-native integration is on the roadmap |

For Vite-based projects use vite-plugin-hover; for Astro use @hover-dev/astro; for Nuxt use @hover-dev/nuxt.

Install

pnpm add -D webpack-plugin-hover

html-webpack-plugin is an optional peer dep — if your setup already has it (CRA, Vue CLI, Rspack, vanilla wds with HtmlWebpackPlugin all do), it's used. Otherwise the plugin falls back to a processAssets HTML splice.

Usage

// webpack.config.js
import { HoverPlugin } from 'webpack-plugin-hover';

export default {
  mode: 'development',
  // ... your config ...
  plugins: [
    new HtmlWebpackPlugin({ template: './src/index.html' }),
    new HoverPlugin({ autoLaunchChrome: true }),
  ],
  devServer: { port: 8080 },
};

Run webpack serve, click the floating ✨ in the bottom-right.

Rspack / Rsbuild

Identical — Rspack's HtmlRspackPlugin exposes the same alterAssetTagGroups hook used by HtmlWebpackPlugin.

// rsbuild.config.ts
import { defineConfig } from '@rsbuild/core';
import { HoverPlugin } from 'webpack-plugin-hover';

export default defineConfig({
  tools: { rspack: { plugins: [new HoverPlugin({ autoLaunchChrome: true })] } },
});

Next.js (with --webpack)

next dev --webpack

Plus in next.config.js:

module.exports = {
  webpack: (config, { dev }) => {
    if (dev) {
      const { HoverPlugin } = require('webpack-plugin-hover');
      config.plugins.push(new HoverPlugin({ autoLaunchChrome: true }));
    }
    return config;
  },
};

Pure Turbopack (the Next 16 default) does not load webpack plugins; a dedicated @hover-dev/next package is on the roadmap.

Options

Same shape as the other Hover integrations:

| Option | Type | Default | Notes | |---|---|---|---| | port | number | 51789 | Auto-bumps up to 9 times if busy | | enabled | boolean \| ({ mode, watch }) => boolean | mode === 'development' && watch | webpack serve sets watch=true | | chromeDebugPort | number | 9222 | CDP port of the debug Chrome | | autoLaunchChrome | boolean | false | Pre-spawn a debug Chrome | | devUrl | string | derived from devServer.port | Override the URL Chrome opens to | | devRoot | string | compiler.context | Override the project root for skill saves | | agentId | string | 'claude' | One of @hover-dev/core's registered agents | | model | string | 'sonnet' | Default model | | maxBudgetUsd | number | none | Hard $ ceiling per command |

How it composes

webpack-plugin-hover  (this package)
   ├─ @hover-dev/core              · startService(), launchDebugChrome()
   └─ @hover-dev/widget-bootstrap  · buildWidgetBundle()

The widget bytes are byte-identical to what vite-plugin-hover, @hover-dev/astro, and @hover-dev/nuxt ship — all four consume @hover-dev/widget-bootstrap's mid-level API.

License

Apache-2.0 — same as the rest of Hover.