> ## 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.

# Getting started with Extension.js

> Ship your first browser extension quickly with Extension.js, then level up with official templates and workflow guides as your project grows.

## Local by design

Extension.js runs on your machine: develop, run, and build extensions with
the CLI. It ends at packaging on purpose. When a packaged build is ready for
the stores,
[extension.dev](https://extension.dev?utm_source=extension-js-org\&utm_medium=sponsor\&utm_campaign=docs-seam),
the platform that sponsors Extension.js, is the next step.

## Who this path is for

* **New to extension development:** [Create your first extension](https://extension.js.org/docs/getting-started/create-your-first-extension.md)
* **Exploring quickly with existing samples:** [Get started immediately](https://extension.js.org/docs/getting-started/immediately.md)
* **Choosing a starting stack:** [Templates](https://extension.js.org/docs/getting-started/templates.md)
* **Comparing frameworks (WXT, etc.):** [Extension.js vs WXT](https://extension.js.org/docs/compare/extension-js-vs-wxt.md)

## Prerequisites

> [!WARNING]
>
> Extension.js runs on Node.js 22.12 or newer, Deno 2.5 or newer, and Bun 1.2
> or newer (Bun from Extension.js 4.1.21). The CLI checks the runtime before any other code runs, and one
> below its own floor exits with code 1 and an upgrade message naming that
> runtime.

Check your version with `node --version`, or `deno --version` or `bun --version`, before you start.

## First successful outcome

**1. Scaffold or run an extension project**

Use `extension create` or choose a template to start from.

**2. Launch dev and load the extension**

Run `extension dev` and load the build output in a browser target.

**3. Verify update behavior**

Make one change and confirm the extension reloads.

**4. Build production output**

Run `extension build` for at least one browser.

> [!NOTE]
>
> **First run.** `extension dev` targets `chromium` by default and runs your
> extension in a version-pinned Chrome for Testing with an isolated profile, so
> it never touches the browser you use every day. When that browser is not on
> the machine yet, the first run asks to download it once and continues into
> the dev session as soon as it lands.
>
> Answer `n` and nothing is downloaded. Run `npx extension install chromium`
> whenever you want it, reach a browser you already have with `--browser=edge`
> or `--browser=brave`, pin any binary with `--chromium-binary <path>`, or
> start the dev server alone with `--no-browser`. A non-interactive shell, CI
> included, is never asked: it prints the install command and stops. See
> [why Extension.js downloads a browser](https://extension.js.org/docs/commands/install.md#why-extensionjs-downloads-a-browser)
> and [skip the managed download](https://extension.js.org/docs/commands/install.md#skip-the-managed-download).

## Recommended reading flow

1. [Get started immediately](https://extension.js.org/docs/getting-started/immediately.md)
2. [Create your first extension](https://extension.js.org/docs/getting-started/create-your-first-extension.md)
3. [Templates](https://extension.js.org/docs/getting-started/templates.md)
4. [Commands overview](https://extension.js.org/docs/commands/index.md)

## Next steps

* Learn command choices in [Commands reference](https://extension.js.org/docs/commands/index.md).
* Configure project defaults in [Extension configuration](https://extension.js.org/docs/features/extension-configuration.md).
* Validate release readiness with [Workflows](https://extension.js.org/docs/workflows/index.md).


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