<?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: Nowshad Hossain</title>
    <description>The latest articles on DEV Community by Nowshad Hossain (@nhrdev).</description>
    <link>https://dev.to/nhrdev</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%2F3681714%2Fdeeeefcc-a6ac-40e4-a925-42d3e4d4b51b.png</url>
      <title>DEV Community: Nowshad Hossain</title>
      <link>https://dev.to/nhrdev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nhrdev"/>
    <language>en</language>
    <item>
      <title>101 Stars Building a Pure-Rust Browser Engine for LLM Agents</title>
      <dc:creator>Nowshad Hossain</dc:creator>
      <pubDate>Tue, 24 Nov 2026 15:16:33 +0000</pubDate>
      <link>https://dev.to/nhrdev/101-stars-building-a-pure-rust-browser-engine-for-llm-agents-f10</link>
      <guid>https://dev.to/nhrdev/101-stars-building-a-pure-rust-browser-engine-for-llm-agents-f10</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/nhrbuilds/flashbrowse" rel="noopener noreferrer"&gt;flashbrowse&lt;/a&gt; just crossed &lt;strong&gt;101 stars&lt;/strong&gt; on GitHub and shipped &lt;code&gt;v1.2.1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It is a single-binary headless browser controller and accessibility-tree compressor written in pure Rust. No Node.js, no Python, no JVM, and no Playwright or Puppeteer shims. It talks raw Chrome DevTools Protocol (CDP JSON-RPC 2.0) over WebSocket and exposes both a CLI and a native MCP stdio server for Claude Code, Cursor, and Codex.&lt;/p&gt;

&lt;p&gt;If you have wired a browser MCP into an agent, you already know the two bottlenecks: context windows fill up with DOM or AXTree noise, and wrapper runtimes add cold-start and memory overhead. Here is what the token difference looks like on real sites (measured with &lt;code&gt;interestingOnly: false&lt;/code&gt; for Puppeteer and Playwright, which is the full accessibility tree an agent actually has to sift through):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;URL&lt;/th&gt;
&lt;th&gt;flashbrowse&lt;/th&gt;
&lt;th&gt;Puppeteer&lt;/th&gt;
&lt;th&gt;Playwright&lt;/th&gt;
&lt;th&gt;raw HTML&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;example.com&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;272 t&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1,358 t&lt;/td&gt;
&lt;td&gt;814 t&lt;/td&gt;
&lt;td&gt;145 t&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;news.ycombinator.com&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2,143 t&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;47,930 t&lt;/td&gt;
&lt;td&gt;19,269 t&lt;/td&gt;
&lt;td&gt;8,620 t&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;github.com&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1,719 t&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;40,137 t&lt;/td&gt;
&lt;td&gt;17,102 t&lt;/td&gt;
&lt;td&gt;131,319 t&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;(Token estimate: 1 token = 4 characters.)&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Quickstart (CLI and MCP)
&lt;/h2&gt;

&lt;p&gt;Install the binary (macOS / Linux):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSL https://raw.githubusercontent.com/nhrbuilds/flashbrowse/main/install.sh &lt;span class="o"&gt;|&lt;/span&gt; sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Windows (PowerShell):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;irm&lt;/span&gt; &lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;raw&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;githubusercontent&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;nhrbuilds&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;flashbrowse&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;main&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;install&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ps1&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;iex&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or via Cargo:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cargo install --locked --git https://github.com/nhrbuilds/flashbrowse flashbrowse-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Download managed Chrome-for-Testing once (~120 MB, or skip if Chrome is already on your &lt;code&gt;PATH&lt;/code&gt;), then open a page or start the MCP server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;flashbrowse setup
flashbrowse open example.com
flashbrowse mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For multi-step workflows from the shell, pass &lt;code&gt;--session-id&lt;/code&gt; to keep Chromium alive between calls:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;flashbrowse open example.com --session-id s1
flashbrowse act a3 --session-id s1 --action click
flashbrowse close --session-id s1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you need pre-flight diagnostics in CI or before debugging an agent failure, run &lt;code&gt;flashbrowse doctor&lt;/code&gt; (exits &lt;code&gt;1&lt;/code&gt; on any blocking check):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flashbrowse doctor  (v1.0.2)
  [PASS] chromium         /usr/bin/google-chrome-stable (Google Chrome 147.0.7727.116)
  [PASS] managed-chrome   installed at /home/user/.cache/flashbrowse/chrome
  [PASS] cache-dir        /home/user/.cache/flashbrowse (writable=true)
  [PASS] temp-space       6327 MB free in /tmp
  [PASS] memory           15526 MB available
  [PASS] sessions         0 stored (flashbrowse close --session-id &amp;lt;id&amp;gt; to stop)
  [PASS] orphan-browsers  0 flashbrowse-managed browser(s) still running
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  How It Works Under the Hood
&lt;/h2&gt;

&lt;p&gt;The workspace is split into focused crates:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;crates/flashbrowse-cdp    CDP client, launcher, transport, protocol types
crates/flashbrowse-bidi   Firefox BiDi groundwork (discovery only)
crates/flashbrowse-core   session, stealth, interceptor, tree compression, actions
crates/flashbrowse-mcp    MCP JSON-RPC stdio server
crates/flashbrowse-cli    CLI binary (`flashbrowse`)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three design choices drive most of the behavior:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Wait for the &lt;em&gt;final&lt;/em&gt; tree, not an arbitrary sleep
&lt;/h3&gt;

&lt;p&gt;Playwright and Puppeteer snapshots often fire after &lt;code&gt;domcontentloaded&lt;/code&gt; + a short delay. On Hacker News, a &lt;code&gt;domcontentloaded&lt;/code&gt; snapshot can yield &lt;strong&gt;65 tokens instead of 1,770&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;flashbrowse&lt;/code&gt; polls &lt;code&gt;Runtime.evaluate&lt;/code&gt; every 100 ms and exits only when:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The DOM has been quiet (250 ms for static/large trees, 600 ms after observed changes, 1,200 ms for small pages that may still hydrate).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;readyState == "complete"&lt;/code&gt; (or the network is idle).&lt;/li&gt;
&lt;li&gt;The AX tree is non-empty when the DOM has content (Chromium populates the AX tree ~400 ms after the DOM settles).&lt;/li&gt;
&lt;li&gt;Two consecutive AX content fingerprints match.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Repeated opens produce byte-identical trees, which is enforced by a truncation guard test in CI.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Document-order AXTree compression
&lt;/h3&gt;

&lt;p&gt;Chromium returns the accessibility tree breadth-first. &lt;code&gt;flashbrowse-core&lt;/code&gt; rebuilds the hierarchy and walks it depth-first in document order, folding layout wrappers and deduplicating repeated nodes while keeping every piece of visible text and every interactive element mapped to an ephemeral action ID (&lt;code&gt;ActionMap&lt;/code&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  3. One MCP for text and pixels
&lt;/h3&gt;

&lt;p&gt;In &lt;code&gt;agent-default&lt;/code&gt; mode, images, fonts, and trackers are blocked at the network layer. When an agent calls &lt;code&gt;browser_screenshot&lt;/code&gt; on the same MCP session, &lt;code&gt;flashbrowse&lt;/code&gt; temporarily lifts the blocklist and re-requests blocked images (because Chrome never retries a blocked request on its own) until images report &lt;code&gt;img.complete&lt;/code&gt;, then captures the screenshot without changing the compressed action tree.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Broke Along the Way
&lt;/h2&gt;

&lt;p&gt;Building a browser controller for agents surfaces bugs that do not show up in happy-path demos. A few real ones we hit:&lt;/p&gt;

&lt;h3&gt;
  
  
  Blocking CSS leaked hidden content
&lt;/h3&gt;

&lt;p&gt;Blocking images saves 17-42% of page bytes and fonts save 2-12%. Blocking CSS only saves 1-3% (18% on Hacker News), so early on it looked like an easy win.&lt;/p&gt;

&lt;p&gt;It was not. Chromium excludes &lt;code&gt;display:none&lt;/code&gt; and &lt;code&gt;visibility:hidden&lt;/code&gt; elements from the accessibility tree &lt;em&gt;because of CSS&lt;/em&gt;. On a local test page with CSS blocked, a &lt;code&gt;display:none&lt;/code&gt; element containing &lt;code&gt;SECRET HIDDEN CONTENT&lt;/code&gt; appeared directly in the AX tree. An agent could read text no user can see and try to click invisible elements.&lt;/p&gt;

&lt;p&gt;So &lt;code&gt;interceptor.rs&lt;/code&gt; blocks trackers, fonts, and images (keeping &lt;code&gt;alt&lt;/code&gt; text, which Chromium 147 still exposes as the accessible name), and &lt;strong&gt;never&lt;/strong&gt; blocks CSS.&lt;/p&gt;

&lt;h3&gt;
  
  
  Our token count went &lt;em&gt;up&lt;/em&gt; from 813 to 1,215
&lt;/h3&gt;

&lt;p&gt;On our 30-row benchmark table, an earlier version of &lt;code&gt;flashbrowse&lt;/code&gt; reported 813 tokens. When we built a fidelity oracle comparing raw &lt;code&gt;Accessibility.getFullAXTree&lt;/code&gt; JSON against our compressed output, we discovered the compressor was dropping table cells.&lt;/p&gt;

&lt;p&gt;Fixing that bug raised the payload to 1,215 tokens. We kept the fix and updated the README numbers. A smaller token count earned by silently dropping visible data is a bug, not an optimization. Across all 8 fidelity fixture pages, the compressor now hits 100% visible text recall (0 missing strings) with 90.6%-98.7% byte reduction vs raw AXTree JSON.&lt;/p&gt;

&lt;h3&gt;
  
  
  OS process lifecycles and iframes (&lt;code&gt;v1.2.0&lt;/code&gt; and &lt;code&gt;v1.2.1&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Getting persistent &lt;code&gt;--session-id&lt;/code&gt; sessions right across OSes took two targeted fixes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Linux (&lt;code&gt;v1.2.0&lt;/code&gt;):&lt;/strong&gt; &lt;code&gt;flashbrowse&lt;/code&gt; sets &lt;code&gt;PR_SET_PDEATHSIG&lt;/code&gt; on child browser processes so ephemeral runs never leak Chromium. That also killed persistent &lt;code&gt;--session-id&lt;/code&gt; browsers as soon as the spawning CLI exited. Skipping &lt;code&gt;PR_SET_PDEATHSIG&lt;/code&gt; for persistent sessions fixed it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows (&lt;code&gt;v1.2.1&lt;/code&gt;):&lt;/strong&gt; Persistent Chrome launches were inheriting the CLI's stdout/stderr pipe handles, causing callers like &lt;code&gt;Command::output()&lt;/code&gt; to hang until Chromium exited. Detaching stdio and terminating the process tree cleanly on &lt;code&gt;close&lt;/code&gt; resolved it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Iframes (&lt;code&gt;v1.2.0&lt;/code&gt;):&lt;/strong&gt; Child &lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/code&gt; accessibility trees are now spliced into the root AX tree in document order via &lt;code&gt;Page.getFrameTree&lt;/code&gt;, with out-of-process iframe (OOPIF) layout offset translation so clicks inside iframes hit the right viewport coordinates.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Benchmarks and 90-Minute Soak Data
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/images%2Ftable-1-benchmark.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/images%2Ftable-1-benchmark.png" alt="Agent loop benchmark comparing flashbrowse, Puppeteer, and Playwright" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every benchmark in the repo runs &lt;strong&gt;sequentially&lt;/strong&gt; (one tool at a time, one page open at a time) against the same Chrome 147 binary on a 30-row table with 60 links (30 iterations, 0 failures, 0 leaked processes):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;min&lt;/th&gt;
&lt;th&gt;median&lt;/th&gt;
&lt;th&gt;p95&lt;/th&gt;
&lt;th&gt;max&lt;/th&gt;
&lt;th&gt;agent payload&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;flashbrowse&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;490 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;524 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;568 ms&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1,579 ms&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1,215 tokens&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Puppeteer&lt;/td&gt;
&lt;td&gt;538 ms&lt;/td&gt;
&lt;td&gt;564 ms&lt;/td&gt;
&lt;td&gt;666 ms&lt;/td&gt;
&lt;td&gt;731 ms&lt;/td&gt;
&lt;td&gt;21,817 tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Playwright&lt;/td&gt;
&lt;td&gt;541 ms&lt;/td&gt;
&lt;td&gt;579 ms&lt;/td&gt;
&lt;td&gt;786 ms&lt;/td&gt;
&lt;td&gt;843 ms&lt;/td&gt;
&lt;td&gt;8,589 tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;(The single 1,579 ms max on &lt;code&gt;flashbrowse&lt;/code&gt; is the initial session open that spawns Chromium.)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For long-running stability, &lt;code&gt;scripts/soak.mjs&lt;/code&gt; drives sequential MCP loops (&lt;code&gt;open -&amp;gt; act -&amp;gt; scroll -&amp;gt; markdown -&amp;gt; screenshot&lt;/code&gt;) across local and public URLs. In a 90-minute mixed soak (&lt;code&gt;5,401 s&lt;/code&gt;, 7 URLs):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Throughput:&lt;/strong&gt; 3,366 iterations, 13,152 tool calls (&lt;code&gt;2.435/s&lt;/code&gt;), &lt;strong&gt;0 errors&lt;/strong&gt; (&lt;code&gt;0.00%&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Latency and drift:&lt;/strong&gt; &lt;code&gt;p50 = 255 ms&lt;/code&gt;, &lt;code&gt;p95 = 1,288 ms&lt;/code&gt;, &lt;code&gt;drift_ratio = 0.985&lt;/code&gt; (first-tenth &lt;code&gt;259 ms&lt;/code&gt; -&amp;gt; last-tenth &lt;code&gt;255 ms&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory and cleanup:&lt;/strong&gt; &lt;code&gt;leak_gate.ok = true&lt;/code&gt; (post-warmup &lt;code&gt;119,804 kB&lt;/code&gt; -&amp;gt; &lt;code&gt;116,340 kB&lt;/code&gt;), &lt;strong&gt;0&lt;/strong&gt; leaked Chrome processes at exit&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can also measure your own workloads locally with &lt;code&gt;flashbrowse bench &amp;lt;url&amp;gt;&lt;/code&gt; and inspect historical latency/token stats via &lt;code&gt;flashbrowse stats&lt;/code&gt; (backed by &lt;code&gt;~/.cache/flashbrowse/metrics.jsonl&lt;/code&gt;).&lt;/p&gt;




&lt;h2&gt;
  
  
  Honest Limits (Where Rivals Still Win)
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;flashbrowse&lt;/code&gt; is an agent layer on top of Chrome, not a full replacement for Playwright or Puppeteer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Flat text tree:&lt;/strong&gt; Nesting and bounding-box geometry are dropped. A vision model can call &lt;code&gt;browser_screenshot&lt;/code&gt;, but it still acts through text-tree action IDs (no set-of-marks overlay yet).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spatial and visual tasks:&lt;/strong&gt; Canvas apps, charts, drag distances, and map clicks are out of scope for the text tree.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross-browser and test tooling:&lt;/strong&gt; Playwright and Puppeteer win on Firefox/WebKit support, trace viewers, and visual regression suites.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stealth limits:&lt;/strong&gt; Built-in stealth handles naive bot checks, not determined fingerprinting (Canvas/Audio/TLS entropy remain).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Try It and Tell Us What Breaks
&lt;/h2&gt;

&lt;p&gt;If you are building coding or web agents and want to cut your browser token bill without maintaining a Node/Python sidecar:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Check out the repo: &lt;a href="https://github.com/nhrbuilds/flashbrowse" rel="noopener noreferrer"&gt;github.com/nhrbuilds/flashbrowse&lt;/a&gt; (Apache-2.0)&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;flashbrowse doctor&lt;/code&gt; and &lt;code&gt;flashbrowse bench &amp;lt;your-target-url&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Open an issue if a real-world site drops text, misroutes an iframe click, or trips up the settle loop&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What is the biggest pain point you hit with browser MCPs today: token bloat, stale element IDs, or process cleanup? Drop a comment below.&lt;/p&gt;

</description>
      <category>rust</category>
      <category>ai</category>
      <category>mcp</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Why We Built a Zero-Knowledge Clipboard Manager for Developers (And Dropped Native Mobile Apps)</title>
      <dc:creator>Nowshad Hossain</dc:creator>
      <pubDate>Thu, 21 May 2026 16:55:25 +0000</pubDate>
      <link>https://dev.to/nhrdev/why-we-built-a-zero-knowledge-clipboard-manager-for-developers-and-dropped-native-mobile-apps-1nhm</link>
      <guid>https://dev.to/nhrdev/why-we-built-a-zero-knowledge-clipboard-manager-for-developers-and-dropped-native-mobile-apps-1nhm</guid>
      <description>&lt;p&gt;As developers, our system clipboard is a live, running history of our most sensitive data. On any given day, you and I are copying and pasting AWS keys, database connection strings, .env variables, and proprietary code blocks.&lt;/p&gt;

&lt;p&gt;The problem is that traditional, consumer-grade clipboard managers treat this data like ordinary text. If they offer cloud syncing, they usually pass your raw data to a centralized database where it is stored or decrypted on their servers. One data breach on their end means every secret you’ve copied over the last year is exposed to threat actors.&lt;/p&gt;

&lt;p&gt;We built &lt;strong&gt;Encrypted Clipboard Manager (ECM)&lt;/strong&gt; to completely change this architecture. It is a local-first browser extension designed explicitly to give developers a secure clipboard history without compromising data privacy.&lt;/p&gt;




&lt;h2&gt;
  
  
  💻 How It Works Under the Hood
&lt;/h2&gt;

&lt;p&gt;To bridge the gap between convenience (syncing across devices) and absolute security, ECM relies on a &lt;strong&gt;Zero-Knowledge, Privacy-by-Default&lt;/strong&gt; framework:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Local-First History:&lt;/strong&gt; The extension intercepts and caches your clipboard data entirely inside a local browser sandbox. No network access is required for standard operations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Client-Side Encryption:&lt;/strong&gt; If you choose to enable cloud syncing, the payload is encrypted &lt;em&gt;on your machine&lt;/em&gt; before it ever hits the network. Using the native Web Crypto API, your data is transformed into ciphertext using a password only you know. The sync server acts as a blind relay-it cannot read, parse, or decrypt your history.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smart Sharing (New in v4.0.0):&lt;/strong&gt; When you need to securely send a credential or snippet to a teammate, ECM generates a secure link directly from your sidepanel. The recipient prompts for a password, and the browser decrypts the stream natively, mapping the original file type (MIME-type) seamlessly for instant download.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  📱 The Mobile Strategy: Why We Dropped Native Apps for a Web Dashboard
&lt;/h2&gt;

&lt;p&gt;A common question we get is: &lt;em&gt;"Where are the native iOS and Android apps?"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The answer comes down to modern operating system sandboxing. Both iOS and Android no longer allow background applications to automatically and silently sniff the system clipboard for security and privacy reasons. To sync a clipboard item on modern mobile OS layers, a native app would require you to manually open it every single time just to trigger a clipboard read.&lt;/p&gt;

&lt;p&gt;Because background automation is dead on mobile, &lt;strong&gt;there is fundamentally no functional difference between a native app and a secure web app.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Instead of bloated native mobile clients, we built a secure, mobile-responsive web dashboard. Through this dashboard on iOS or Android, you can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Decrypt &amp;amp; Access:&lt;/strong&gt; Securely pull and view your existing synced history on the go.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add &amp;amp; Sync Back:&lt;/strong&gt; Manually add new sensitive items or snippets directly into the web dashboard. The moment you save them, they are encrypted client-side and synced seamlessly back to your desktop environments via the browser extensions.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔍 Auditing the Crypto Core
&lt;/h2&gt;

&lt;p&gt;We believe you should never blindly trust a security tool just because the landing page says "encrypted."&lt;/p&gt;

&lt;p&gt;While the core browser extension interface and frontend client code are closed-source, &lt;strong&gt;we have open-sourced the entire cryptographic engine driving the application.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We did this so the developer community can directly audit the mathematical implementation, inspect the Web Crypto logic, and verify that there are absolutely no backdoors in how keys are generated or handled.&lt;/p&gt;

&lt;p&gt;You can review the repository, audit the code, or pull it into your own security pipelines via npm:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i @encryptedclipboard/crypto
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Let’s Chat Architecture!
&lt;/h2&gt;

&lt;p&gt;We are building ECM in public and want to tailor it perfectly to developer workflows.&lt;/p&gt;

&lt;p&gt;How do you feel about the changing landscape of OS clipboard restrictions? Does a local-first extension + web dashboard setup fit how you move secrets between devices? Let’s talk in the comments below!&lt;/p&gt;

</description>
      <category>security</category>
      <category>webdev</category>
      <category>privacy</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Why I Chose Svelte and Zero-Knowledge Encryption for My New Chrome Extension</title>
      <dc:creator>Nowshad Hossain</dc:creator>
      <pubDate>Mon, 26 Jan 2026 03:50:02 +0000</pubDate>
      <link>https://dev.to/nhrdev/why-i-chose-svelte-and-zero-knowledge-encryption-for-my-new-chrome-extension-1oc8</link>
      <guid>https://dev.to/nhrdev/why-i-chose-svelte-and-zero-knowledge-encryption-for-my-new-chrome-extension-1oc8</guid>
      <description>&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.amazonaws.com%2Fuploads%2Farticles%2Fd9pt3wyrxrsg9k0i7cvi.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.amazonaws.com%2Fuploads%2Farticles%2Fd9pt3wyrxrsg9k0i7cvi.png" alt=" " width="800" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Building a clipboard manager sounds simple until you consider the two biggest constraints in 2026: &lt;strong&gt;Privacy&lt;/strong&gt; and &lt;strong&gt;Browser Performance&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I just launched the &lt;strong&gt;Encrypted Clipboard Manager&lt;/strong&gt;, and I wanted to share some of the technical decisions I made while building it-specifically why I moved away from common extension patterns in favor of Svelte and E2E encryption.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Why Svelte for a Chrome Extension?
&lt;/h2&gt;

&lt;p&gt;Most extensions use React or Vue, but for a tool that lives in the &lt;strong&gt;Side Panel&lt;/strong&gt; and interacts with every page you visit, bundle size and "cold-start" time are everything.&lt;/p&gt;

&lt;p&gt;Svelte was a non-negotiable choice for me because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No Virtual DOM&lt;/strong&gt;: Svelte compiles to highly optimized vanilla JS. When the Side Panel is opened, it's interactive almost instantly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reactive State&lt;/strong&gt;: Managing clipboard history updates across multiple components (Sidebar, Floating Notch, Settings) is incredibly clean with Svelte’s &lt;code&gt;$state&lt;/code&gt; and &lt;code&gt;$effect&lt;/code&gt; signals.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I used a centralized Svelte store to handle real-time updates from the background service worker, ensuring that the UI always reflects the local IndexedDB state without unnecessary re-renders.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Implementing Zero-Knowledge Encryption
&lt;/h2&gt;

&lt;p&gt;"Privacy by design" is hard. For this extension, I implemented a &lt;strong&gt;Zero-Knowledge Architecture&lt;/strong&gt; using the &lt;strong&gt;Web Crypto API&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;The flow works like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Local Encryption&lt;/strong&gt;: Before an item (text or image) is synced to the cloud, it is encrypted locally in the background service worker using a user-defined master password.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;PBKDF2 Derivation&lt;/strong&gt;: I use PBKDF2 to derive a strong encryption key from the password, combined with a local salt.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;No Keys on Server&lt;/strong&gt;: The raw password and the derived key &lt;em&gt;never&lt;/em&gt; leave the user's browser. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This ensures that even if my backend was compromised, the data stored in MongoDB is just unreadable blobs.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Utilizing the Chrome Side Panel API
&lt;/h2&gt;

&lt;p&gt;One of the biggest UX improvements I made was moving away from the traditional "Popup" UI. Popups are ephemeral—they close as soon as you click the page. &lt;/p&gt;

&lt;p&gt;By utilizing the &lt;strong&gt;Side Panel API&lt;/strong&gt;, the extension now has a persistent home.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Opening the side panel on command&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;chrome&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sidePanel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setOptions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'sidebar/index.html'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;enabled&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This allows for a true multitasking workflow where you can drag and drop items from your history directly into your active tabs.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Performance &amp;amp; Memory Management
&lt;/h2&gt;

&lt;p&gt;Handling images in a clipboard history can quickly bloat memory if not handled correctly. I used &lt;strong&gt;IndexedDB&lt;/strong&gt; for local storage and implemented a proper thumbnail generation service in an &lt;strong&gt;offscreen document&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;This keeps the main background script lightweight while offloading the heavy lifting of image processing to a separate thread, preventing browser jank.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Result
&lt;/h2&gt;

&lt;p&gt;The result is a clipboard manager that is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fast&lt;/strong&gt;: Svelte-powered and Side-Panel native.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Private&lt;/strong&gt;: Zero-knowledge encryption by default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reliable&lt;/strong&gt;: Handles binary data and complex sync logic without breaking a sweat.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I’d love to hear from other extension devs, how are you handling E2E encryption in your apps? &lt;/p&gt;

&lt;p&gt;Check out the project: &lt;a href="https://encryptedclipboard.app" rel="noopener noreferrer"&gt;EncryptedClipboard.app&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;or upvote us on &lt;a href="https://peerlist.io/nhrdev/project/encrypted-clipboard-manager" rel="noopener noreferrer"&gt;Peerlist&lt;/a&gt;!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>svelte</category>
      <category>security</category>
      <category>privacy</category>
    </item>
    <item>
      <title>Chrome DevTools is missing these features, so I built them myself</title>
      <dc:creator>Nowshad Hossain</dc:creator>
      <pubDate>Sat, 27 Dec 2025 18:16:14 +0000</pubDate>
      <link>https://dev.to/nhrdev/chrome-devtools-is-missing-these-features-so-i-built-them-myself-2ea4</link>
      <guid>https://dev.to/nhrdev/chrome-devtools-is-missing-these-features-so-i-built-them-myself-2ea4</guid>
      <description>&lt;h2&gt;
  
  
  The Struggle with Default DevTools 😫
&lt;/h2&gt;

&lt;p&gt;If you are a full-stack or frontend dev, you know the limits of the Chrome "Application" tab.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;IndexedDB is a black box.&lt;/strong&gt; You can view data, but creating a new Database, adding a Store, or importing/exporting a full DB? Impossible without writing console scripts.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Testing multiple accounts is painful.&lt;/strong&gt; To switch users, you have to clear site data, refresh, and log in again. Or juggle 5 different Incognito windows.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Sharing sessions is hard.&lt;/strong&gt; If you want to move your logged-in state from Chrome to Brave, or send a session to a co-worker to reproduce a bug, you're stuck copy-pasting cookies one by one.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It felt like the tooling was stuck in 2010.&lt;/p&gt;

&lt;h2&gt;
  
  
  So, I Built the Ultimate Solution 🛠️
&lt;/h2&gt;

&lt;p&gt;I created &lt;strong&gt;&lt;a href="https://easylocalstorage.dev" rel="noopener noreferrer"&gt;Easy Local Storage Manager&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It started as a simple JSON editor, but it has evolved into a complete &lt;strong&gt;Storage &amp;amp; Session Management Suite&lt;/strong&gt;. It handles LocalStorage, SessionStorage, Cookies, and now &lt;strong&gt;IndexedDB&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Here is why it’s a game-changer for your workflow:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Complete IndexedDB Management 🗄️
&lt;/h3&gt;

&lt;p&gt;Most extensions ignore IndexedDB because it's complex. I didn't.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Full Control:&lt;/strong&gt; You can create new Databases and Object Stores directly from the UI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CRUD Actions:&lt;/strong&gt; Add, edit, or delete data records easily.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Import/Export:&lt;/strong&gt; You can export an &lt;em&gt;entire&lt;/em&gt; IndexedDB (or just a specific store) and import it back later. This is a lifesaver for debugging offline-first apps (PWA).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. User Profiles (Switch Accounts Instantly) 👥
&lt;/h3&gt;

&lt;p&gt;This is my favorite feature for QA and testing.&lt;br&gt;
You can create isolated &lt;strong&gt;"User Profiles"&lt;/strong&gt; for any host (e.g., &lt;code&gt;localhost:3000&lt;/code&gt; or &lt;code&gt;production.com&lt;/code&gt;).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;How it works:&lt;/strong&gt; Save your current storage state (Local + Session + Cookies) as "User A". clear it, log in as "User B", and save that.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Magic:&lt;/strong&gt; Click "User A", and the extension automatically &lt;strong&gt;wipes the current storage&lt;/strong&gt; and injects User A's data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Result:&lt;/strong&gt; You switch accounts instantly without logging out/in manually or using Incognito windows.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Cloud Sync as "Access Sharing" ☁️
&lt;/h3&gt;

&lt;p&gt;The Cloud Sync isn't just for backup; it’s for &lt;strong&gt;moving access&lt;/strong&gt;.&lt;br&gt;
You can sync your LocalStorage, SessionStorage, and Cookies to the cloud (End-to-End Encrypted).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Use Case:&lt;/strong&gt; Login to a site on Chrome. Sync it. Open Brave (or another device), hit "Restore", and &lt;strong&gt;boom - you are logged in automatically.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Note:&lt;/em&gt; It requires &lt;code&gt;webNavigation&lt;/code&gt; permission to apply cookies correctly, but it effectively lets you "teleport" your session across browsers.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. The Basics (But Better)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;JSON Tree Editor:&lt;/strong&gt; Edit storage values as objects, not strings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JWT Decoder:&lt;/strong&gt; Built-in decoding/encoding for tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deep Search:&lt;/strong&gt; Find values nested deep inside JSON objects.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why use it?
&lt;/h2&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.amazonaws.com%2Fuploads%2Farticles%2F636zdgo5cg8m78wzgdsh.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.amazonaws.com%2Fuploads%2Farticles%2F636zdgo5cg8m78wzgdsh.png" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It replaces the need for separate extensions (Cookie Editors, Storage Cleaners, Session Managers) and puts everything into one professional dashboard. It operates on a &lt;strong&gt;Freemium&lt;/strong&gt; model—core features are free, while Cloud Sync and advanced profile management are for power users.&lt;/p&gt;

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

&lt;p&gt;I’d love to hear your feedback, especially on the IndexedDB features!&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://easylocalstorage.dev" rel="noopener noreferrer"&gt;Download Easy Local Storage Manager&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Drop a comment if you have specific feature requests!)&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devtools</category>
      <category>webdev</category>
      <category>testing</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
