pnpm install and pnpm workbench from the repository root. Open the local URL it prints. The command prints the location of your generated project too; chip files stay there after the server stops.
Watch a half adder
The opening sheet has inputsa and b. They feed an XOR for sum and an AND for carry. Set both inputs to 1. Press Step to advance one tick, then Run to stable: the outputs settle to sum = 0, carry = 1. The input controls queue a change; the labels on the canvas show what the signals actually are at that tick. X means unknown. Double-click the XOR to see the gates inside it; use the breadcrumb to get back.
Build a chip
- Select New circuit. Call it
MyNot, give it one inputaand one outputout. - Choose
NANDfrom the library. Click the circuit’sapin, then the NAND’sapin. Repeat for the NAND’sbpin. Connect the NAND output to the circuit output. You can also pick each destination’s driver under Wiring and parts. - Run the circuit with
a = 0. Check thatoutsettles to1. Open Source to see the equivalentcircuit()definition. - Select Save as chip. The local dev server creates
chips/MyNot.ts;MyNotnow appears under Mine. If the file exists, choose a new name. A static build offers Copy TypeScript instead of writing to disk.
Add a chip by hand
The personal library lives inchips/, not src/. For example, save the following as chips/BothLow.ts:
BothLow appears in the same palette as a chip you drew. The starter also discovers named exports in examples/, including a four-bit adder. Placing an example creates an import, not a copy of its implementation. Use your text editor to change a chip’s source; the canvas never rewrites it. Save completed chips before refreshing: drafts and screen positions are not saved.