A small React + Vite app to visually design and simulate digital logic circuits using a node-based editor (React Flow / XYFlow).
- Drag & drop logic gates (INPUT, OUTPUT, AND, OR, NOT, NAND, NOR, XOR, XNOR)
- Connect gates with edges (wires)
- Toggle INPUT nodes to propagate signals
- Run simulation and see outputs (LEDs) update
- Save and load circuit JSON
- Install dependencies
cd "c:\Users\SHITANSHU KUMAR\OneDrive\Desktop\logic-circuit"
npm install- Run dev server
npm run dev- Open the dev URL shown by Vite in your browser.
- This repo uses Zustand for global state and a simple BFS propagation algorithm.
- Improve: edge coloring, cycle detection, better topological evaluation, UI polish with shadcn components.