> ## 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-Hant/docs/getting-started/templates.md)
  </li>
</ul>

MIT (c) Cezar Augusto 與&#x20;
[Extension.js authors](https://extension.js.org/zh-Hant/docs/hall-of-fame.md)。


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