Skip to content

Tabs Broadcast: JS Library

TabsBroadcast is a lightweight, easy-to-use JavaScript library that enables communication between multiple browser tabs.

TabsBroadcast is a lightweight, easy-to-use JavaScript library that enables communication between multiple browser tabs.

About

TabsBroadcast is a lightweight, easy-to-use JavaScript library that enables communication between multiple browser tabs and is ideal for managing inter-tab communication via the BroadcastChannel API. It implements a singleton pattern to ensure a single instance and allows for registering, emitting, and handling various types of events across different browser tabs. Ideal for web applications that require synchronized data sharing, this package uses the BroadcastChannel API to efficiently exchange messages across open tabs, enhancing the user experience with real-time updates and seamless coordination.

Demo

You can see the demo

Tabs priority

The library also manages primary and slave tabs, ensuring that only one tab is designated as the primary tab, which can perform certain tasks exclusively. With a simple setup and minimal dependencies, tabs-broadcast offers developers a powerful tool for managing state and interactions across tabs in modern web apps.

Features

  • Singleton pattern to ensure a single instance.
  • Inter-tab communication using the BroadcastChannel API.
  • Primary-Slave tab management.
  • Event registration and handling.
  • Emit messages to all tabs or only from the primary tab.
  • Configurable settings.

To see more information on npmjs.com

License

This project is licensed under the MIT License. See the LICENSE file for details.

Related posts

The iron-bound gates of the Hold my Helmet gladiator arena standing open, with the title "Into the Arena"
#games

Hold my Helmet Devlog: Five Weeks Into the Arena

How Hold my Helmet, our co-op gladiator game, went from an empty Unity project to Steam multiplayer, a Blender arena and a 97% cheaper HUD in five weeks.

Oct 11, 2026
Read More
I built an open-source runtime that renders HTML, CSS and JavaScript straight into a Unity texture on the GPU. Why I did it, and what a frame costs.
#dev

I wrote an HTML/CSS/JS engine for Unity game interfaces

I built an open-source runtime that renders HTML, CSS and JavaScript straight into a Unity texture on the GPU. Why I did it, and what a frame costs.

Sep 23, 2026
Read More
I built a Windows tray widget that translates whatever you copied, text or screenshot, on a hotkey. Here is what was actually hard about it, and it was not the translating.
#ai

XPLOIT Translator: A Clipboard Translator That Lives in the Windows Tray

I built a Windows tray widget that translates whatever you copied, text or screenshot, on a hotkey. Here is what was actually hard about it, and it was not the translating.

Aug 7, 2026
Read More

Newsletter

Occasional notes on engineering, game tech, and new tools — no spam, unsubscribe anytime.

Andrei Rovnyi

Engineering manager, founder, and software developer building web platforms, game systems, real-time services, and automation tools. 15 years of shipped work — currently at Gaijin.net.

Get in Touch

Building an MVP, shipping a game feature, or automating a team workflow? Open source or paid — let's talk.

Contact Me
© 2020-2026 XPLOIT FZE. All trademarks, names and logos belong to their respective copyright holders.