A favicon of Template React Browser Extension

Template React Browser Extension

An opinionated starter template for crafting browser extensions for Chromium and Firefox, powered by React, Tailwind CSS, and Shadcn-UI for modern development.

A screenshot of Template React Browser ExtensionVisit

React Tailwind Shadcn-UI Browser Extension Template

This project offers an opinionated starter template to accelerate the development of browser extensions for Chromium and Firefox. It integrates React for dynamic UIs, Tailwind CSS for efficient styling, and Shadcn-UI for accessible components. Developers benefit from a streamlined setup, including Hot Module Reloading (Chromium) and build optimizations via Vite, enabling a productive workflow for creating sophisticated browser extensions with a modern technology stack.

Features:

  • Chromium Browser Support: Enables development of extensions for Chrome and other Chromium-based browsers.
  • Firefox Browser Support: Facilitates extension creation for Mozilla Firefox.
  • React Integration: Utilizes React for building interactive user interfaces.
  • Tailwind CSS Integration: Leverages Tailwind CSS for rapid, utility-first styling.
  • Shadcn-UI Components: Incorporates Shadcn-UI for accessible and pre-designed UI elements.
  • Vite-Powered Build System: Uses @samrum/vite-plugin-web-extension for an optimized development and build process.
  • Hot Module Reloading (HMR): Supports HMR for instant updates in Chromium browsers during development, avoiding full extension reloads.
  • Development Watch Mode: Automatically rebuilds the extension upon file changes via npm run watch, requiring a manual reload of the extension.
  • Optimized Production Builds: Provides npm run build command to generate minified and optimized extension builds.
  • Simplified Project Setup: Quick project initialization using npm install.
  • Browser Loading Scripts: Includes npm scripts (npm run serve:chrome, npm run serve:firefox) to easily load the development extension directly into browsers.

Summary:

This template serves as a robust foundation for developers building browser extensions with React, Tailwind CSS, and Shadcn-UI. It simplifies the initial setup and provides essential development tools, including HMR, watch mode, and production build scripts, supporting both Chromium and Firefox. The goal is to enhance developer productivity by offering a pre-configured, opinionated environment tailored for modern extension development.

Distribution:
opensource
GitHub:
7 Stars
0
Share:

 

  
 

Similar to Template React Browser Extension: