<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: CursorHop</title>
    <description>The latest articles on DEV Community by CursorHop (@cursorhop).</description>
    <link>https://dev.to/cursorhop</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3875311%2Fb74f90da-8a00-44f4-9909-16bb4e4973d6.png</url>
      <title>DEV Community: CursorHop</title>
      <link>https://dev.to/cursorhop</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cursorhop"/>
    <language>en</language>
    <item>
      <title>Building a Software KVM in Rust: Why I Ditched Synergy and Rolled My Own</title>
      <dc:creator>CursorHop</dc:creator>
      <pubDate>Sun, 12 Apr 2026 18:03:27 +0000</pubDate>
      <link>https://dev.to/cursorhop/building-a-software-kvm-in-rust-why-i-ditched-synergy-and-rolled-my-own-3dc5</link>
      <guid>https://dev.to/cursorhop/building-a-software-kvm-in-rust-why-i-ditched-synergy-and-rolled-my-own-3dc5</guid>
      <description>&lt;h1&gt;
  
  
  I built a Software KVM in Rust instead of paying for Synergy
&lt;/h1&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;I had a MacBook and a Windows desktop on the same desk. Two mice, two keyboards, arms reaching back and forth all day. I wanted one of each.&lt;/p&gt;

&lt;p&gt;The fix is a &lt;strong&gt;software KVM&lt;/strong&gt;, a tool that lets you move your cursor from one machine to the next as if they share a single desktop. I tried the existing options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Synergy&lt;/strong&gt;: paid, constant disconnects&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Barrier&lt;/strong&gt;: dead fork, same disconnect bug&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mouse Without Borders&lt;/strong&gt;: Windows-only&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hardware KVM&lt;/strong&gt;: works, but breaks multi-monitor setups&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Nothing fit. So I built my own. It's called &lt;a href="https://cursorhop.com" rel="noopener noreferrer"&gt;CursorHop&lt;/a&gt; and the core engine is written in Rust.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Rust
&lt;/h2&gt;

&lt;p&gt;Three reasons, in order of importance.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Latency is the whole game
&lt;/h3&gt;

&lt;p&gt;A software KVM lives or dies by input latency. Any noticeable delay breaks the illusion and the tool feels broken. My target was &lt;strong&gt;under 1ms of software overhead&lt;/strong&gt;, leaving the rest of the budget for network round-trip time.&lt;/p&gt;

&lt;p&gt;Rust gives you that budget. No GC pauses. No runtime overhead. Deterministic allocations. For input-path code, nothing else comes close.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Memory safety without a runtime
&lt;/h3&gt;

&lt;p&gt;A KVM app runs 24/7 with low-level access to your input devices. A crash here isn't just annoying. It can take down your desktop session.&lt;/p&gt;

&lt;p&gt;Rust's ownership model eliminates entire classes of bugs at compile time: use-after-free, data races, null pointer dereferences, buffer overflows. The compiler refuses to build broken code.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Native cross-platform binaries
&lt;/h3&gt;

&lt;p&gt;One Rust codebase compiles to Windows and macOS. Binaries are small (under 10MB), start instantly, and don't ship an embedded browser runtime with every install.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;p&gt;The hot path looks like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Capture&lt;/strong&gt;: OS-specific hooks grab mouse and keyboard events. &lt;code&gt;SetWindowsHookEx&lt;/code&gt; on Windows, &lt;code&gt;CGEventTap&lt;/code&gt; on macOS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Encrypt&lt;/strong&gt;: Events go over the &lt;a href="https://noiseprotocol.org/" rel="noopener noreferrer"&gt;Noise protocol&lt;/a&gt; (same family as WireGuard). Mutual auth, forward secrecy, low overhead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transport&lt;/strong&gt;: UDP over LAN. No TCP handshake tax on every packet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discovery&lt;/strong&gt;: mDNS. Machines find each other automatically, no IP configuration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inject&lt;/strong&gt;: Events replayed on the target machine via &lt;code&gt;SendInput&lt;/code&gt; or &lt;code&gt;CGEventPost&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;End-to-end latency is well under 1ms on a wired LAN. 2 to 4ms on Wi-Fi. Humans can't perceive either.&lt;/p&gt;

&lt;h2&gt;
  
  
  What surprised me
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;mDNS is still weird in 2026.&lt;/strong&gt; Different OSes handle multi-interface responses differently, especially when machines have both Wi-Fi and Ethernet active. I ended up writing a minimal mDNS responder because the existing Rust crates had edge cases that bit me.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mac and Windows key mapping is genuinely hard.&lt;/strong&gt; &lt;code&gt;Cmd&lt;/code&gt; to &lt;code&gt;Ctrl&lt;/code&gt; mapping works most of the time, except when it doesn't. Dead keys and international layouts took longer than I'd like to admit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Clipboard sync is a minefield.&lt;/strong&gt; Text is easy. Images are okay. Rich content like tables from Excel or styled HTML from a browser is a nightmare because every OS represents it differently. I ended up normalizing to a handful of canonical formats.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Users hate subscriptions more than I expected.&lt;/strong&gt; I priced CursorHop as a one-time purchase because it's what I'd want as a buyer. The response has been overwhelmingly positive.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why paid, not open source
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;This is the question I get most.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Short answer: I want to keep building CursorHop for years, not abandon it in six months. Paid means I can justify spending time on it. Most open-source projects in this specific space have died because nobody wants to handle the long tail of OS quirks alone.&lt;/p&gt;

&lt;p&gt;There's a 7-day free trial with core features. Pricing is one-time, starting at $10 for the basic tier and up to $35 for the multi-machine version.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;If you have more than one computer on your desk, try it for a week. I'd genuinely love feedback, especially on edge cases I haven't hit yet.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://cursorhop.com" rel="noopener noreferrer"&gt;cursorhop.com&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Questions about the Rust architecture, the Noise integration, or the pricing tradeoff? Ask in the comments, I'll answer everything.&lt;/p&gt;

</description>
      <category>rust</category>
      <category>showdev</category>
      <category>indiehackers</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
