README.md

August 11, 2025 ยท View on GitHub

CRXJS

CRXJS

Build cross-browser extensions with native HMR and zero-config setup

NPM version

๐Ÿ“š Documentation | ๐Ÿ’ฌ Discord

๐Ÿ“ฆ Create CRXJS Project

npm create crxjs@latest

Important

@latest MUST NOT be omitted, otherwise npm may resolve to a cached and outdated version of the package.

โœจ Features

  • ๐Ÿงฉ Full Vite Plugin Ecosystem - Leverage any Vite-compatible plugins with zero extra setup
  • โš™๏ธ Zero Configuration - Start developing immediately with intelligent defaults
  • 3๏ธโƒฃ Manifest V3 Support - Built for modern Chrome extensions with enhanced security
  • ๐Ÿ”ฅ True Hot Module Replacement - Instant UI updates while preserving extension state ๐ŸŽˆworks with content scripts
  • ๐Ÿ“ Static Asset Import - Directly reference images/fonts in your code
  • ๐Ÿค– Auto Web-Accessible Resources - Automatic generation of web_accessible_resources manifest entries

Note


Looking for MV2 support? See rollup-plugin

๐Ÿ’ป Development

  • Clone this repository
  • Install pnpm
  • Install dependencies using pnpm install
  • Build the vite-plugin project using pnpm build:vite-plugin
  • Playgrounds project is located at playgrounds/**, using pnpm play can run the playgrounds
  • Cd into the vite-plugin directory using cd packages/vite-plugin
  • Test using pnpm run test
  • Use DeepWiki to learn more about CRXJS

๐Ÿ’ Contributors

This project exists thanks to all the people who contribute.

And thank you to all our backers! ๐Ÿ™

๐Ÿค Supporting

If these plugins have helped you ship your product faster, please consider sponsoring me on GitHub.