<?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: Osman ASLAN</title>
    <description>The latest articles on DEV Community by Osman ASLAN (@oaslananka).</description>
    <link>https://dev.to/oaslananka</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%2F1557121%2Fb796ac62-6264-4f37-9bd0-d9cf96d95fee.jpeg</url>
      <title>DEV Community: Osman ASLAN</title>
      <link>https://dev.to/oaslananka</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/oaslananka"/>
    <language>en</language>
    <item>
      <title>I built a2a-mesh: a TypeScript runtime for A2A-based agent communication</title>
      <dc:creator>Osman ASLAN</dc:creator>
      <pubDate>Mon, 06 Apr 2026 18:13:41 +0000</pubDate>
      <link>https://dev.to/oaslananka/i-built-a2a-mesh-a-typescript-runtime-for-a2a-based-agent-communication-236j</link>
      <guid>https://dev.to/oaslananka/i-built-a2a-mesh-a-typescript-runtime-for-a2a-based-agent-communication-236j</guid>
      <description>&lt;p&gt;Over the last 6 months, I’ve been building &lt;strong&gt;a2a-mesh&lt;/strong&gt; in nights and weekends.&lt;/p&gt;

&lt;p&gt;It started from a simple frustration:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why do we keep rebuilding the same infrastructure in every agent project?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you try to make agents built with different frameworks work together, the business logic may be different, but the infrastructure work tends to repeat:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;protocol glue&lt;/li&gt;
&lt;li&gt;auth&lt;/li&gt;
&lt;li&gt;retries&lt;/li&gt;
&lt;li&gt;streaming&lt;/li&gt;
&lt;li&gt;service discovery&lt;/li&gt;
&lt;li&gt;observability&lt;/li&gt;
&lt;li&gt;operational controls&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That repetition is what led me to build &lt;strong&gt;a2a-mesh&lt;/strong&gt;.&lt;/p&gt;

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

&lt;p&gt;In practice, cross-framework agent communication is rarely just “connect A to B”.&lt;/p&gt;

&lt;p&gt;You usually end up stitching together transport logic, compatibility layers, middleware, tracing, error handling, and deployment concerns.&lt;/p&gt;

&lt;p&gt;That gets messy fast, especially if you want something that is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;reusable&lt;/li&gt;
&lt;li&gt;observable&lt;/li&gt;
&lt;li&gt;secure&lt;/li&gt;
&lt;li&gt;maintainable&lt;/li&gt;
&lt;li&gt;production-oriented&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is a2a-mesh?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;a2a-mesh&lt;/strong&gt; is an open-source TypeScript runtime/platform for A2A-based agent-to-agent communication.&lt;/p&gt;

&lt;p&gt;My goal is to provide a reusable foundation for teams building multi-agent systems in TypeScript, especially when interoperability and operations start to matter.&lt;/p&gt;

&lt;p&gt;Current scope includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;core TypeScript runtime and client/server building blocks&lt;/li&gt;
&lt;li&gt;adapters for OpenAI, Anthropic, LangChain, Google ADK, LlamaIndex, and CrewAI&lt;/li&gt;
&lt;li&gt;MCP ↔ A2A bridge&lt;/li&gt;
&lt;li&gt;retry/backoff and circuit breaker patterns&lt;/li&gt;
&lt;li&gt;JWT auth and SSRF protection&lt;/li&gt;
&lt;li&gt;OpenTelemetry tracing&lt;/li&gt;
&lt;li&gt;service registry and control plane UI&lt;/li&gt;
&lt;li&gt;project scaffolding for faster setup&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A minimal example
&lt;/h2&gt;

&lt;p&gt;The intended experience is to make agent setup feel lightweight, while keeping the operational layers available when needed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;MyAgent&lt;/span&gt; &lt;span class="kd"&gt;extends&lt;/span&gt; &lt;span class="nc"&gt;OpenAIAdapter&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;constructor&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;super&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;card&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;gpt-4o&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;client&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;openai&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;MyAgent&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;start&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3001&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Of course, the real value is not just in starting an agent process.&lt;/p&gt;

&lt;p&gt;It’s in everything around it:&lt;br&gt;
how agents connect, how failures are handled, how requests are traced, how services are discovered, and how the system stays maintainable as it grows.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I wanted from the project
&lt;/h2&gt;

&lt;p&gt;I wanted this project to feel useful in two ways:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. As a real developer tool
&lt;/h3&gt;

&lt;p&gt;Something people can actually try in their own agent systems.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. As infrastructure that scales with complexity
&lt;/h3&gt;

&lt;p&gt;Not just a demo layer, but a foundation that can support:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;multiple agents&lt;/li&gt;
&lt;li&gt;multiple frameworks&lt;/li&gt;
&lt;li&gt;operational visibility&lt;/li&gt;
&lt;li&gt;safer defaults&lt;/li&gt;
&lt;li&gt;cleaner extension points&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Design goals
&lt;/h2&gt;

&lt;p&gt;The project is shaped around a few principles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;practical interoperability&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;TypeScript-first developer experience&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;operational visibility&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;modular architecture&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;extensibility over lock-in&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why open source?
&lt;/h2&gt;

&lt;p&gt;Because the ecosystem is still evolving, and this kind of infrastructure gets better when people can inspect it, challenge it, and improve it in public.&lt;/p&gt;

&lt;p&gt;I also wanted the repo to be more than a package dump:&lt;br&gt;
documentation, examples, adapters, registry/control-plane direction, and contributor-friendliness all matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Current status
&lt;/h2&gt;

&lt;p&gt;The repo is now live, and I’m actively looking for feedback on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;onboarding and setup clarity&lt;/li&gt;
&lt;li&gt;adapter ergonomics&lt;/li&gt;
&lt;li&gt;MCP bridge workflows&lt;/li&gt;
&lt;li&gt;registry/control plane usefulness&lt;/li&gt;
&lt;li&gt;docs quality&lt;/li&gt;
&lt;li&gt;real-world gaps&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Repo
&lt;/h2&gt;

&lt;p&gt;GitHub: &lt;code&gt;github.com/oaslananka/a2a-mesh&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you try it, I’d genuinely love to hear:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;what worked well&lt;/li&gt;
&lt;li&gt;what felt confusing&lt;/li&gt;
&lt;li&gt;what you’d want next&lt;/li&gt;
&lt;li&gt;which integrations or adapters matter most to you&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Feedback, issues, and contributions are very welcome.&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>opensource</category>
      <category>ai</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
