CircuitSpark is a basic circuit analysis app built through vibe coding with Grok 3. It was an attempt to explore circuit modeling and analysis in a simple and intuitive way.
- Grok 3 did a great job defining tasks for the implementation of the app atomically.
- Great way to know more libraries.
- Code errors started to appear when non trivial Math was added (simulations of voltage in nodes).
- Also had trouble when implementing zooming and panning. These two operations required a human to check and fix the code.
- Windsurf's Cascade was used to try to spot and fix the bugs (with poor results).
- The app is a nice demo; but I have to dig in more as an engineer into the code to clean it and fix deeper errors like the modeling of the circuit. Other tasks were handled greatly by Grok 3.
- React - JavaScript library for building user interfaces
- TypeScript - Typed superset of JavaScript
- Vite - Frontend build tool
- Tailwind CSS - Utility-first CSS framework
- Konva - HTML5 Canvas 2D drawing and animation
- Math.js - JavaScript library for symbolic and numeric matrix operations