# @metamask/messenger

> A type-safe message bus library

Latest version **3.0.0** (published 2026-09-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @metamask/messenger
pnpm add @metamask/messenger
yarn add @metamask/messenger
bun add @metamask/messenger
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2026-09-09 |
| First published | 2025-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^22.14.0 \|\| ^24 |
| Dependencies | 1 |
| Unpacked size | 150.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 412 |
| Maintainers | frederikbolding, metamaskbot, gudahtt, mrten, mcmire, naugtur |
| Keywords | Ethereum, MetaMask |

## Links

- npm: https://www.npmjs.com/package/@metamask/messenger
- Repository: https://github.com/MetaMask/core
- Homepage: https://github.com/MetaMask/core/tree/main/packages/messenger#readme
- Issues: https://github.com/MetaMask/core/issues
- npm.io page: https://npm.io/package/@metamask/messenger

## Dependencies (1)

- [@metamask/utils](https://npm.io/package/@metamask/utils.md) ^11.12.0

## Recent versions

- 3.0.0 (latest) — 2026-09-09
- 2.0.0 — 2026-07-06
- 1.2.0 — 2026-04-29
- 1.1.1 — 2026-04-03
- 1.1.0 — 2026-04-01
- 1.0.0 — 2026-03-26
- 0.3.0 — 2025-09-16
- 0.2.0 — 2025-09-04
- 0.1.0 — 2025-08-21

## README

# `@metamask/messenger`

A type-safe message bus library.

The `Messenger` class allows registering functions as 'actions' that can be called elsewhere, and it allows publishing and subscribing to events. Both actions and events are identified by namespaced strings.

## Installation

`yarn add @metamask/messenger`

or

`npm install @metamask/messenger`

## Contributing

This package is part of a monorepo. Instructions for contributing can be found in the [monorepo README](https://github.com/MetaMask/core#readme).

---
_Source: https://npm.io/package/@metamask/messenger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
