All your computers and your phone/iPhone, working as one desk. Screens, apps, files, clipboard, calls, texts, notifications, mouse and keyboard, shared between Mac, Windows, Linux , Android, Web and ios / ipados . Free and open source. No account, no cloud, and no shared network needed.
JavaScript androidapple-ecosystemconnectelectronfile-sharingintel-unison-alternativeiosios-windowskde-connect-alternativekvmlinuxmacbookmacosmouse-sharingphone-link-alternativeproductivityscreen-sharingsidecar-alternativesynergy-alternativewindows
// TwinDesk — Copyright (C) 2026 inukaasith. GPL-3.0, see LICENSE.
// The Full KVM build's session preload (manager.js registers it, next to each window's own): the
// Full KVM tab's calls. The normal build never registers it, so its pages have no tdFullKvm.
'use strict';
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('tdFullKvm', {
state: () => ipcRenderer.invoke('fullkvm', 'state'),
set: (mode) => ipcRenderer.invoke('fullkvm', 'set', String(mode)),
// Biometric unlock (shared/fullkvm/unlock-host.js)
unlock: () => ipcRenderer.invoke('fullkvm', 'unlock'),
unlockAdd: (phone, password) => ipcRenderer.invoke('fullkvm', 'unlockAdd', String(phone), password == null ? undefined : String(password)),
unlockDrop: (key) => ipcRenderer.invoke('fullkvm', 'unlockDrop', String(key)),
unlockOn: (on) => ipcRenderer.invoke('fullkvm', 'unlockOn', on === true),
unlockAsk: (on) => ipcRenderer.invoke('fullkvm', 'unlockAsk', on === true),
unlockPhones: (on) => ipcRenderer.invoke('fullkvm', 'unlockPhones', on === true),
unlockComputers: (on) => ipcRenderer.invoke('fullkvm', 'unlockComputers', on === true),
});