WXT
Browser-extension framework · Free
A browser-extension framework for multiple UI stacks: supports entrypoints, manifests, and builds for different browsers.
Also known as: wxt-dev/wxt; wxt; web-extension-framework

What you can use for free
Code and local use under MIT.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Prepare an extension for multiple browsers
- Connect UI/background/content scripts and check browser-specific builds
Example workflow
A possible workflow; this is not a report of hands-on testing.
Prepare an extension for multiple browsers.
Before you start
- The extension's manifest and workflow.
- The target browser and UI stack.
Steps
- Describe entrypoints and manifest permissions for the workflow.
- Connect UI/background/content scripts and check browser-specific builds.
- Build the package and test it in a separate browser profile.
Check your result
- Permissions match the actions and store rules.
- The extension works after reload and does not break the page.
Choosing WXT
Prepare an extension for multiple browsers
Choose this when
- Prepare an extension for multiple browsers
- Connect UI/background/content scripts and check browser-specific builds
Requirements
- Place an entrypoint as a single file or a directory containing index inside entrypoints/. Put adjacent helper JS/CSS files inside that entrypoint's directory so WXT does not mistake them for additional entrypoints.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: MIT for the code; dependencies have separate licenses.
- Entrypoints are detected at the top level or one level down. A deep hierarchy such as youtube/content/index.ts is not treated as web-framework page routing.
Frequently asked questions
What can you use for free in WXT?
Code and local use under MIT.
What additional costs might arise with WXT?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for WXT?
MIT for the code; dependencies have separate licenses.
How do you get started with WXT?
Describe entrypoints and manifest permissions for the workflow. Connect UI/background/content scripts and check browser-specific builds. Build the package and test it in a separate browser profile.
Where do you define matches for a content script in WXT?
The documentation describes manifest options directly in the corresponding entrypoint file. The filename determines its type; WXT builds the manifest from these descriptions rather than requiring every parameter to be duplicated in a separate manifest.json.
License
MIT for the code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- WXT
- extension
- Development