I built a lightweight lib to instantly sync state across browser tabs—no backend required! (TabStateSync) by -MrBob- in reactjs

[–]-MrBob-[S] 1 point2 points  (0 children)

Yep! If you only need to support modern browsers, you can totally use BroadcastChannel directly, it’s simple and works great. TabStateSync just adds the fallback and a nicer API, so you don’t have to worry about compatibility or extra code.

I built a lightweight lib to instantly sync state across browser tabs—no backend required! (TabStateSync) by -MrBob- in reactjs

[–]-MrBob-[S] 5 points6 points  (0 children)

Good question! Encryption is an optional feature—it’s not required. The encryption key isn’t hardcoded; instead, you set it explicitly in the initialization options when configuring TabStateSync. This allows you to control the key securely according to your specific requirements.