Two issues surfaced by a holistic audit of the combined desync-persist + reconcile-on-init changes: 1. Stale desync outside gated-guest state. hcmDesynced is persisted, but neither ROOM_DATA nor CONTROL_MODE cleared it when the local peer became host or the room switched to 'everyone'. Combined with reconcile-on-init, a desynced guest promoted to host (host-leave fallback) while content was reloading could re-adopt desynced=true — self-labelling "Solo" to all peers and ignoring host commands in 'everyone' mode. Enforce the invariant centrally (hcmEnforceDesyncInvariant: desynced ⟹ host-only && !host) on every role/mode change, and guard the content reconcile to only adopt when actually a gated guest. 2. Solo-badge flicker. The host-side PEER_STATUS handler set peer.desynced unconditionally, but the background-driven keepAlive heartbeat omits the field — so every ~30s it clobbered desynced to false, flickering the badge. Only update when present (matching the sibling fields), and include desynced in the background heartbeat so both heartbeat sources are consistent. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
KoalaSync
KoalaSync is a lightweight Browser Extension and Relay Server for synchronized video playback on almost any website with a video element—YouTube, Twitch, Netflix, Emby, Jellyfin, and beyond. Built with a focus on Data Sovereignty and Performance.
New v2.4.6 Release! — See what's changed
🌟 Why KoalaSync?
- 🛡️ Security-First: Volatile RAM-based relay with built-in brute-force protection and zero-persistence architecture. We keep no logs of your sessions or synchronizations. We don't track you. We only track our server (relying on the aggregated, anonymous, non-personal metrics provided under
/health). - 📡 Direct Logic: Manual Socket.IO wire implementation for reliable synchronization.
- 🛠️ Clean Build: Dependency-free extension runtime with no library overhead.
- 🌐 Universal: Works on any website with a
<video>tag.
✨ Key Features
- Global Synchronization: Synchronize Play, Pause, and Seeking on any website with a
<video>tag. - Episode Auto-Sync: Perfectly sync series binges. All peers wait until everyone has loaded the next episode before starting together.
- Smart Matching: Automatically highlights tabs containing matching video titles.
- Dual Heartbeat Architecture: Robust session tracking that prevents ghost rooms and stale connections.
- Efficient Relay: Minimal overhead WebSocket message forwarding.
- Seamless Invitations: Smart links that automatically configure server and room credentials for your friends.
- Smart Audio Compressor: Tired of constantly riding the volume? Automatically balance out whispering dialogue and deafening explosions with simple presets, or fully customize the audio to your liking.
🚀 Quick Start
For Users (Installation & Usage)
The easiest and safest way to install KoalaSync is directly through the official browser stores:
(For manual offline installation: Download the latest .zip from the Releases page and load it as an "Unpacked Extension" in Developer Mode).
How to use:
- Create a Room: Click the Koala icon in your browser and hit
+ Create New Room. - Invite Friends: Share the auto-copied invite link. Once they click it, they automatically join.
- Pick a Video: Navigate to the Sync Tab, select the tab playing your video, and grab some popcorn! 🍿
🌐 Localization & Translations
Both the official KoalaSync website and the v2.0 Browser Extension feature full dynamic localization:
- Available Languages: Support is included for 15 languages: English (
en), German (de), French (fr), Spanish (es), Portuguese (Brazil) (pt-BR), Russian (ru), Italian (it), Polish (pl), Turkish (tr), Dutch (nl), Japanese (ja), Korean (ko), Chinese (Simplified) (zh), Ukrainian (uk), and European Portuguese (pt). - Real-Time Extension Localization: Inside the extension Settings panel, users can swap languages instantly. The entire interface, notifications, Empty States, and onboarding guides re-translate dynamically in real-time.
- Contributing: We welcome community translations for both the website and the extension! Please refer directly to the TRANSLATION.md guide for step-by-step instructions on how to audit, refine, or add new languages.
🛠️ For Developers & Self-Hosters
📂 Repository Structure
extension/: Browser Extension (Chrome & Firefox).server/: Node.js + Socket.IO Relay Server (Containerized).website/: Marketing landing page & Invitation Bridge.shared/: Single Source of Truth for protocol constants.scripts/: Automated build and synchronization utilities.docs/: Technical deep-dives (Architecture, Sync Guide).
Building from Source
To build the extension from source and synchronize protocol constants:
npm install
npm run build:extension
The compiled artifacts will be available in the dist/ directory.
For Self-Hosting (Docker)
Deploy your own private relay server using our official image:
# Pull the latest image
docker pull ghcr.io/shik3i/koalasync:latest
# Or use our example compose file
cp examples/docker-compose.caddy.example.yml docker-compose.yml
docker-compose up -d
The server will be available at ws://localhost:3000. See Docker network compose or Static IP compose for ready-to-use Docker Compose files.
To connect your extension to a self-hosted server, open the popup → Room tab → select Custom Server → enter your server's WebSocket URL (e.g., ws://localhost:3000).
⚠️ Note:
ws://only works forlocalhost. If you deploy to a real domain, you must usewss://(e.g.,wss://sync.yourdomain.com). This requires a TLS-terminating reverse proxy (e.g., Caddy, Nginx, or Traefik) in front of the relay server. See Caddyfile.example for a production-ready template.
To verify your relay is reachable from outside, visit https://your-domain.com in a browser — it should return {"status":"online","service":"KoalaSync Relay"}.
Supply Chain Security (v2.2.2+)
All official release artifacts (Docker images and extension binaries) are published with signed artifact attestations to prove they were built from this repository's source code.
Verify a Docker image:
gh attestation verify oci://ghcr.io/shik3i/koalasync:latest \
-R Shik3i/KoalaSync
Verify an extension binary:
gh attestation verify dist/koalasync-chrome.zip \
-R Shik3i/KoalaSync
📖 Documentation & Links
- CHANGELOG.md: Full version history for the extension and relay server.
- TESTED_SERVICES.md: Detailed compatibility matrix of tested streaming platforms and known limitations.
- TRANSLATION.md: Translation and localization guide for contributors.
- PRIVACY.md: Data Handling and Privacy Policy.
- CONTRIBUTING.md: How to help make KoalaSync better.
- CODE_OF_CONDUCT.md: Our community standards and expectations.
- HOW_IT_WORKS.md: Step-by-step walkthrough of the complete user flow.
- ARCHITECTURE.md: Deep-dive into the two-phase sync and heartbeat logic.
- ROADMAP.md: Planned features, backlog, and rejected ideas.
- SECURITY.md: Disclosure policy and security practices.
- Caddyfile.example: Production Caddy configuration for website and relay.
