<?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: lyuan ww</title>
    <description>The latest articles on DEV Community by lyuan ww (@lyuan_ww_cd88a824c578187e).</description>
    <link>https://dev.to/lyuan_ww_cd88a824c578187e</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%2F4264246%2Fad298393-1d4f-4db9-a69f-bb3b1ab9293d.png</url>
      <title>DEV Community: lyuan ww</title>
      <link>https://dev.to/lyuan_ww_cd88a824c578187e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lyuan_ww_cd88a824c578187e"/>
    <language>en</language>
    <item>
      <title>How I Built a Pure Client-Side Cross-Tab AI Bridge on Manifest V3 (Zero Backend Relays)</title>
      <dc:creator>lyuan ww</dc:creator>
      <pubDate>Wed, 25 Nov 2026 08:58:10 +0000</pubDate>
      <link>https://dev.to/lyuan_ww_cd88a824c578187e/how-i-built-a-pure-client-side-cross-tab-ai-bridge-on-manifest-v3-zero-backend-relays-44he</link>
      <guid>https://dev.to/lyuan_ww_cd88a824c578187e/how-i-built-a-pure-client-side-cross-tab-ai-bridge-on-manifest-v3-zero-backend-relays-44he</guid>
      <description>&lt;p&gt;Most AI browser agents today work in one of two ways:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;They spin up a remote cloud browser (expensive, blocked by corporate SSO/2FA).&lt;/li&gt;
&lt;li&gt;They pipe your active webpage DOM through their own backend servers before hitting an LLM API (huge privacy red flag, plus you have to pay for extra API keys).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I wanted something radically simpler and 100% private: &lt;strong&gt;use the web AI chats I already have open (ChatGPT, Claude, DeepSeek, Gemini, Kimi) to inspect and control another open, logged-in tab locally—with zero servers.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's why I built &lt;strong&gt;&lt;a href="https://github.com/zpzxgcr/TabWeaver" rel="noopener noreferrer"&gt;TabWeaver&lt;/a&gt;&lt;/strong&gt; (MIT licensed, zero build step, pure Manifest V3).&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%2Frf2zmxd4g8mxn36lazj2.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%2Frf2zmxd4g8mxn36lazj2.png" alt="TabWeaver Cross-Tab Selector" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  The Core Bottleneck: Raw HTML Destroys Token Budgets
&lt;/h3&gt;

&lt;p&gt;If you grab &lt;code&gt;document.documentElement.outerHTML&lt;/code&gt; from modern web apps like Google Analytics, Jira, or GitHub, you easily end up with 50,000+ characters of SVG paths, inline scripts, hidden nodes, and CSS noise.&lt;/p&gt;

&lt;p&gt;To solve this natively in the browser, I wrote a &lt;strong&gt;Viewport &amp;amp; Overlay-Aware DOM Distiller&lt;/strong&gt; (&lt;code&gt;dom-distiller.js&lt;/code&gt;):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Top-Layer Priority&lt;/strong&gt;: Active modals, dialogs, and popovers get top extraction priority so search overlays aren't buried under static headers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interactive Element Indexing&lt;/strong&gt;: Visible buttons, links, inputs, and selects receive lightweight &lt;code&gt;data-ext-elem-id&lt;/code&gt; anchors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Aggressive Noise Stripping&lt;/strong&gt;: Tracking scripts, empty anchors, and hidden trees are stripped inside the client sandbox before serialization—cutting token usage by 80%+.&lt;/li&gt;
&lt;/ol&gt;




&lt;h3&gt;
  
  
  How the Dual-Tab Handshake Works
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Mention to Link&lt;/strong&gt;: Type &lt;code&gt;#&lt;/code&gt; or &lt;code&gt;@&lt;/code&gt; inside any of the 18 supported web AI composers. An inline tab picker pops up showing all open tabs in your current window.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Visual Proof&lt;/strong&gt;: The moment a target tab connects, TabWeaver renders a subtle &lt;strong&gt;Cyber Breathing Halo&lt;/strong&gt; along the viewport border so you always know which tab is active.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Structured Action Loop&lt;/strong&gt;: The AI outputs compact JSON actions (&lt;code&gt;click&lt;/code&gt;, &lt;code&gt;fill&lt;/code&gt;, &lt;code&gt;select&lt;/code&gt;, &lt;code&gt;scroll&lt;/code&gt;, &lt;code&gt;extract&lt;/code&gt;, &lt;code&gt;navigate&lt;/code&gt;, &lt;code&gt;finish&lt;/code&gt;), executed locally via &lt;code&gt;chrome.scripting&lt;/code&gt; and &lt;code&gt;action-executor.js&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&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%2F06ihk93ogupm7khyxabp.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%2F06ihk93ogupm7khyxabp.png" alt="Breathing Halo Visual Feedback" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Why "Logged-In Web Apps" Is the Sweet Spot
&lt;/h3&gt;

&lt;p&gt;Because execution lives strictly inside your authenticated local Chrome profile:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You can summarize and analyze &lt;strong&gt;Google Analytics 4&lt;/strong&gt;, &lt;strong&gt;Jira&lt;/strong&gt;, &lt;strong&gt;Gmail&lt;/strong&gt;, or &lt;strong&gt;internal dashboards&lt;/strong&gt; behind logins without exposing cookies to any external relay.&lt;/li&gt;
&lt;li&gt;You don't pay a cent for extra API wrappers—it runs directly on your existing ChatGPT / Claude / DeepSeek web session.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Try It &amp;amp; Inspect the Code
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;⭐ &lt;strong&gt;GitHub (MIT, pure JS)&lt;/strong&gt;: &lt;a href="https://github.com/zpzxgcr/TabWeaver" rel="noopener noreferrer"&gt;https://github.com/zpzxgcr/TabWeaver&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🛒 &lt;strong&gt;Chrome Web Store&lt;/strong&gt;: &lt;a href="https://chromewebstore.google.com/detail/tabweaver-cross-tab-ai-br/allofpdkpijflgipdonjfgicgeajelen" rel="noopener noreferrer"&gt;https://chromewebstore.google.com/detail/tabweaver-cross-tab-ai-br/allofpdkpijflgipdonjfgicgeajelen&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🌐 &lt;strong&gt;Website &amp;amp; Interactive Demo&lt;/strong&gt;: &lt;a href="https://zpzxgcr.github.io/TabWeaver/" rel="noopener noreferrer"&gt;https://zpzxgcr.github.io/TabWeaver/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Would love to hear how you handle DOM distillation or Manifest V3 cross-tab messaging in your extensions!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>javascript</category>
      <category>opensource</category>
      <category>privacy</category>
    </item>
  </channel>
</rss>
