Messaging between browser tabs

SYSEND

One of the coolest JS libraries I’ve seen this year is SYSEND. It is a small library that helps us send messages between pages that are open in the same browser. It also supports Cross-Domain communication (Cross-Origin). The library doesn’t have any dependencies and uses the HTML5 LocalStorage API or BroadcastChannel API.

The questions for Frontend Architects are:

(a) Is this lib a good way to standardize the way we code cross-tab messaging in our frontend apps? Is this standardization worth the extra Kbs?

(b) Would it cause too much hassle if the apps needed to be wrapped on Cordova or Electron in the future? How would we default back to a backend solution if necessary?

(c) How can we leverage this lib to enable new and advanced UI/UX patterns?

Leave a Reply