
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
react-typescript-chrome-extension-starter-mert
Advanced tools
Web Extension starter kit built with React, TypeScript, Tailwind CSS, EsLint, Prettier & Webpack
:desktop_computer: A Web Extension starter kit built with React, TypeScript, Storybook, EsLint, Prettier, Jest, TailwindCSS, & Webpack. Compatible with Google Chrome, Mozilla Firefox, Brave, and Microsoft Edge.
Getting Started
Run the following commands to install dependencies and start developing
yarn install
yarn dev
Scripts
yarn dev
- run webpack
in watch
modeyarn storybook
- runs the Storybook serveryarn build
- builds the production-ready unpacked extensionyarn test -u
- runs Jest + updates test snapshotsyarn lint
- runs EsLintyarn prettify
- runs PrettierIn Google Chrome, open up chrome://extensions in a new tab. Make sure the Developer Mode
checkbox in the upper-right corner is turned on. Click Load unpacked
and select the dist
directory in this repository - your extension should now be loaded.
In Brave, open up brave://extensions in a new tab. Make sure the Developer Mode
checkbox in the upper-right corner is turned on. Click Load unpacked
and select the dist
directory in this repository - your extension should now be loaded.
In Mozilla Firefox, open up the about:debugging page in a new tab. Click the This Firefox
link in the sidebar. One the This Firefox
page, click the Load Temporary Add-on...
button and select the manfiest.json
from the dist
directory in this repository - your extension should now be loaded.
In Microsoft Edge, open up edge://extensions in a new tab. Make sure the Developer Mode
checkbox in the lower-left corner is turned on. Click Load unpacked
and select the dist
directory in this repository - your extension should now be loaded.
Notes
This project is a repository template - click the Use this template
button to use this starter codebase for your next project.
Includes ESLint configured to work with TypeScript and Prettier.
Includes tests with Jest - note that the babel.config.js
and associated dependencies are only necessary for Jest to work with TypeScript.
Recommended to use Visual Studio Code
with the Format on Save
setting turned on.
Example icons courtesy of Heroicons.
Microsoft Edge is not currently supported.
Includes Storybook configured to work with React + TypeScript. Note that it maintains its own webpack.config.js
and tsconfig.json
files. See example story in src/components/hello/__tests__/hello.stories.tsx
Includes a custom mock for the webextension-polyfill-ts package in src/__mocks__
. This allows you to mock any browser APIs used by your extension so you can develop your components inside Storybook.
Built with
Misc. References
Notable forks
FAQs
Web Extension starter kit built with React, TypeScript, Tailwind CSS, EsLint, Prettier & Webpack
The npm package react-typescript-chrome-extension-starter-mert receives a total of 0 weekly downloads. As such, react-typescript-chrome-extension-starter-mert popularity was classified as not popular.
We found that react-typescript-chrome-extension-starter-mert demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.