Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🧩 The cross-browser extension framework

License

NotificationsYou must be signed in to change notification settings

extension-js/extension.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,750 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

VersionDownloadsCIDiscord

Extension.js

The cross-browser extension framework

Logo

Create cross-browser extensions without manual build configuration.
Use Extension.js to develop, build, and preview across browsers with a unified workflow.

Create a new extension

Use thecreate command to generate a new extension. Also works with pnpm, yarn, and bun.

npx extension@latest create my-extensioncd my-extensionnpm run dev

Watch demo

create-a-new-extension.mp4

Web standards and framework support

ESNext
Try out
TypeScript
Try out
WASM
(soon)
React
Try out
Vue
Try out
Svelte
Try out
Preact
Try out
Get started from a sample

Get started

Start developing an extension using a sample from Chrome Extension Samples

See the example below where we request the samplepage-redder fromGoogle Chrome Extension Samples.

Watch demo

chrome-extension-sample-page-redder-on-edge.mp4

Try Yourself

npx extension@latest dev https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/functional-samples/sample.page-redder --browser=edge

I have an extension

If you have an existing extension which is using a package manager, you can install the Extension.js package and manually create the scripts used to run your extension.

See how it works

usage-with-an-existing-extension.mp4

Step 1 - Install extension as adevDependency

npm install extension@latest --save-dev

Step 2 - Link your npm scripts with the executable Extension.js commands

{"scripts": {"build":"extension build","dev":"extension dev","preview":"extension preview"  },"devDependencies": {// ...other dependencies"extension":"latest"  }}

Done. You are all set!

  • To develop the extension, runnpm run dev.
  • To build the extension in production mode, runnpm run build.
  • To visualize the extension in production mode, runnpm run build andnpm run preview.

Using a specific browser for development

Chrome browser
Edge browser
Firefox browser
Safari browser
(soon)
Chromium-based
Gecko-based

Browser flags and custom binaries

Use these flags withextension dev,extension start, orextension preview:

  • Select a browser:--browser <chrome | edge | firefox>
  • Custom Chromium binary:--chromium-binary <path-to-binary>
  • Custom Gecko (Firefox) binary:--gecko-binary <path-to-binary>

Examples:

# Chrome (system default)npx extension@latest dev --browser=chrome# Edgenpx extension@latest dev --browser=edge# Custom Chrome/Chromium pathnpx extension@latest dev --chromium-binary"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"# Custom Firefox pathnpx extension@latest dev --gecko-binary"/Applications/Firefox.app/Contents/MacOS/firefox"

Sponsors

Browser testing via
TestMu AI Logo

License

MIT (c) Cezar Augusto and the Extension.js Authors.

Sponsor this project

  •  

Contributors25


[8]ページ先頭

©2009-2026 Movatter.jp