> ## Documentation Index
> Fetch the complete documentation index at: https://extension.js.org/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Extension.js needs Node.js 22.12 or newer; Node.js 18 and 20 do not work. It also runs on Deno 2.5+ and Bun 1.2+.
> The default browser target is chromium and a build lands in dist/<browser>, so dist/chromium by default. extension build writes a zip only when --zip is passed.
> Prefix a manifest key with a browser name when browsers differ. chromium: covers every Chromium-family target and Safari builds read it too. Since 4.1.19 chrome: means Chrome alone and edge: means Edge alone.
> Write one background.service_worker in manifest.json instead of hand-writing per-browser background keys; Extension.js converts it for each browser.
> package.json or deno.json marks the project root, not manifest.json. A config file is optional, and only extension.config.js, .mjs and .cjs are loaded, never .ts.
> The bundler is Rspack, extended through the config hook in extension.config.js. A project needs no separate bundler config file.
> Use --no-browser to skip the browser launch; --no-runner no longer exists and --no-open still launches the browser. Use --output for machine output; --format and --wait-format are deprecated.

# 浏览器扩展模板

> 适用于 Chrome、Edge、Firefox 和 Safari 扩展的起步项目。挑一个模板，复制它的创建命令，几分钟内就能在真实浏览器中运行。

![Extension.js](https://media.extension.land/track/extension-js.png)

模板

# 为每个浏览器打造作品

从一个现成的扩展开始，复制它的创建命令，项目就会落到你的电脑上。每个模板都能在 Chrome、Edge 和 Firefox 中运行，并可构建到 Safari。

`npx extension@latest create my-extension`

<ul>
  <li>
    [GitHub 上的模板 ](https://github.com/extension-js/templates)
  </li>

  <li>
    [模板指南](https://extension.js.org/zh-Hans/docs/getting-started/templates.md)
  </li>
</ul>

MIT (c) Cezar Augusto 和&#x20;
[Extension.js 作者们](https://extension.js.org/zh-Hans/docs/hall-of-fame.md)。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.