This is a logic simulator I built to help me learn about logic gates and how they work. It features a variety of logic nodes for creating complex circuits The nodes can be connected together using wires to create a circuit. The circuit can then be simulated to see how it behaves.
The simulator is built using TypeScript (and a little Svelte). It renders the editor on an HTML5 canvas, with exception of the menu elements which are made using HTML and CSS. The editor is fully interactive, allowing you to drag and drop nodes, connect them together with wires, and simulate the circuit.

Screenshot of the Logic Nodes simulator showing a simple circuit with various logic nodes
The simulator is fully functional. You can try it using the link below.
Features
- - Logic simulation (AND, OR, XOR, NOR, NAND)
- - Truth table generation
- - Boolean Expression generation
- - Simplify boolean expression (requires Wolfram alpha App ID)
- - Custom nodes (create your own node, using other nodes.)
- - Import, export
- - Save, load (localStorage)
- - Load circuit from boolean expression
- - Load circuit from truth table
- - Intuitive controls (pan, zoom)
- - shortcuts (crtl+? for a shortcut overview)
- - Minimap (toggleable with ctrl+m)