{"library":"webext-messenger","type":"library","category":null,"description":"webext-messenger is a focused JavaScript library designed to streamline inter-component communication within browser extensions. It provides a robust framework for message passing between different parts of an extension, such as background scripts, content scripts, and web pages, as well as offscreen documents. The current stable version is 0.35.0, with frequent minor releases indicating active development, often introducing new features and internal optimizations. A key differentiator is its emphasis on minimizing external dependencies, aiming for a lightweight footprint, as evidenced by recent efforts to drop libraries like `p-retry` and `webextension-polyfill` for core functionality. This library simplifies complex messaging patterns, abstracting away the underlying browser `runtime.sendMessage` and `runtime.onMessage` APIs to offer a more developer-friendly interface for building robust and scalable browser extensions.","language":"javascript","status":"active","version":"0.35.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install webext-messenger","imports":["import messenger from 'webext-messenger';","import { MessengerError } from 'webext-messenger';","import * as Messenger from 'webext-messenger';"]},{"cmd":"yarn add webext-messenger","imports":[]},{"cmd":"pnpm add webext-messenger","imports":[]}],"homepage":null,"github":"https://github.com/pixiebrix/webext-messenger","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/webext-messenger","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/webext-messenger/compatibility"}}