Hasty Briefsbeta

Bilingual

Show HN: Offline JavaScript PubSub between browser tabs

a year ago
  • #LocalStorage
  • #PubSub
  • #JavaScript
  • TabSub is a JavaScript PubSub tool that uses local storage for message sharing without requiring a server.
  • It works on the same domain due to browser security measures separating local storage by domains.
  • TabSub has been tested with 10 concurrent writers, showing no message loss and correct message order, though no warranty is provided.
  • The tool is available on GitHub under the MIT license.
  • Example usage includes syncing song playback across tabs and basic PubSub operations like publish, subscribe, and state retrieval.