wxt

Build cross-browser extensions with WXT and Manifest V3.

18|Updated Jul 12, 2023
One-click install
npx skills add https://github.com/jaem1n207/synchronize-tab-scrolling --skill wxt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wxt
Source: https://github.com/jaem1n207/synchronize-tab-scrolling/tree/main/.agents/skills/wxt
Command: npx skills add https://github.com/jaem1n207/synchronize-tab-scrolling --skill wxt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the complex process of building browser extensions, enabling developers to create a single codebase that works across multiple browsers like Chrome, Firefox, Safari, and Edge.

Core Features & Use Cases

  • Cross-Browser Compatibility: Write once, deploy everywhere.
  • Modern Development Workflow: Utilizes Vite for fast builds, hot-reloading, and TypeScript support.
  • Manifest V3 Support: Easily build extensions compatible with the latest browser standards.
  • Use Case: A developer wants to build a new browser extension to enhance productivity. They can use this Skill to quickly scaffold a project that supports React, includes content scripts, background workers, and popup UIs, and can be easily published to all major browser extension stores.

Quick Start

Use the wxt skill to initialize a new browser extension project named 'my-extension'.

Frequently Asked Questions about wxt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build cross-browser extensions that support Chrome, Firefox, Safari, and Edge?

Build cross-browser extensions by using the WXT framework to maintain a single codebase for Chrome, Firefox, Safari, and Edge. It supports Manifest V3, Vite for fast builds, and hot-reloading to streamline development across all major browsers.

Can I use React and TypeScript to create a browser extension with WXT?

Yes, you can use React and TypeScript to create a browser extension with WXT. The framework provides modern development workflow support, allowing you to scaffold popup and options pages using popular frontend libraries alongside TypeScript.

What is the best way to structure a Manifest V3 extension with content scripts and background workers?

The best way to structure a Manifest V3 extension is using the WXT framework, which facilitates organizing content scripts, background workers, and popup pages. It handles Manifest V3 compatibility automatically while providing hot-reloading during development.

Does WXT handle messaging and storage APIs for cross-browser compatibility?

Yes, WXT handles messaging and storage APIs for cross-browser compatibility. The framework abstracts these browser-specific implementations, allowing you to write extension logic once and deploy it across Chrome, Firefox, Safari, and Edge without changing API calls.

How do I publish a browser extension to multiple extension stores from a single codebase?

Publish a browser extension to multiple stores by utilizing the WXT framework's built-in publishing workflows. It compiles your single codebase into distinct packages compatible with the Chrome, Firefox, Safari, and Edge extension directories.

Why should I choose WXT over other browser extension tools for Manifest V3 development?

Choose WXT for Manifest V3 development because it combines Vite-powered hot-reloading, TypeScript support, and cross-browser compatibility into a single framework. It eliminates manual manifest management and provides scaffolding for React, Vue, Svelte, and Solid.