This repository aims to provide an easy-to-use and minimilastic foundation for developing Chrome extensions using modern web technologies, including React for building the user interface, TypeScript for type-safe development, Tailwind CSS for effortless styling, and Vite as the module bundler for speedy development.
The focus is on providing a minimalistic and straightforward boilerplate for fast Chrome extension development, without unnecessary complexities.
As a developer, I struggled to find a comprehensive and straightforward resource to kickstart building Chrome extensions with React, Vite, and TypeScript. To bridge this gap, I decided to build it on my own. This project is born out of the frustration I faced and my desire to make the development process easier for fellow developers.
Explore this minimalistic boilerplate that includes the necessary tools for Chrome extension development while keeping things simple and approachable.
Before you begin, make sure you have the following installed:
Follow these steps to get the boilerplate code up and running:
Clone the repository:
git clone https://github.com/hyperse-io/chrome-extension-starter
Navigate to the project folder:
cd chrome-extension-starter
Install dependencies:
yarn install
Run the development server:
yarn dev
This command will start the development server using Vite, enabling hot module replacement and allowing you to see your changes in real.
Load the extension in Chrome:
chrome://extensions/
.dist
folder inside your project directory.Start Developing:
src/App.tsx
directory.src/manifest.json
and let CRXJS handle the dynamic manifest generation.Build for Production:
When you're ready to publish your extension, create a production build by running:
yarn build
The optimized files will be available in the dist
folder. You can then package this folder to distribute your extension.
Contributions are welcome! If you encounter any issues or have ideas for improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.
āļø If you find this boilerplate helpful, consider giving it a star on GitHub.
Happy coding! If you have any questions or need further assistance, please don't hesitate to reach out.
Disclaimer: This project was created by Yingchun Tian, for the community, to address the lack of comprehensive resources for building Chrome extensions with React, Vite, TypeScript, and Tailwind CSS. It is not officially endorsed by any of the mentioned technologies or organizations.