https://github.com/roshanpshetty/chromets-launchpad
A collection of boilerplate templates for creating Chrome Extensions, providing a solid foundation with essential features like background scripts, content scripts, and a popup interface.
https://github.com/roshanpshetty/chromets-launchpad
boilerplate-template chrome-extension chrome-extension-boilerplate manifest-v3 open-source react reactjs tailwindcss typescript webpack
Last synced: about 2 months ago
JSON representation
A collection of boilerplate templates for creating Chrome Extensions, providing a solid foundation with essential features like background scripts, content scripts, and a popup interface.
- Host: GitHub
- URL: https://github.com/roshanpshetty/chromets-launchpad
- Owner: RoshanPShetty
- License: mit
- Created: 2024-09-04T20:48:04.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-03-25T21:19:57.000Z (2 months ago)
- Last Synced: 2025-03-25T22:27:14.908Z (2 months ago)
- Topics: boilerplate-template, chrome-extension, chrome-extension-boilerplate, manifest-v3, open-source, react, reactjs, tailwindcss, typescript, webpack
- Language: TypeScript
- Homepage:
- Size: 976 KB
- Stars: 15
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chrome Extension Templates
A collection of boilerplate templates for creating Chrome extensions with different tech stacks.
## Available Templates
### React + Tailwind CSS
A modern template using React 18 with TypeScript and Tailwind CSS for styling.
- React 18 with TypeScript support
- Tailwind CSS for styling
- Webpack configuration
- ESLint and Prettier setup
- Popup, background, and content script examples### TypeScript + Tailwind CSS
A lightweight template using TypeScript and Tailwind CSS.
- TypeScript support
- Tailwind CSS for styling
- Webpack configuration
- ESLint and Prettier setup
- Popup, background, and content script examples## Getting Started
1. Choose a template from the `templates` directory:
- `react-tailwind/` for React + Tailwind CSS
- `typescript-tailwind/` for TypeScript + Tailwind CSS2. Copy the template to your new project:
```bash
cp -r templates/react-tailwind your-extension-name
# or
cp -r templates/typescript-tailwind your-extension-name
```3. Navigate to your project directory:
```bash
cd your-extension-name
```4. Install dependencies:
```bash
npm install
```5. Start development:
```bash
npm run dev
```6. Build for production:
```bash
npm run build
```7. Load the extension in Chrome:
- Open Chrome and go to `chrome://extensions/`
- Enable "Developer mode"
- Click "Load unpacked"
- Select the `dist` directory## Project Structure
Each template follows a similar structure:
```
├── public/ # Static files
│ ├── manifest.json # Chrome extension manifest
│ ├── popup.html # Popup HTML file
│ └── icons/ # Extension icons
├── src/ # Source files
│ ├── popup.ts(x) # Popup script/component
│ ├── background.ts # Background script
│ ├── content.ts(x) # Content script/component
│ └── index.css # Global styles
├── package.json # Dependencies and scripts
├── webpack.config.cjs # Webpack configuration
├── tsconfig.json # TypeScript configuration
├── tailwind.config.js # Tailwind CSS configuration
└── postcss.config.cjs # PostCSS configuration
```## Development
Each template includes the following npm scripts:
- `npm run dev`: Start development mode with hot reloading
- `npm run build`: Build for production
- `npm run watch`: Watch for changes and rebuild
- `npm run lint`: Run ESLint
- `npm run format`: Format code with Prettier## Contributing
Feel free to:
1. Submit issues and enhancement requests
2. Create new templates for different tech stacks
3. Improve existing templates
4. Add new features to templates## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.