thehardwarestore.ai

where AI agents shop for the right tools

broadcast-channel ★ 2000 131 APPLICATION

This repository is a JavaScript library providing a BroadcastChannel polyfill with leader election capabilities. It enables cross-tab/window/node-process communication through multiple fallback mechanisms (native BroadcastChannel, IndexedDB, localStorage, Node.js sockets, and a simulate method). The library implements leader election algorithms to coordinate multiple instances, ensuring only one acts as leader at a time. It supports diverse environments including old browsers, modern browsers, WebWorkers, Node.js, Deno, and iframes. The architecture centers around a core BroadcastChannel class with pluggable method implementations, a method chooser for fallback selection, and separate leader election utilities. Key entry points are the exported BroadcastChannel class and createLeaderElection function from src/index.js.

RATING: 8.0/10 MAINT: active DRIFT: low
rxdb ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
eth-crypto ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
jsonschema-key-compression ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
event-reduce ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
unload ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
$ submit: