PubSubES – a tiny JavaScript library for broadcasting events within and cross windows.

PubSubES is a 0.6KB heavy library for managing custom events within and cross windows. It is written in ES6 and makes use the new awesome Broadcast Channel API. Test it below by either sending out a message. To see the effect of global events open this page in a new window. Your browser doesn't support the Broadcast Channel API: use Firefox or Chrome to play with this demo! Check out the getting started guide and the API docs for details on how to use PubSubES.

Send an event

Messages