Skip to content
AddHunt
Chrome extensions

Addfox

Browser extension framework built on Rsbuild

Open source

  • Open source
  • Licence: MIT

In short

Addfox is an open-source framework for building browser extensions on top of Rsbuild, with hot reload, automatic browser launching and AI-friendly error output. It is aimed at developers who build extensions for Chromium-based browsers and Firefox.

What you get

  • Hot reload for content scripts and the background script
  • Automatic launch of Chromium-based browsers and Firefox
  • Works with Vanilla, Vue, React, Preact, Svelte and Solid
  • createContentUI for iframe, Shadow DOM or native injection
  • Zip package generated on every build
  • Terminal error output formatted for AI assistants

The details

Addfox takes care of the build setup for browser extensions so developers can focus on the extension itself. It is built on Rsbuild, and a new project starts with npx addfox@latest create.

Development workflow

A dedicated reloader manages extension updates, giving hot module replacement for both content scripts and the background script. Addfox finds the default install path of Chromium-based browsers and Firefox and launches them without extra configuration. It is not tied to one UI library: Vanilla, Vue, React, Preact, Svelte, Solid and React with UnoCSS are all supported. A built-in createContentUI method helps inject an iframe, Shadow DOM or native content into pages, and every build also produces a zip package ready for installation or distribution. Rsdoctor and Rstest from the Rstack ecosystem are included for bundle analysis and unit or end-to-end testing.

Working with AI assistants

Addfox generates structured metadata, an llms.txt file and markdown descriptions of the extension so coding agents can understand the project. Running the dev server with the debug flag collects extension errors in the terminal, without opening browser DevTools, and formats them as a prompt that can be pasted into an AI assistant in any editor. Addfox Skills cover tasks such as debugging.

Project

The code is on GitHub under the MIT license. The site offers a guide, configuration reference, examples and a blog, with documentation in several languages including Chinese, Japanese, Korean, Russian and Spanish.

Alternatives to Addfox

Questions

Which UI frameworks does Addfox support?

Vanilla JavaScript, Vue, React, Preact, Svelte, Solid, and React combined with UnoCSS.

How does Addfox help AI coding assistants?

It provides llms.txt and markdown metadata about the extension, and a debug mode that gathers extension errors in the terminal and formats them as a prompt for an AI assistant.

Is Addfox free?

Yes. It is open source under the MIT license.

More like this