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

@addfox/cli

v0.2.4

Published

addfox CLI: addfox dev / build, parses argv and drives Rsbuild

Downloads

1,452

Readme

@addfox/cli

中文 | English


addfox CLI entry: parses argv, runs pipeline (load config → build Rsbuild config), wraps output with prefix, and runs Rsbuild for dev / build.

  • Commands: addfox dev, addfox build [-b chrome|edge|brave|vivaldi|opera|santa|firefox]
  • Depends on @addfox/core for config and entry resolution; depends on plugins for Rsbuild logic

Dev server and HMR (Tailwind / PostCSS)

addfox dev uses rsbuild dev (rsbuild.startDevServer()) with writeToDisk so the extension can load from .addfox/<outDir> (e.g. .addfox/dist). The extension runs from disk and from chrome-extension:// or page origins; Rsbuild’s default HMR WebSocket client would fail to connect in these contexts. Instead, plugin-extension-hmr handles full extension reload when build output changes, and content/background entries get an HMR-noop injection to prevent WebSocket connection errors.

Config in dev

| Option | Where | What it does | |--------|--------|----------------| | dev + writeToDisk | src/pipeline.tsbuildHmrOverrides | Sets dev.writeToDisk: true so all build output is written to disk for the extension to load. When hotReload is enabled, hmr: true and liveReload: true are also set so rsbuild re-compiles on source changes. | | Extension reload | Same file – tools.rspack | Injects plugin-extension-hmr so the extension reloads when build output changes. | | Watch ignore output | @addfox/rsbuild-plugin-extension-entryonBeforeCreateCompiler | Adds the build output path (distPath = .addfox/<outDir>) and the glob pattern "**/.addfox/**" to Rspack’s watchOptions.ignored, so file changes in the output directory do not trigger another build. |

Why watch ignore matters

  • Tailwind / PostCSS: PostCSS (e.g. @tailwindcss/postcss) expands the CSS dependency graph; in watch mode, more file changes mean more incremental builds.
  • Build output: writeToDisk: true writes all build output (including .hot-update.* files when HMR is active) to .addfox/<outDir>. Without watchOptions.ignored, changes in the output directory would be picked up by the watcher and trigger another build, causing an infinite loop.
  • Ignore strategy: watchOptions.ignored adds both the absolute path of the output root and the glob pattern "**/.addfox/**" to ensure the output directory is excluded from watching across all platforms.

If you still see rebuild loops

Ensure you are on a recent addfox version that includes the above. No project-side config is required beyond your normal postcss.config.mjs and Tailwind setup.