Create a browser extension for Chrome, Firefox and Safari in no time.
WebExtensionTemplate is a tool that allows you to easily create browser extensions for Chrome, Firefox, and Safari. It provides a streamlined process for building extensions using TypeScript and either Svelte or React. With WebExtensionTemplate, you can quickly develop popup windows, extension settings pages, and even iOS and macOS container apps for Safari extensions.
To install WebExtensionTemplate and set up a project, follow these steps:
Extension/_locales/en/messages.json file with your extension’s name and description.Extension/README.md file with your app’s name.Extension/package.json file and update the following fields:name with your app’s nameauthor with your namelicense with the app’s licenseExtension/public/settings.html file and update the <title> with your app’s name.<link> tag in Extension/settings.html if you don’t want to use the provided CSS.Extension/images. Name them as toolbar_Qpx.png, where Q is the pixel size.Extension/images. Name them as app_icon_Qpx.png, where Q is the pixel size.For Firefox and Safari specific steps, refer to the original article.
WebExtensionTemplate is a powerful tool for quickly creating browser extensions using TypeScript and Svelte or React. It simplifies the development process by providing pre-built components like popup windows and settings pages. The build process is optimized for speed, and the resulting extensions can be easily packaged for Chrome, Firefox, and Safari. Additionally, WebExtensionTemplate offers support for iOS and macOS container apps, allowing you to create robust Safari extensions without needing knowledge of Swift or SwiftUI. With its comprehensive features and ease of use, WebExtensionTemplate is a valuable tool for developers looking to build browser extensions efficiently.