<?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: gmin_step</title>
    <description>The latest articles on DEV Community by gmin_step (@pankaj_gupta_0a01a1f6ba71).</description>
    <link>https://dev.to/pankaj_gupta_0a01a1f6ba71</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%2F4094909%2Fc19bf728-799c-4404-8d87-654ea75f7543.png</url>
      <title>DEV Community: gmin_step</title>
      <link>https://dev.to/pankaj_gupta_0a01a1f6ba71</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pankaj_gupta_0a01a1f6ba71"/>
    <language>en</language>
    <item>
      <title>Show Dev: I built a 3D circuit simulator in Three.js</title>
      <dc:creator>gmin_step</dc:creator>
      <pubDate>Wed, 26 Aug 2026 03:10:45 +0000</pubDate>
      <link>https://dev.to/pankaj_gupta_0a01a1f6ba71/show-dev-i-built-a-3d-circuit-simulator-in-threejs-1nj</link>
      <guid>https://dev.to/pankaj_gupta_0a01a1f6ba71/show-dev-i-built-a-3d-circuit-simulator-in-threejs-1nj</guid>
      <description>&lt;p&gt;&lt;strong&gt;Post Body:&lt;/strong&gt;&lt;br&gt;
Put together a browser-based 3D circuit simulator over the last few weeks: &lt;a href="https://luvaai.in" rel="noopener noreferrer"&gt;https://luvaai.in&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The idea was to make something zero-install where you can just open a tab, drop components on a breadboard in 3D, wire them up, and run a quick simulation without signing up or dealing with desktop software like Multisim or LTspice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it's built&lt;/strong&gt;&lt;br&gt;
The frontend is &lt;strong&gt;React 19, TypeScript, and Vite, with Three.js&lt;/strong&gt; handling the 3D canvas and raycasting for component placement. State is managed with Zustand (Redux was overkill for this).&lt;/p&gt;

&lt;p&gt;On the backend, it's Express hosted on Render proxying Gemini 2.5 Pro for an AI helper panel that checks circuit state, plus Firebase for Google auth and saving designs to Firestore. I also wrote a build-time pre-renderer in scripts/prerender.tsx so the /learn tutorial pages generate static HTML for crawlers instead of rendering blank SPA shells.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it can and can't do&lt;/strong&gt;&lt;br&gt;
It doesn't comes NEAR SPICE level simulation.&lt;br&gt;
The simulation handles DC steady-state math — Ohm's law, series/parallel networks, Kirchhoff's voltage law, and basic component behavior including capacitors and inductors.&lt;/p&gt;

&lt;p&gt;Where it falls short compared to something like LTspice or ngspice is full transient and AC frequency-domain analysis. The component library is also still growing since modeling and rigging custom 3D connection points in Three.js takes a while solo, and touch controls on mobile are rough for wiring.&lt;/p&gt;

&lt;p&gt;Live at &lt;a href="https://luvaai.in" rel="noopener noreferrer"&gt;https://luvaai.in&lt;/a&gt; if anyone wants to check out the 3D interaction or run some circuits. Feedback on the Three.js performance or wire routing UX is welcome&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>react</category>
      <category>showdev</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
