[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112933":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":13,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":29,"discoverSource":30},112933,"screen-ferry","icloudza\u002Fscreen-ferry","icloudza","ScreenFerry：在多台电脑之间共享一套键盘鼠标（Mac、Windows 任意搭配），同步剪贴板、互传文件",null,"Rust",81,12,2,10,0,16,27,6,58.04,"Apache License 2.0",false,"main",true,[],"2026-11-10 13:39:27","2026-11-23 13:48:08","\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"assets\u002Freadme\u002Fhero-en-dark.png\">\n  \u003Cimg src=\"assets\u002Freadme\u002Fhero-en-light.png\" alt=\"ScreenFerry: one keyboard and mouse for all your computers\">\n\u003C\u002Fpicture>\n\n[![CI](https:\u002F\u002Fgithub.com\u002Ficloudza\u002Fscreen-ferry\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Ficloudza\u002Fscreen-ferry\u002Factions\u002Fworkflows\u002Fci.yml)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT%20OR%20Apache--2.0-blue)](#license)\n\nEnglish | [简体中文](README.zh-CN.md)\n\nOne keyboard and mouse for several computers. ScreenFerry shares a keyboard and mouse between your computers, Mac or Windows in any combination, syncs the clipboard and sends files, all over TLS 1.3.\n\n## Features\n\n- **Keyboard and mouse sharing**: push the cursor off a screen edge to move to the next computer. Keys travel as physical keys, so keyboard layouts and input methods don't get in the way. Caps Lock stays in sync and media keys are forwarded.\n- **Many computers, either direction**: any computer can be the controlling one, and one can control several, arranged on any side.\n- **Clipboard**: plain text, formatted text and images, synced when the cursor moves over.\n- **Files**: drag them to a screen edge to send. Interrupted transfers resume after reconnecting.\n- **Per-device settings**: pointer speed (DPI), scroll direction and speed, modifier keys and key mappings, accidental-switch protection.\n- **Secure**: confirm a 6-digit pairing code the first time, then only the paired certificate fingerprint is trusted.\n- **Easy to connect**: automatic discovery on the local network. Where discovery is blocked, connect by address or invite from the controlling computer.\n- **Lightweight**: a Rust background service in the tray. The settings window starts on demand and exits when closed.\n- **Automatic updates**: checks once a day, downloads in the background, and installs when you choose Restart to Update. Every update is signature-checked first.\n- **English and Chinese**: the settings window, tray menu and installer come in English and Simplified Chinese. They follow the system language, and you can switch in Settings → Appearance.\n\n## How it works\n\n```mermaid\nflowchart LR\n  subgraph S[\"Controlling computer (keyboard and mouse)\"]\n    A[\"Background service\u003Cbr\u002F>captures input\"]\n    UA[\"Settings window\"]\n  end\n  subgraph C[\"Controlled computer\"]\n    B[\"Background service\u003Cbr\u002F>injects input\"]\n    UB[\"Settings window\"]\n  end\n  UA -.-|local IPC| A\n  A ==>|\"Input connection\u003Cbr\u002F>keys, mouse, switching\"| B\n  A \u003C-->|\"Data connection\u003Cbr\u002F>clipboard, files\"| B\n  B -.-|local IPC| UB\n```\n\nEach computer runs a background service that captures or injects input and handles networking and sync. The settings window is a separate process that talks to it over loopback.\nEach pair of devices keeps two TLS 1.3 connections, so a large file transfer never slows down the keyboard and mouse.\n\nTrust is set up on the first connection:\n\n```mermaid\nsequenceDiagram\n  participant C as Controlled\n  participant S as Controlling\n  S -->> C: mDNS announcement (or connect by address, or invite)\n  C ->> S: TLS 1.3 handshake, both sides present device certificates\n  opt First connection\n    C ->> S: Pairing\n    Note over C,S: Both sides show the same 6-digit code. Once confirmed, each remembers the other's certificate fingerprint\n  end\n  C ->> S: Open the input and data connections\n```\n\n## Install\n\n| System | How |\n|---|---|\n| macOS | Download `ScreenFerry-\u003Cversion>-macos-universal.dmg` from [Releases](https:\u002F\u002Fgithub.com\u002Ficloudza\u002Fscreen-ferry\u002Freleases\u002Flatest), open it and drag ScreenFerry into Applications. On first launch, allow ScreenFerry in System Settings → Privacy & Security → Accessibility. |\n| Windows | Download `ScreenFerry-\u003Cversion>-windows-x64-setup.exe` from [Releases](https:\u002F\u002Fgithub.com\u002Ficloudza\u002Fscreen-ferry\u002Freleases\u002Flatest) and run it. |\n\nScreenFerry checks for updates once a day and downloads them in the background. Choose Restart to Update when it suits you; you can turn automatic checks off in Settings → About. Updates are verified against a built-in signing key before anything is installed.\n\nAbout the Windows installer:\n\n- It isn't code-signed. If SmartScreen blocks it, choose More info → Run anyway.\n- It installs into Program Files by default (you can pick another drive) and allows ScreenFerry through the firewall on private and domain networks.\n- The installer has an optional task, off by default: “Allow paired computers to control Windows permission prompts (UAC)”. It installs a system service that only handles keyboard and mouse, so the other computer can operate permission prompts, the lock screen and programs running as administrator. Besides pairing, an administrator must authorize that computer separately. Network connections, clipboard and files stay in the normal user process.\n- Updates install silently after one administrator prompt. Without secure input, use this computer's own keyboard and mouse to approve it. Uninstall from Settings → Apps; your settings and pairings are kept.\n\n## Usage\n\n1. Open ScreenFerry on both computers. By default a Mac controls and a Windows PC is controlled; change this in Settings → This Computer. When both computers run the same system, set the one without the keyboard and mouse to Be Controlled.\n2. On the controlled computer, choose the controlling one on the Devices page and confirm the 6-digit pairing code on both sides. If it isn't found on the network, use Connect by Address, or Invite a Computer from the controlling one. The address is at the top of the other computer's Devices page.\n3. On the controlling computer, arrange the screens on the Layout page, then push the cursor off a screen edge to move over.\n\nIf something goes wrong, export a diagnostics file from Log → Diagnostics and attach it when you [report an issue](https:\u002F\u002Fgithub.com\u002Ficloudza\u002Fscreen-ferry\u002Fissues\u002Fnew?template=bug_report.yml).\nDevice names, user names and file names are replaced with placeholders.\n\nWhile the cursor is on another screen, press \u003Ckbd>Ctrl\u003C\u002Fkbd>+\u003Ckbd>Option\u003C\u002Fkbd>+\u003Ckbd>Esc\u003C\u002Fkbd> (\u003Ckbd>Ctrl\u003C\u002Fkbd>+\u003Ckbd>Alt\u003C\u002Fkbd>+\u003Ckbd>Esc\u003C\u002Fkbd> when Windows controls) to bring it back.\nQuit other keyboard and mouse sharing tools first so they don't compete for input.\n\n### Command line\n\n| Command | What it does |\n|---|---|\n| `screenferry` | Run in the background with a tray icon and open the settings window |\n| `screenferry send \u003Cfile>…` | Send files or folders to the connected computer |\n| `screenferry peers` \u002F `forget \u003Cdevice>` | List or remove paired devices |\n| `screenferry quit` | Quit the running ScreenFerry |\n| `screenferry serve` \u002F `connect [address]` | Run in the terminal without the saved settings (for debugging) |\n\nSee `screenferry --help` for all options. The command line and diagnostics log are in Chinese.\n\n### Where data lives\n\n| | macOS | Windows |\n|---|---|---|\n| Settings, pairings | `~\u002FLibrary\u002FApplication Support\u002FScreenFerry\u002F` | `%APPDATA%\\ScreenFerry\\` |\n| Logs, runtime files | `~\u002FLibrary\u002FCaches\u002FScreenFerry\u002F` | `%LOCALAPPDATA%\\ScreenFerry\\` |\n\n## Build from source\n\nYou need Rust (the version is pinned in `rust-toolchain.toml` and installed by rustup) and Flutter 3.47.\nmacOS also needs Xcode; Windows also needs Visual Studio 2022 (Desktop development with C++) and [Inno Setup](https:\u002F\u002Fjrsoftware.org\u002Fisdl.php) 7.1 or later.\n\n```bash\ncargo xtask bundle\n```\n\nIt builds for the system it runs on and puts the result in `target\u002Fbundle\u002F`: `ScreenFerry.app` and its update package `ScreenFerry-\u003Cversion>-macos-\u003Carch>.zip` on macOS (add `--dmg` for the installer disk), `ScreenFerry-\u003Cversion>-windows-x64-setup.exe` on Windows. Releases are made with `cargo xtask release \u003Cversion>`; see ADR 0014.\nOn macOS the app is signed with a Developer ID certificate from the keychain when there is one (or the one named by `SCREENFERRY_SIGN_IDENTITY`). Otherwise it gets an ad-hoc signature, and Accessibility permission has to be granted again after every rebuild.\n\n## Development\n\n```mermaid\nflowchart TB\n  app[\"Settings window · Flutter\"] -.->|local IPC| L4\n  subgraph L4[\"L4 Applications\"]\n    daemon[\"ferry-daemon → screenferry\"]\n  end\n  subgraph L3[\"L3 Assembly\"]\n    engine[\"ferry-engine\"]\n  end\n  subgraph L2[\"L2 Adapters\"]\n    direction LR\n    pm[\"platform-macos\"] ~~~ pw[\"platform-windows\"] ~~~ net[\"net\"] ~~~ store[\"store\"] ~~~ ipc[\"ipc\"]\n  end\n  subgraph L1[\"L1 Pure logic\"]\n    direction LR\n    proto[\"proto\"] ~~~ core[\"core\"] ~~~ trust[\"trust\"] ~~~ update[\"update\"] ~~~ platform[\"platform (traits)\"]\n  end\n  subgraph L0[\"L0 Domain types\"]\n    types[\"ferry-types\"]\n  end\n  L4 --> L3 --> L2 --> L1 --> L0\n```\n\nEach layer depends only on lower layers. `unsafe` appears only in `ferry-platform-*`, and system-specific code only there and in the L4 applications.\n\n```bash\ncargo test --workspace\ncargo xtask lint\n```\n\nRun `flutter test` in `app\u002F` for the settings window. The full pre-commit checklist is in [AGENTS.md](AGENTS.md).\n\nThe engineering docs are written in Chinese:\n\n| Document | Contents |\n|---|---|\n| [AGENTS.md](AGENTS.md) | Engineering rules: layout, layers, naming, tests |\n| [docs\u002Farchitecture.md](docs\u002Farchitecture.md) | Architecture overview and crate dependencies |\n| [docs\u002Fprotocol.md](docs\u002Fprotocol.md) | Wire protocol |\n| [docs\u002Fipc.md](docs\u002Fipc.md) | Local IPC between the settings window and the background service |\n| [docs\u002Fadr\u002F](docs\u002Fadr\u002F) | Architecture decision records |\n\n## License\n\nLicensed under either [MIT](LICENSE-MIT) or [Apache-2.0](LICENSE-APACHE), at your option. Unless you state otherwise, any contribution you submit is licensed the same way.\n\n## Friends\n\n- [LINUX DO](https:\u002F\u002Flinux.do\u002F)\n","ScreenFerry 是一款跨平台键鼠共享工具，支持在 macOS 与 Windows 电脑间任意组合共享同一套键盘和鼠标，并同步剪贴板（含文本、富文本及图片）与拖拽传输文件。基于 Rust 开发，采用 TLS 1.3 加密通信，具备自动局域网发现、双向控制、中断续传、设备级个性化设置（如 DPI、键位映射）及证书级安全配对。适用于多屏办公、开发测试、数字内容创作等需频繁切换设备的本地协作场景。","2026-11-24 04:44:39","CREATED_QUERY"]