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

@hover-dev/cli

v0.7.5

Published

CLI for Hover. Detects your bundler, installs the right Hover integration package, and wires it into your config — one command.

Downloads

766

Readme

@hover-dev/cli

One-command setup for Hover — detects your bundler, installs the right integration package, and wires it into your config file.

Usage

No installation required. npx runs the latest published version on demand:

npx @hover-dev/cli add

That's it. The CLI:

  1. Reads your package.json to figure out your bundler (Vite, Astro, Nuxt, Next.js, or Webpack).
  2. Reads your lockfile to pick the right package manager (pnpm, yarn, bun, or npm).
  3. Installs the matching Hover package as a dev dependency.
  4. Updates your config file (vite.config.ts / astro.config.mjs / nuxt.config.ts / next.config.{ts,mjs,js} / webpack.config.js) to load the plugin.

Then run your dev server and click the floating ✨ in the bottom-right corner.

Monorepos (turbo / pnpm-workspace / yarn workspaces)

Run from the repo root. The CLI enumerates the workspaces declared in pnpm-workspace.yaml / package.json workspaces / turbo.json and looks for a supported bundler in each:

  • One match — dispatches into that workspace automatically.
  • Multiple matches in a TTY — interactive picker (↑/↓, Enter). Esc to cancel.
  • Multiple matches in CI / piped invocation — lists candidates and asks for --cwd apps/web.
npx @hover-dev/cli add --cwd apps/web   # target a specific workspace

Sub-workspaces don't need their own lockfile — the CLI walks up to find one, so a pnpm-managed monorepo with a single root pnpm-lock.yaml works without surprise.

Force a specific bundler

If detection picks the wrong one (e.g. your project has multiple bundlers, or you're starting from a fresh repo), use a flag:

npx @hover-dev/cli add --vite        # vite-plugin-hover
npx @hover-dev/cli add --astro       # @hover-dev/astro
npx @hover-dev/cli add --nuxt        # @hover-dev/nuxt
npx @hover-dev/cli add --next        # @hover-dev/next
npx @hover-dev/cli add --webpack     # webpack-plugin-hover

Preview without modifying anything

npx @hover-dev/cli add --dry-run

Prints what would be installed + which config file would be modified, then exits without changing anything.

What if my config file is unusual?

The CLI uses magicast to safely mutate defineConfig({ ... }) and bare-object configs. If your config has an unusual shape (re-exported config, conditional logic, etc.), the CLI will:

  1. Still install the right Hover package.
  2. Skip the config mutation and print the exact lines you need to paste in.

This is also what happens if you have no config file at all — many projects rely on bundler defaults until they need to customise.

Use as a project dep (optional)

npx is the default and recommended way. If you want to lock the CLI version per-project (e.g. to make a setup command for new teammates), install it as a dev dep:

pnpm add -D @hover-dev/cli
pnpm hover add

License

Apache-2.0 — same as the rest of Hover.