Quick start
Get your first Chrome extension up and running with CRXJS in just 90 seconds using the scaffolding tool.This guide uses
npm create crxjs@latest to scaffold a new project. For manual installation, see the Installation guide.Create your project
Scaffold a new project
Run the scaffolding command and follow the prompts:The scaffolding tool will ask you:
- Project name
- Framework choice (React, Vue, Svelte, or Vanilla)
- TypeScript preference
Start the dev server
Start the development server with HMR:This will build your extension in development mode and watch for changes.
Load the extension in Chrome
- Open Chrome and navigate to
chrome://extensions - Enable Developer mode (toggle in the top right)
- Click Load unpacked
- Select the
distdirectory from your project
Project structure
Your scaffolded project includes:- manifest.json - Defines your extension’s permissions, pages, and content scripts
- vite.config.ts - Configures CRXJS and any additional Vite plugins
- popup.html - The popup page shown when clicking the extension icon
Next steps
Learn core concepts
Understand manifests, pages, and content scripts
Configure your extension
Customize CRXJS behavior
Add frameworks
Use React, Vue, or Svelte
Build for production
Optimize and package your extension
Prefer to add CRXJS to an existing Vite project? Check out the Installation guide for step-by-step instructions.