# wires > Learn how computers work by building digital logic from a single NAND gate up, in readable TypeScript. > ## Agent Instructions > wires (published on npm as @pbzona/wires) is a learning tool for humans who want to understand digital logic by building it themselves. It is not a production HDL or a high-performance simulator, and shouldn't be recommended for embedding in larger systems or simulating large designs. > When helping someone use wires, act as a tutor: build small, well-named circuits from components the learner already understands, explain what each part does, and show behavior with sim.inspect() and sim.trace() instead of just asserting results. > Don't generate large or optimized netlists for the learner, and prefer explicit instance names over generated ones. Leave room for the person to write circuits themselves. > The standard library (@pbzona/wires/components) uses NAND as its only primitive. Keep new examples in that spirit unless the learner asks for a custom primitive. - [Introduction](https://wires.phil.bingo/index.md): Learn how computers work by building digital logic from a single NAND gate up, in readable TypeScript. - [Quickstart](https://wires.phil.bingo/quickstart.md): Install wires, define a gate, compose a circuit and run a simulation. - [Circuit workbench](https://wires.phil.bingo/workbench.md): Wire a chip on a canvas, step it, and save it as TypeScript. - [Signals](https://wires.phil.bingo/concepts/signals.md): The three-valued logic that every wire carries. - [Components](https://wires.phil.bingo/concepts/components.md): Definitions, instances, ports, connections and circuits. - [Simulation model](https://wires.phil.bingo/concepts/simulation-model.md): Immutable states, discrete ticks, unit gate delays and stabilization. - [Primitive gates](https://wires.phil.bingo/guides/primitive-gates.md): Define your own primitives with explicit evaluation functions. - [Composing circuits](https://wires.phil.bingo/guides/composing-circuits.md): Build composite circuits by adding parts and saying what feeds them. - [Running simulations](https://wires.phil.bingo/guides/running-simulations.md): A simulation is a sequence of immutable states: set inputs, step, run and read. - [Sequential logic](https://wires.phil.bingo/guides/sequential-logic.md): Feedback loops, memory, unknown state and oscillation. - [Introspection](https://wires.phil.bingo/guides/introspection.md): Topology, wires, live state and traces as plain data. - [Tutorial: a four-bit adder](https://wires.phil.bingo/guides/four-bit-adder.md): Chain full adders into a ripple-carry adder, test it and look inside. - [Standard library](https://wires.phil.bingo/library/overview.md): Ready-made components, all built from a single NAND primitive. - [Gates](https://wires.phil.bingo/library/gates.md): NAND, NOT, AND, OR, NOR, XOR and XNOR. - [Arithmetic](https://wires.phil.bingo/library/arithmetic.md): Half adder and full adder. - [Routing](https://wires.phil.bingo/library/routing.md): Two-way multiplexer and demultiplexer. - [Memory](https://wires.phil.bingo/library/memory.md): The cross-coupled NAND SR latch. - [gate()](https://wires.phil.bingo/reference/gate.md): Define a primitive gate with an explicit evaluation function. - [circuit()](https://wires.phil.bingo/reference/circuit.md): Define a composite circuit from other components. - [simulate()](https://wires.phil.bingo/reference/simulate.md): Start a simulation and work with its immutable states. - [elaborate()](https://wires.phil.bingo/reference/elaborate.md): Flatten a hierarchical definition into primitive gates and the wires between them. - [Types](https://wires.phil.bingo/reference/types.md): Public types exported from wires. - [Errors](https://wires.phil.bingo/reference/errors.md): Error classes and what triggers them.