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

# Extension.js features overview

> Explore core Extension.js capabilities including cross-browser builds, config files, HMR reload behavior, path resolution, and telemetry controls.

Understand the core platform capabilities that make Extension.js practical for real-world browser extension development.

## Feature chooser

| Goal | Start here |
| - | - |
| Ship one codebase to multiple browsers | [Cross-browser compatibility](https://extension.js.org/docs/features/cross-browser-compatibility.md) |
| Handle browser-specific manifest differences | [Browser-specific manifest fields](https://extension.js.org/docs/features/browser-specific-fields.md) |
| Keep non-manifest assets organized | [Special folders](https://extension.js.org/docs/features/special-folders.md) |
| Manage environment-specific behavior | [Environment variables](https://extension.js.org/docs/features/environment-variables.md) |
| Centralize build/runtime defaults | [Extension configuration](https://extension.js.org/docs/features/extension-configuration.md) |
| Extend bundler behavior safely | [Rspack configuration](https://extension.js.org/docs/features/rspack-configuration.md) |
| Understand update behavior in development mode | [Page reload and hot module replacement (HMR)](https://extension.js.org/docs/features/reload-and-hmr.md) |
| Avoid path drift between source and output | [Path resolution](https://extension.js.org/docs/features/path-resolution.md) |
| Build and package for target matrices | [Multi-platform builds](https://extension.js.org/docs/features/multi-platform-builds.md) |
| Review the telemetry privacy contract | [Telemetry and privacy](https://extension.js.org/docs/features/telemetry-and-privacy.md) |

## Recommended progression

1. Validate browser output guarantees (`cross-browser-compatibility`).
2. Lock project defaults (`extension-configuration`).
3. Add advanced behavior (`rspack-configuration`, `environment-variables`).
4. Optimize release flows (`multi-platform-builds`).

## Next steps

* Apply these capabilities in [Workflows](https://extension.js.org/docs/workflows/index.md).
* Choose the right execution command in [Commands reference](https://extension.js.org/docs/commands/index.md).
* Review the privacy contract in [Telemetry and privacy](https://extension.js.org/docs/features/telemetry-and-privacy.md).


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