starter repo for building web browser extensions (MV3) with React v18 and Typescript
The Web Extensions React starter is a starter repository that provides a foundation for building browser extensions using React and Typescript. It includes various features and components such as content scripts, popup and options pages, common communication channels, and storage for all apps and scripts. This starter repo is compatible with manifest v3, making it compatible with both Chromium-based browsers and soon Firefox. It provides a guide for developing your own extension, updating information inside the manifest file, and building and testing React apps within the different folders.
To install the Web Extensions React starter, follow these steps:
manifest.json file, such as the name, description, and homepage./content_scripts/app, /options, and /popup folders. These folders are regular React apps bundled via Vite, so refer to their respective package.json and vite.config.js files for configuration../build.sh).yarn build from the root folder. This will execute the ./build.sh script../build folder to load the “unpacked” version of the extension in the browser. Refer to the specific instructions for publishing to the Chrome Web Store or Firefox Add-ons.yarn zip from the root folder.The Web Extensions React starter is a comprehensive starter repository for building browser extensions using React and Typescript. It provides a set of features, including separate React apps for content scripts, popup, and options pages, Typescript support, common communication channels, and compatibility with manifest v3. By following the provided installation guide and utilizing the resources provided, developers can easily create and publish their own browser extensions.