CrossBus

Watch messages cross between browser contexts

Each demo runs the published CrossBus bundle across real boundaries: Web Workers, separate tabs, and a channel you can attack. The strip below is live too.

Live · this page asks a Web Worker to render a small tile every 300 ms

  • request 0
  • response 0
  • signal 0
  • error 0
Starting a module Worker…

Page ↔ Web Workers · MessageChannel · request/response

Render a fractal across Web Workers

Every tile is a request to a module Worker that answers with its pixels. Change the number of Workers and the wire format, then move the work to the main thread and watch its heartbeat stop.

Open the worker pool

Tab ↔ tab · BroadcastChannel · signals

Draw in one tab, see it in every tab

Open the page twice and draw. Strokes, cursors and presence travel between tabs of the same origin as signals, with a snapshot for tabs that join late.

Open tabs in sync

Client ↔ server · withEncryption · hooks

Try to break an encrypted channel

You hold the wire but not the key. Replay a payment, forge one, or change its amount, and see the server refuse each attempt. Switch encryption off and the same attacks empty the account.

Open the secure channel

These pages load assets/crossbus.min.js, a copy of the repository's dist/crossbus.min.js made by the build. Prefer plain consoles? The playground covers signals, RPC, iframes and a Worker. To install, read Getting started.