nectarlink README

The project's README from github.com/thtbee/nectarlink. As one markdown file: README.md.

NectarLink

Your Android phone and your PC, working as one.

Notifications, messages, calls, clipboard, files, photos, screen mirroring and phone apps in windows, between Android and Windows 10 (2004+), Windows 11 or Linux. Free and open source. Local-first, end-to-end encrypted, no account and no cloud.

Hi, I'm Bee, and yes, a bee built an app called NectarLink. I build cool stuff in the open on 𝕏 @thtbee_, so come see what's next. Feedback, bugs or ideas? DM me directly, or come hang out in the Hive on Discord.

Latest release CI Apps: GPL-3.0-or-later Core: MPL-2.0 Discord

Buy me some honey

NectarLink for Windows: Home with the phone's notifications and music playing, Glass theme

NectarLink came out of my own frustration. I kept juggling Phone Link for notifications and messages, KDE Connect for the clipboard and LocalSend for files, and always wanted one app that did all of it. So I made one.

It covers what those three did for me, with one app on each side, plus a lot of new features I wanted that I think you'll enjoy having too.

Download

Download Needs
Windows (x64) Installer (.exe) Windows 10 (2004+) or 11, 64-bit Intel or AMD (Phone as webcam needs Windows 11)
Windows (ARM64) Installer (.exe) Windows 11 on ARM (Snapdragon)
Linux (x86_64) One command, or a .deb, .rpm, AppImage or .tar.gz Ubuntu 24.04 or newer, Debian 13, Fedora 40 or newer, 64-bit Intel or AMD
Android App (.apk) Android 8.0 or newer

The apps update themselves from GitHub Releases and check every download against its SHA-256 sums.

On Linux

One command installs NectarLink with everything it needs, and shows each step as it goes:

curl -fsSL https://github.com/thtbee/nectarlink/releases/latest/download/install.sh | sh

It picks the package for your system (.deb with apt, .rpm with dnf or zypper, the tarball elsewhere), checks it against the release's SHA-256 sums and installs it with its dependencies. Then it sets up the phone as a webcam, the phone as a keyboard and mouse, and the firewall for your local network only. To remove it all again, end the same command with sh -s -- --uninstall instead of sh. See Installing on Linux for the details.

[!NOTE] SmartScreen may warn about the Windows installer the first time, because it isn't code-signed yet: choose More info, then Run anyway. On Android, allow your browser or file manager to install apps when asked.

[!IMPORTANT] In India and many other countries, Google Play Protect blocks the APK with no Install anyway button. Pause Scan apps with Play Protect while you install it (Play Store › your profile › Play Protect › Settings), then turn it back on, or install it from a PC with adb install. See Play Protect blocks the APK.

Get started

  1. Install NectarLink on your PC and on your phone.
  2. On the PC, the setup walkthrough shows a QR code. Scan it with the phone (from the NectarLink app or any camera app), or pick the PC from the phone's list of nearby devices and compare a 6-digit code. A USB cable works too, with Android's adb running on the PC.
  3. Allow what you want to share. Every feature has its own switch per device, and the sensitive ones are off until you turn them on.
  4. Optional: set up Wireless debugging once in the phone app for the features Android reserves for privileged apps (phone apps in windows, real touch input, background clipboard sync). No root, nothing else to install.

The user guide walks through every step and feature.

The whole setup in 74 seconds: installing the phone app, pairing by QR code, Assist and Elevated, and the connected Home on both:

https://github.com/user-attachments/assets/8561261f-bf59-4257-85b5-9ecde4827dd8

What it does

Stay on top of your phone

Move things between devices

Use your phone from the PC

Use your PC from the phone

Camera and sound

And more: media controls both ways, battery alerts, Find my device, a searchable Timeline of everything that moved, a Command Palette (Ctrl+Alt+Space), a slide-out Shelf, a home-screen widget, and a Connection Doctor that finds and fixes what keeps devices from connecting. An optional Nectar Island at the top of the screen shows calls, music and transfers. Five themes, Hive, Bloom, Glass, Graphite and Fluent, each in light and dark. In English, German, Turkish, Simplified Chinese, Brazilian Portuguese, Vietnamese, Spanish, Russian, Japanese, Polish and Ukrainian.

Platform support

Feature Windows Linux macOS (Preview)
Pairing & mutual TLS Yes Yes Yes
Files & folder transfer Yes Yes Yes
Photos browser & download Yes Yes Yes
Continuity Camera Yes Yes Yes
Calls & SMS viewer Yes Yes Yes
Phone quick toggles & volume Yes Yes Yes
Clipboard text & image sync Yes Yes Yes (two-way text, incoming photo)
System notifications Yes Yes Yes (system banners)
Phone screen mirroring Yes Yes Yes (H.264)
Screen recording (MP4) Yes Yes Yes (H.264)
PC audio stream / phone mic Yes Yes Yes (PC audio needs Screen Recording permission)
Phone as webcam Yes Yes (with v4l2loopback) Not yet (needs a Developer ID signed build)
Phone storage in the file manager Yes Yes Yes (Finder via WebDAV)

Private by design

Details: Privacy and security and the security model.

Screenshots

Hive is an exclusive theme: honey, with a living honeycomb that breathes behind the app.

Hive, light Hive, dark
Home in the Hive theme, light Home in the Hive theme, dark

Also Bloom, soft and colorful; Glass, translucent cards over the Windows backdrop; and Graphite, ink on paper. All in light and dark.

Bloom Glass Graphite
Home with notifications and music playing on the PC, Bloom theme Home with notifications and music playing on the PC, Glass theme Home with notifications and music playing on the PC, Graphite theme
Settings, Bloom theme Settings, Glass theme Settings, Graphite theme, dark

The Apps page with two phone apps open in their own windows
The phone's apps on the PC, each in a window of its own.

Messages: a conversation from the phone, answered on the PC
The phone's texts on the PC.

The phone's screen mirrored in a window next to Home
The whole phone screen in a window, with mouse and keyboard control.

Pairing a phone by QR code, next to the Android app's Home with the PC connected
Pairing by QR code, and the Android app once connected.

How it works

 Android app (Kotlin, Compose)            Desktop app (Qt Quick, Rust)
          │ UniFFI                                │ cxx-qt
          ▼                                       ▼
 ┌─────────────────────┐   QUIC (iroh),   ┌─────────────────────┐
 │  nectarlink-core    │◄────────────────►│  nectarlink-core    │
 │  pairing, sessions, │  end-to-end      │  pairing, sessions, │
 │  storage, features  │  encrypted       │  storage, features  │
 └─────────────────────┘                  └─────────────────────┘

Repository layout

core/
  nectarlink-protocol/   Message types, framing, pairing cryptography      (MPL-2.0)
  nectarlink-core/       Identity, trust store, pairing, sessions, features (MPL-2.0)
  nectarlink-ffi/        UniFFI bindings used by the Android app          (MPL-2.0)
  nectarlink-adb/        Client for the PC's adb, for USB connections      (MPL-2.0)
  nectarlink-actions/    Agent action registry and gateway                 (MPL-2.0)
  nectarlink-mcp/        MCP server and CLI for AI agents (`nectarlink-agent`) (GPL)
  nectarlink-cli/        Command-line client (`nectarlink`)                (GPL)
desktop/
  app/                   Desktop app: Rust host, cxx-qt bridge, QML UI     (GPL)
  vcam/                  Windows 11 virtual camera Media Foundation DLL    (GPL)
  credprov/              Windows credential provider for phone unlock      (GPL)
  pam-unlock/            Linux-PAM verifier and enrollment for phone unlock (GPL)
  shellmenu/             Windows Explorer context-menu send handler        (GPL)
  installer/             NSIS installer script and Sparse Package manifest (GPL)
  packaging/             Linux packages, macOS DMG script, install script  (GPL)
android/                 Android app: Kotlin and Jetpack Compose (API 26+) (GPL)
assets/fonts/            Fonts both apps ship with                         (OFL-1.1)
assets/brand/            The app icon (see the trademark policy)
tools/xtask/             Code generation (theme tokens) and checks         (GPL)
third_party/             Patched copies of dependencies, under their own licenses
spikes/                  Technical experiments with their results
scripts/                 Build, packaging and check scripts
docs/                    Guide, technical docs, protocol, design system    (CC BY 4.0)

Building from source

Part Needs
Core and CLI Rust (stable, pinned in rust-toolchain.toml)
Windows app Windows 11, Visual Studio 2022 Build Tools (C++), Qt 6.12 for MSVC 2022 x64
Linux app Ubuntu 24.04 or newer (glibc 2.39), a C++17 compiler, pkg-config, the X11, Wayland and D-Bus development packages, Qt 6.12 (gcc_64, with Qt Shader Tools and Qt Wayland Compositor)
macOS app macOS 14+, Xcode Command Line Tools, Qt 6.12 (or Homebrew Qt 6)
Android app Android SDK (platform 37, NDK 30.0.16248370), JDK 17 or newer, cargo-ndk (see android/README.md)

For Linux hardware video encoding and decoding, install libavcodec-dev and libavutil-dev before building. The backend loads the matching FFmpeg runtime libraries when needed and tries available GPU drivers. Release packages support FFmpeg 6 through 9: the Ubuntu 24.04 release build includes an FFmpeg 6 backend, and separate adapters support versions 7, 8 and 9. Source builds use the matching runtime for their headers. Without matching libraries or a working hardware backend, the existing software H.264 path remains available. HEVC encoding requires hardware; if unavailable, screen sharing falls back to H.264.

cargo test -p nectarlink-protocol -p nectarlink-core -p nectarlink-ffi   # core and tests
cargo run -p nectarlink-cli -- --help                                     # command-line client
cargo run -p nectarlink-desktop                                           # desktop app (Qt's bin on PATH)
cd android && ./gradlew assembleDebug                                     # Android app
./scripts/package.ps1    # Windows installer: target\package\Nectarlink-<version>-x64-setup.exe
./scripts/check.ps1      # every check CI runs; add -Android and -Arm64 for the full set

Releases are built by CI from a v* tag; see docs/technical/releasing.md.

Building the macOS app

Checked on Intel Macs (a 2019 MacBook Pro) with Qt 6.12.1 from the Qt online installer. Run the exports in the same Terminal tab as the build: a new tab forgets them, and build-dmg.sh then fails with "macdeployqt not found".

export PATH="$HOME/Qt/6.12.1/macos/bin:$PATH"
export QT_ROOT_DIR="$HOME/Qt/6.12.1/macos"
git clone https://github.com/thtbee/nectarlink.git
cd nectarlink
cargo run -p nectarlink-desktop                # run it
./desktop/packaging/macos/build-dmg.sh         # dist/Nectarlink-<version>-macos-<arch>.dmg

With Nix

Run or develop NectarLink using Nix flakes:

nix run                           # run desktop app
nix run .#cli                     # run CLI client
nix develop                       # enter development environment

Documentation

Questions and ideas

Ask questions, share ideas and show your setup in Discussions. Issues are for bugs and agreed feature work. For quick help and chat, there's the Hive on Discord.

Contributing

Contributions are welcome. Please read CONTRIBUTING.md first; for anything larger than a small fix, open an issue to agree on the approach. Contributions are accepted under the Developer Certificate of Origin, and everyone is expected to follow the Code of Conduct.

To translate NectarLink into your language, see docs/translating.md.

To report a security issue, follow SECURITY.md. Please don't open a public issue.

License

See LICENSE for which license applies where. The NectarLink name and logo are covered by the trademark policy.

nectarlink (thtbee/nectarlink)

remote-control
Searching Database…

What is this?NectarLink links your Android phone with a Windows PC (plus Linux, and macOS in preview) so notifications, messages, calls, clipboard, files, photos, screen mirroring and phone apps work across both devices, replacing the need for separate tools like Phone Link, KDE Connect and LocalSend.
Is this one app or several separate programs?It is one project built from two native apps sharing a common Rust core: a Windows 11 app using Qt Quick and Rust, and an Android app using Jetpack Compose; Linux is also supported and macOS is in preview.
How do I get it paired and running?Install NectarLink on both the PC and the phone, then scan the QR code shown during the PC's setup walkthrough with the phone (or compare a 6-digit code, or use a USB cable). After pairing, turn on whichever feature switches you want per device.
What OS versions do I need?Windows 11 64-bit Intel or AMD (ARM64 coming), Android 8.0 or newer, and on Linux Ubuntu 24.04+, Debian 13 or Fedora 40+; macOS 14+ is supported as a preview.
Does every feature work the same on every platform?No: the macOS preview is missing screen mirroring, screen recording, PC audio/mic streaming and phone-as-webcam, and HEVC screen sharing needs hardware support, falling back to H.264 without it. The Windows installer isn't code-signed yet so SmartScreen warns on first run, and in some countries Google Play Protect blocks installing the Android APK outright.
What inspired NectarLink?The author was juggling Phone Link for notifications and messages, KDE Connect for clipboard, and LocalSend for files, and wanted one app that covered all of it plus extra features they wanted themselves.
Can I use my phone as a PC webcam or microphone?Yes, it turns the phone into a webcam for Zoom, Teams, Meet and OBS, lets it act as a speaker or microphone for the PC's audio, and offers a Continuity Camera mode to snap a photo or scan a document straight to the PC clipboard.
What is the Deck feature?Deck is a Stream Deck-style grid of buttons on the PC for media controls, shortcuts, apps, OBS Studio commands and more, with live volume and mute shown from the phone.
How can I run a phone app inside a window on my PC?NectarLink lets you open any phone app in its own window on the PC with a taskbar icon of its own, running alongside the phone's own screen, using real touch input once Wireless debugging is enabled.
Creator
thtbee
Size
34.1 MB
Stars
7.7K
Age
1mo
Commits · 90 Days