chrome-extension-boilerplate-react-vite

Eng0AI's avatarfrom Eng0AI

Chrome Extension with React, Vite, and TypeScript.

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 16, 2025⬇️1downloads

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.
namechrome-extension-boilerplate-react-vite
descriptionChrome 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

  1. Build the extension
  2. Open Chrome and go to chrome://extensions/
  3. Enable "Developer mode"
  4. Click "Load unpacked" and select the dist folder