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.
// Shared folders offered by another computer (drive.folders, shared/drive-host.js) while this one has
// Drive off and no shared folder, so its Drive engine isn't loaded: the first offer loads it and is
// handed to it, so the File Sharing page shows the folder to Add. Nothing else loads until then.
// driveWake(on, get, load)
// on(type, fn(msg, fromId?)): the app's session messages (one to one: no fromId)
// get() → the loaded engine or null; load() → loads it (drive-host's create / createMesh)
'use strict';
function driveWake(on, get, load) {
on('drive.folders', (m, from) => {
if (get() || !m || !Array.isArray(m.list) || !m.list.length) return; // loaded: it heard this itself
const d = load();
if (d && d.heard) d.heard(m, from);
});
}
module.exports = { driveWake };