{"id":47663451,"url":"https://github.com/addfox/addfox","last_synced_at":"2026-04-07T18:01:12.247Z","repository":{"id":346092795,"uuid":"1188197833","full_name":"addfox/addfox","owner":"addfox","description":"🧩 Accelerate your browser extension development. Built on Rsbuild — fast, simple, and free","archived":false,"fork":false,"pushed_at":"2026-04-02T09:02:25.000Z","size":4146,"stargazers_count":68,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-03T00:37:50.669Z","etag":null,"topics":["add-on","browser-extension","chrome","chrome-extension","firefox","firefox-addon","hmr","rsbuild"],"latest_commit_sha":null,"homepage":"https://addfox.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/addfox.png","metadata":{"files":{"readme":"README-zh_CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-21T18:43:57.000Z","updated_at":"2026-03-30T09:05:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/addfox/addfox","commit_stats":null,"previous_names":["addfox/addfox"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/addfox/addfox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addfox%2Faddfox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addfox%2Faddfox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addfox%2Faddfox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addfox%2Faddfox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/addfox","download_url":"https://codeload.github.com/addfox/addfox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addfox%2Faddfox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31522574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["add-on","browser-extension","chrome","chrome-extension","firefox","firefox-addon","hmr","rsbuild"],"created_at":"2026-04-02T11:46:08.750Z","updated_at":"2026-04-07T18:01:12.238Z","avatar_url":"https://github.com/addfox.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"200\" src=\"addfox.png\" alt=\"Addfox\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eAddfox\u003c/h1\u003e\n\u003cp align=\"center\"\u003e基于 Rsbuild 的浏览器扩展开发框架\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/addfox/addfox/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/addfox/addfox?style=flat-square\" alt=\"GitHub stars\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/addfox\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/addfox?style=flat-square\" alt=\"npm version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/addfox\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/addfox?style=flat-square\" alt=\"npm downloads\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://addfox.dev\"\u003e官方文档\u003c/a\u003e · \u003ca href=\"https://www.npmjs.com/package/addfox\"\u003enpm\u003c/a\u003e · \u003ca href=\"https://github.com/addfox/skills\"\u003eSkills\u003c/a\u003e · \u003ca href=\"./README.md\"\u003eEnglish\u003c/a\u003e | 中文\n\u003c/div\u003e\n\n---\n\n## 架构\n\nAddfox 基于 Rsbuild（Rspack/Rstack）封装扩展能力；构建产物在 Chrome 或 Firefox 中加载。\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"addfox-architecture.png\" alt=\"addfox → Rsbuild → 扩展 → 浏览器\" width=\"720\"\u003e\n\u003c/p\u003e\n\n---\n\n## 特点\n\n- 🔥 **快速开发与热更新** — `addfox dev` 监听变更并自动重建、热重载扩展。\n- 📦 **构建即打包 zip** — `addfox build` 同时输出扩展目录与 `.addfox` 下可上架 zip。\n- 📁 **文件式入口** — 从 `app/` 自动发现 background/content/popup/options/sidepanel/devtools，并支持自定义入口。\n- 🌐 **跨浏览器支持** — `-b` 可指定 Chromium 系与 Firefox，支持按浏览器拆分 manifest。\n- ⚛️ **框架无关** — 支持 Vue、React、Svelte、Solid 和原生 JS，兼容 TS/JS。\n- 🤖 **AI 友好调试** — `--debug` 终端展示按入口聚合的错误信息。\n- 🧪 **测试流程内置** — `addfox test` 转发参数到 Rstest，覆盖单测与 e2e 流程。\n- 📊 **Rsdoctor 分析** — 在 dev/build 加 `--report` 可生成打包分析报告。\n- 🧩 **Skills 集成** — 可通过脚手架或 `skills add` 使用 [addfox/skills](https://github.com/addfox/skills)。\n- 🔐 **环境变量控制** — 加载 `.env`，通过 `envPrefix` 控制变量暴露范围。\n\n## 安装与使用\n\n**新项目：**\n\n```bash\npnpm create addfox-app\n# 或：npx create-addfox-app\n```\n\n按提示选择框架（Vanilla / Vue / React / Preact / Svelte / Solid）、语言、包管理工具、入口及可选 [Skills](https://github.com/addfox/skills)，会生成完整目录与 `addfox.config`。\n\n**已有项目：**\n\n```bash\npnpm add -D addfox\n```\n\n在项目根目录添加 `addfox.config.ts`（或 `.js` / `.mjs`），入口放在 `app/`（或配置 `appDir`）。然后：\n\n- `addfox dev` — 开发模式，watch + 热更新\n- `addfox build` — 构建到 `.addfox/extension`（可选打 zip）\n\n使用 `-b chrome` 或 `-b firefox` 指定目标浏览器。\n\n---\n\n**完整文档、配置说明与示例：** [https://addfox.dev](https://addfox.dev)  \n**Skills（AI 工作流模块）：** [https://github.com/addfox/skills](https://github.com/addfox/skills)\n","funding_links":[],"categories":["Resources"],"sub_categories":["Ecosystem"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddfox%2Faddfox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faddfox%2Faddfox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddfox%2Faddfox/lists"}