Skip to content
kwy404Public

About

Browse one tab together with friends, peer to peer, with live cursors, voice and chat.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

tabtango banner: Lino and Lua, two parakeets, dance tango while three colored cursors dance across a shared browser tab

tabtango: browse a tab together

Open the app · Website · Get the extension · Leia em Português

Share one browser tab with up to four friends. They watch it live with its sound, talk with you, chat, and point at it with their own colored cursors. Everything goes straight between browsers over WebRTC: no account, no install, no server of ours.

How it works

A shared tab under two spotlights, streaming to three friends
1. Share a tab
Start a room and pick the tab to show. Its sound comes along.
Six words, a QR code and six confirmation words
2. Friends join three ways
Six words, a QR code or an invite link, all carrying the same words. Both screens then show six confirmation words, and you let your friend in.
Colored cursors, click ripples and a laser trail over the stream
3. Point, talk and follow
Cursors, click ripples and a laser over the stream, voice, cameras and chat.

What you get

Tab sharing with sound A browser tab (or a window or screen) at up to 1080p and 30 frames per second.
The pointer layer Everyone's cursor in their seat color, smoothed on arrival, with click ripples and a laser.
Six words, a QR code or a link The link carries the words after the #, which browsers never send to any server, and opening it goes straight to the door. Six confirmation words from both ends catch anyone who should not be there.
Voice with Strong noise suppression Our own suppressor runs in an AudioWorklet by default: hum, hiss, fans and keyboard clicks stay out. A mic test lets you hear yourself.
Chat, replies, reactions, "point at this" A message can carry a spot on the shared tab that flashes on every screen.
Cameras and device pickers Up to five small cameras next to the stage. Mute, camera off, and a picker for microphone, camera and speaker (where the browser allows it) that works mid call.
A right click menu Right click, long press or Shift+F10: point here, follow someone's pointer with a zoomed view, copy the page link, set a person's volume or mute them for you, make someone the driver, copy, reply and react.
Follow me Send the page you are on; guests open it in their own browser.
Installable, two languages A PWA in English and Portuguese, with a guest view made for phones.

The optional extension

The extension draws guests' cursors on the real shared tab

A web page cannot see or draw on another tab. Without the extension, your friends' cursors appear in the app, on top of the stream. With it, they also appear on the real tab you share, and the address of that tab is offered for "follow me".

Download the zip from the website (its SHA-256 is shown there) or use the extension/ folder, then:

  1. Unzip it into a folder you keep.
  2. Open your browser's extensions page and switch on developer mode.
  3. Choose Load unpacked and pick the tabtango-extension folder.

It is installed by hand because it is not in any extension store. It works in desktop browsers that load an unpacked Manifest V3 extension from a folder; browsers that only accept signed extensions are not supported yet.

Permission Why
activeTab Draw on a tab only after you click the extension's button on that tab. No access to other tabs.
scripting Put the overlay on that one tab when you ask.
storage Remember which tab shows the overlay while the browser is open (session storage only).
Content script on the tabtango app pages Lets the app hand cursor positions to the extension. It runs nowhere else.
Optional: access to sites Only if you turn on "Follow me across pages", so the overlay comes back after a page load.

No remote control, on purpose. Guests can point, but nobody can click, type or scroll in your browser, with or without the extension. Letting other people drive a logged in browser would put your accounts at risk.

Honest limits

  • The driver leads with a highlighted pointer. Nobody, driver included, can click, type or scroll in the host's browser.
  • tabtango sees the shared tab only as video. It cannot read or change the page.
  • Hosting needs a desktop browser that can share a tab. Phones and tablets join as guests.
  • Tab sound needs the "also share audio" option on when you pick the tab.
  • Picking a speaker needs a browser that lets a page choose one; elsewhere sound plays on the system speaker.
  • The host sends video to each guest, so the host's upload matters. A room holds five people.
  • To find each other, both sides pass one encrypted handshake through public MQTT relays. They see a random topic and ciphertext only, and are left as soon as you connect.
  • Most connections are direct. Strict networks may need your own TURN server (Settings).

Under the hood

  • Pairing: six BIP39 words (66 bits). PBKDF2 and HKDF turn them into a relay topic and an AES-GCM key. The host makes one WebRTC offer per guest; the confirmation words come from both DTLS fingerprints.
  • Topology: a star. Each guest has one connection to the host, which passes on chat, cursors, voices and cameras. All media slots are in the first offer, so nothing is renegotiated.
  • Cursors: 9 byte packets on an unordered, no retransmit data channel. Coordinates are normalized to the video frame (letterboxing included), sent at most 30 times a second with the last position never lost, and drawn about 90 ms in the past between the two samples around that moment.
  • Art: the banner, the dancing parakeets and the illustrations above are SVG files that animate with CSS inside the SVG, and stand still when your system asks for reduced motion.
  • ICE: STUN at stun.cloudflare.com:3478, then two more public STUN servers, checked at start; an optional TURN server of your own.

Develop

npm install
npm run serve          # http://127.0.0.1:8080/tabtango/
npm test               # unit tests: cursor protocol, pairing, room rules, DSP, extension
npm run e2e            # two browser profiles, fake media, a shared test tab
npm run lint && npm run rules

src/ holds the shared modules; npm run core copies them to docs/app/core/ and the cursor module to the extension. npm run pack:extension builds the zip, npm run site the landing page, npm run art the art.

Lino and Lua sway in a spotlight: Lino leads with a rose in his beak and a wing around Lua

Author

Made by Alexandre Kohler: GitHub and LinkedIn. The site is built with Monsoon and its interactive parts with Voodoo.js.

More from kwy404: Monsoon, Voodoo.js, kastor, fontsketch, filefinch, howlden, installkite, a11ymedic, cookieowl.

License

MIT

About

Browse one tab together with friends, peer to peer, with live cursors, voice and chat.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages