chrome-extension-boilerplate-react-vite
Chrome Extension with React, Vite, and TypeScript.
When & Why to Use This Skill
This Claude skill provides a high-performance boilerplate for building modern Chrome extensions using React, Vite, and TypeScript. It eliminates the complexity of manual configuration by offering a pre-configured development environment, optimized build pipelines with Vite, and type-safe coding with TypeScript, significantly accelerating the transition from idea to deployment.
Use Cases
- Rapid Scaffolding: Quickly jumpstart the development of new Chrome extensions without spending hours on build tool configuration.
- Modernizing Legacy Extensions: Provide a structured template for migrating older extensions to a modern React-based architecture with Vite's fast HMR (Hot Module Replacement).
- Cross-Browser Development: Use as a foundation for building browser-agnostic tools that require a robust frontend framework and efficient package management via pnpm.
- Educational Reference: Serve as a best-practice implementation guide for developers learning how to integrate TypeScript and React within the unique constraints of the Chrome Extension API.
| 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