chrome-extension-boilerplate-react-vite
Chrome Extension with React, Vite, and TypeScript.
When & Why to Use This Skill
This Claude skill provides a comprehensive and modern boilerplate for developing Chrome Extensions using React, Vite, and TypeScript. It eliminates the complex initial setup by providing a pre-configured environment, enabling developers to jumpstart their browser extension projects with high-performance build tools and type-safe code structures.
Use Cases
- Rapidly bootstrapping a new Chrome extension project with a production-ready React and Vite configuration.
- Developing complex browser-based tools that require the performance benefits of Vite's fast HMR (Hot Module Replacement).
- Building maintainable and scalable extension codebases using TypeScript for enhanced type safety and developer productivity.
- Streamlining the build and deployment workflow for Chrome extensions with integrated pnpm and optimized build scripts.
| name | chrome-extension-boilerplate-react-vite |
|---|---|
| description | Chrome Extension with React, Vite, and TypeScript. |
Chrome Extension Boilerplate
Chrome Extension Boilerplate with React + Vite + TypeScript.
Tech Stack
- Framework: React
- Build Tool: Vite
- Language: TypeScript
- Package Manager: pnpm
Setup
1. Clone the Template
git clone --depth 1 https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite.git .
If the directory is not empty:
git clone --depth 1 https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite.git _temp_template
mv _temp_template/* _temp_template/.* . 2>/dev/null || true
rm -rf _temp_template
2. Remove Git History (Optional)
rm -rf .git
git init
3. Install Dependencies
pnpm install
Build
pnpm build
Development
pnpm dev
Loading Extension
- Build the extension
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the
distfolder