<?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: Neerav Jha</title>
    <description>The latest articles on DEV Community by Neerav Jha (@neerav34).</description>
    <link>https://dev.to/neerav34</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4068766%2Fe1725357-9603-441e-af36-2fae67d588ad.png</url>
      <title>DEV Community: Neerav Jha</title>
      <link>https://dev.to/neerav34</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/neerav34"/>
    <language>en</language>
    <item>
      <title>Built a phone-to-phone file transfer tool over raw WebRTC — no server ever touches the bytes</title>
      <dc:creator>Neerav Jha</dc:creator>
      <pubDate>Sat, 08 Aug 2026 12:02:52 +0000</pubDate>
      <link>https://dev.to/neerav34/built-a-phone-to-phone-file-transfer-tool-over-raw-webrtc-no-server-ever-touches-the-bytes-1nmf</link>
      <guid>https://dev.to/neerav34/built-a-phone-to-phone-file-transfer-tool-over-raw-webrtc-no-server-ever-touches-the-bytes-1nmf</guid>
      <description>&lt;p&gt;AirDrop is Apple-only. Quick Share is Android/Windows-only. If you're on iPhone and your friend's on Android, the standard move is still "email it to yourself." That gap annoyed me enough to build something for it.&lt;/p&gt;

&lt;p&gt;QRDrop: two browsers connect over an encrypted WebRTC data channel and stream the file directly, peer to peer. My server only ever sees signaling messages for setting up the connection — never the file bytes.&lt;/p&gt;

&lt;p&gt;A few implementation details I think this sub might find interesting:&lt;/p&gt;

&lt;p&gt;Resume is receiver-authoritative. Instead of the sender tracking progress, the receiver tells the sender where it left off on every (re)connect. That means a fresh connection and a resumed connection run through the exact same code path — there's no separate "resume logic" to maintain and let drift out of sync with the main path. If the connection drops during file 8 of 10, only file 8 rewinds.&lt;/p&gt;

&lt;p&gt;PIN protection gates the manifest, not just the transfer. If you set a PIN, a locked session leaks nothing pre-auth — not filenames, not sizes, not even the sender's device type. I also capped it at 5 digits with a hard attempt limit instead of 6 digits with unlimited attempts, since the attempt limit is what actually matters for a PIN this short — 6 digits unlimited is trivially brute-forceable, 5 digits with a limit isn't.&lt;/p&gt;

&lt;p&gt;The "peer-to-peer" label is read off the actual ICE candidate pair, not just assumed. If the connection actually gets relayed through TURN, the UI says so instead of claiming direct P2P.&lt;/p&gt;

&lt;p&gt;Some numbers if useful:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;~11 MB/s peak throughput (loopback test)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;64 MB transfer, sha256-verified after deliberately killing the connection at 5% to test resume&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;134 kB initial bundle size&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;152 automated tests, including real-Chrome WebRTC transfers running in CI&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Runs on $0/month (Vercel Hobby + Render free tier, including the TURN relay fallback)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Works best when both devices are on the same LAN or one's tethered to the other's hotspot — there's a TURN relay fallback for when direct connection isn't possible, but it's running on a free tier so don't expect great throughput from it.&lt;/p&gt;

&lt;p&gt;Live: &lt;a href="https://qrdrop-seven.vercel.app" rel="noopener noreferrer"&gt;https://qrdrop-seven.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Code: &lt;a href="https://github.com/neerav34/qrdrop" rel="noopener noreferrer"&gt;https://github.com/neerav34/qrdrop&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Full Write-up: &lt;a href="https://medium.com/@neeravjha444/qrdrop" rel="noopener noreferrer"&gt;https://medium.com/@neeravjha444/qrdrop&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Open to feedback, especially from anyone who's built WebRTC data channels at scale — curious if there are connection-reliability edge cases I haven't hit yet.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqmr2s43dol4io3kg3kbg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqmr2s43dol4io3kg3kbg.png" alt=" " width="800" height="808"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxxql68vsll4e9fb2gust.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxxql68vsll4e9fb2gust.png" alt=" " width="800" height="1242"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1jpkrk5culprfiqhj68n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1jpkrk5culprfiqhj68n.png" alt=" " width="800" height="695"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F633bpc0xzgu2qwv3euvg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F633bpc0xzgu2qwv3euvg.png" alt=" " width="800" height="1246"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webrtc</category>
      <category>typescript</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
