<?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: Alex A.</title>
    <description>The latest articles on DEV Community by Alex A. (@alex_a_fbd71c0955).</description>
    <link>https://dev.to/alex_a_fbd71c0955</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%2F3833816%2Faf795a1f-7e8e-467c-bc17-b3642b962b48.png</url>
      <title>DEV Community: Alex A.</title>
      <link>https://dev.to/alex_a_fbd71c0955</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alex_a_fbd71c0955"/>
    <language>en</language>
    <item>
      <title>I built a network failure simulator in a single HTML file</title>
      <dc:creator>Alex A.</dc:creator>
      <pubDate>Thu, 19 Mar 2026 14:13:53 +0000</pubDate>
      <link>https://dev.to/alex_a_fbd71c0955/i-built-a-network-failure-simulator-in-a-single-html-file-39ba</link>
      <guid>https://dev.to/alex_a_fbd71c0955/i-built-a-network-failure-simulator-in-a-single-html-file-39ba</guid>
      <description>&lt;p&gt;I wanted a tool to run NOC failure drills without &lt;br&gt;
setting up a lab. Everything I found was either &lt;br&gt;
too heavy or required a server. So I built Simvex.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Simulates link failures and automatic rerouting&lt;/li&gt;
&lt;li&gt;Connects to RIPE Atlas API for real latency data&lt;/li&gt;
&lt;li&gt;ML anomaly detection (EMA Z-score + cooldown)&lt;/li&gt;
&lt;li&gt;Load any topology via JSON&lt;/li&gt;
&lt;li&gt;Export PDF reports, CSV, SVG, JSON topology&lt;/li&gt;
&lt;li&gt;Zero install — single HTML file, open in browser&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The interesting parts
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Particles without re-creating DOM nodes&lt;/strong&gt;&lt;br&gt;
The traffic animation initially called remove() &lt;br&gt;
and enter() every second. At scale it was slow.&lt;br&gt;
Fixed by building the array once and only calling &lt;br&gt;
.attr() on existing elements each step.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ML without spam&lt;/strong&gt;&lt;br&gt;
Raw Z-score on noisy latency data fires alerts &lt;br&gt;
constantly. Added EMA smoothing (α=0.3) before &lt;br&gt;
the Z-score calculation, plus a 5-step cooldown &lt;br&gt;
between alerts. Alert spam dropped to zero.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Resize without rebuilding the map&lt;/strong&gt;&lt;br&gt;
Used ResizeObserver on the container — when size &lt;br&gt;
changes, repositionSvg() recalculates W/H and &lt;br&gt;
moves all SVG elements via .attr(). No rebuild.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech stack
&lt;/h2&gt;

&lt;p&gt;Pure HTML/CSS/JS. D3.js for the network map. &lt;br&gt;
Chart.js for latency history. jsPDF for reports. &lt;br&gt;
No framework, no backend, no install.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://simvex.gumroad.com/l/idxysp" rel="noopener noreferrer"&gt;https://simvex.gumroad.com/l/idxysp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the implementation!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>devops</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
