pubkey/broadcast-channel
:satellite: BroadcastChannel to send data between different browser-tabs or nodejs-processes :satellite: + LeaderElection over the channels https://pubkey.github.io/broadcast-channel/ observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 99
- Release rhythm 54
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 85
- age_days: 3013
- days_rel: 225
- days_push: 7
- n_releases_24m: 2
Adoption not part of the score
1997 stars · 132 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A JavaScript library implementing the BroadcastChannel API across browsers, WebWorkers, Node.js, and Deno, enabling message passing between browser tabs or Node.js processes. It also provides leader election over the channels so only one tab/process acts as the leader.
Use cases
- sync state between browser tabs
- send messages between nodejs processes
- elect a leader tab among open tabs
- polyfill broadcastchannel for old browsers
- communicate with web workers
- cross-tab logout or session sync
When to choose
- you need cross-tab or cross-process messaging that works in older browsers and runtimes
- you need leader election across tabs or processes
- you want a runtime-agnostic BroadcastChannel with fallbacks like IndexedDB or localStorage
When to avoid
- you only target modern browsers with native BroadcastChannel support and need no fallbacks
- you need durable or persistent message delivery rather than ephemeral broadcast
- you need inter-server or networked messaging rather than same-origin client-side communication
Facets
library · maturity active
message-queue middleware web-development frontend cross-platform browser cross-platform broadcast-channel cross-tab-communication leader-election polyfill ipc postmessage indexeddb localstorage web-workers messaging nodejs deno
2 sources
- readme: https://github.com/pubkey/broadcast-channel · fetched 2026-08-28 · a93b7e5e56b1
- homepage: https://pubkey.github.io/broadcast-channel/ · fetched 2026-08-29 · 0291b1b981e5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pubkey/broadcast-channel | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="pubkey/broadcast-channel")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem