<?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: John Davis</title>
    <description>The latest articles on DEV Community by John Davis (@unicomp21).</description>
    <link>https://dev.to/unicomp21</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%2F4220958%2Fa89f6130-c5de-4f78-b194-bfbe014f3374.jpg</url>
      <title>DEV Community: John Davis</title>
      <link>https://dev.to/unicomp21</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/unicomp21"/>
    <language>en</language>
    <item>
      <title>gRPC in the browser without grpc-web: the wire protocol over a WebRTC DataChannel</title>
      <dc:creator>John Davis</dc:creator>
      <pubDate>Sun, 01 Nov 2026 17:22:26 +0000</pubDate>
      <link>https://dev.to/unicomp21/grpc-in-the-browser-without-grpc-web-the-wire-protocol-over-a-webrtc-datachannel-43g3</link>
      <guid>https://dev.to/unicomp21/grpc-in-the-browser-without-grpc-web-the-wire-protocol-over-a-webrtc-datachannel-43g3</guid>
      <description>&lt;p&gt;grpc-web exists because browsers can't speak HTTP/2 trailers.&lt;br&gt;
The usual answer is a translation proxy in front of your service.&lt;br&gt;
We took a different one: run the actual gRPC wire protocol —&lt;br&gt;
length-prefixed frames, HPACK-free, all four call shapes — over a&lt;br&gt;
single WebRTC &lt;code&gt;RTCDataChannel&lt;/code&gt;, and generate the runtime for it&lt;br&gt;
from your &lt;code&gt;.proto&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;grpc-over-datachannels&lt;/strong&gt; is that experiment, grown up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dependency-free generated runtimes for 16 languages&lt;/strong&gt; —
JavaScript/TypeScript, Go, Rust, Python, Ruby, PHP, Lua, C,
C++, Dart, Java, Kotlin, Scala, Swift, C#, and Zig. Browser and
native. The generated code is stdlib-only; there is no grpc
library underneath it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Our own WebRTC stack.&lt;/strong&gt; ICE, DTLS, and SCTP written from
scratch, so the native clients don't depend on a WebRTC library
either.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Graded against stock gRPC.&lt;/strong&gt; The generated implementations are
tested against the reference implementations through a
TCP↔DataChannel proxy — the oracle is the real thing, not a
reimplementation of it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WebRTC-Direct.&lt;/strong&gt; A server prints one certhash multiaddr; a
client dials it. No signaling server. Direct on a LAN, through a
TURN relay behind symmetric NAT, or full ICE with STUN in peer
mode — with runnable examples in every language.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Kafka proxy in Rust.&lt;/strong&gt; &lt;code&gt;grpcdc.kafka.v1.Kafka&lt;/code&gt; exposes
Apache Kafka as a generated gRPC service, so any generated
client — including a browser tab — can produce and consume
without a Kafka client library. The same generated e2e suite
runs against Kafka and Redpanda in CI.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you only have thirty seconds, the whole pitch is a 2-minute&lt;br&gt;
video: &lt;a href="https://youtu.be/LwrXpnlMlgA" rel="noopener noreferrer"&gt;https://youtu.be/LwrXpnlMlgA&lt;/a&gt; — and the Kafka proxy gets&lt;br&gt;
its own: &lt;a href="https://youtu.be/KJ98a4ApZ4E" rel="noopener noreferrer"&gt;https://youtu.be/KJ98a4ApZ4E&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The part we're proudest of is also the strangest: almost&lt;br&gt;
everything in the repos is generated. The runtimes, the tests,&lt;br&gt;
the examples, and the docs come from recursive generators, so&lt;br&gt;
sixteen languages can't quietly drift apart. When a language&lt;br&gt;
misbehaves, we fix the generator, not sixteen codebases.&lt;/p&gt;

&lt;p&gt;Try it without installing anything — the stub generator runs in&lt;br&gt;
your browser: &lt;a href="https://browser-grpc.github.io/grpc-over-datachannels/app/" rel="noopener noreferrer"&gt;https://browser-grpc.github.io/grpc-over-datachannels/app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Code, releases (npm / PyPI / NuGet / GHCR / GitHub-hosted Maven):&lt;br&gt;
&lt;a href="https://github.com/browser-grpc/grpc-over-datachannels" rel="noopener noreferrer"&gt;https://github.com/browser-grpc/grpc-over-datachannels&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Longer write-ups, with the design trade-offs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://c100k.blogspot.com/2026/10/introducing-grpc-over-datachannels-grpc.html" rel="noopener noreferrer"&gt;https://c100k.blogspot.com/2026/10/introducing-grpc-over-datachannels-grpc.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://c100k.blogspot.com/2026/10/kafka-over-grpc-rust-kafka-proxy-with.html" rel="noopener noreferrer"&gt;https://c100k.blogspot.com/2026/10/kafka-over-grpc-rust-kafka-proxy-with.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Questions and hostile edge cases welcome — the NAT and framing ones especially.&lt;/p&gt;

</description>
      <category>grpc</category>
      <category>webrtc</category>
      <category>rust</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
