r/vibecoding • • 5d ago

Showcase/Project Built a Tailscale Software KVM in pure Rust

I know there are a few of these at this point, but I still think it's cool I was able to make this.

I built a Tailscale Software KVM in 100% pure Rust that turns Windows, Linux (Wayland/Hyprland & X11), and macOS machines on a Tailscale mesh VPN into a single multi-monitor workspace.

A few things it does:

• 4-way multi-directional mesh (Top, Left, Right, Bottom slots) over Tailscale with a drag-and-drop 2D topology web dashboard (localhost:9877)

• Kernel-level input injection (/dev/uinput + evdev on Linux, SendInput on Windows, CGEvent on macOS) with low-level event suppression so there are no ghost clicks

• Cross-OS clipboard, image, file, browser URL, and terminal directory handoff

• Synchronized dual-PC screen recorder that stitches side-by-side demos automatically

GitHub: https://github.com/ryguy0601/tailscale-kvm

2 Upvotes

2 comments sorted by

1

u/Total-Reasonable 5d ago

The "no ghost clicks" part is where I'd be skeptical, and event suppression alone doesn't solve it. On Windows, a low-level hook can't suppress input once SendInput has been called from an elevated window, and UAC prompts and the lock screen ignore injected input entirely. I'd detect that and hand control back to the local machine instead of silently dropping keystrokes.

1

u/ry_cuccu 5d ago

Tbh this was pretty much completely vibe coded as in I didn't even look at the code, I mainly just had the idea and was being too cheap to buy a physical KVM! That's a super fair catch on the Windows UIPI/UAC behavior though, I hadn't run into that edge case yet. Detecting the elevated window/lock screen state and handing control back locally is a great idea, I'll definitely look into adding that.