JavaScript

Adds a sidebar panel to the browser with a simple page.

Runs on Chrome, Edge, Firefox · Manifest V3 · Surfaces: sidebar, content script, popup, background service worker · Styling: CSS · Level: beginner

Create this project

npx extension@latest create my-javascript --template javascript
cd my-javascript
npm install
npm run dev

What it is for

  • A sidebar panel as the primary UI surface
  • Plain JavaScript with no compiler config to maintain
  • Starting point for extensions written in JavaScript

First steps

  • Run npm run dev to launch the extension
  • Click the extension icon to open the sidebar panel
  • Edit src/sidebar/index.html and save to watch the panel update

Permissions it asks for

  • sidePanel

extension.devDocumentation for extension.dev