All projects

Clockyard

Clockyard is an open-source, browser-based sandbox for building computers from their first pulse. You wire up logic gates, combine them into adders, registers and memory, assemble a programmable CPU, then write a program and watch your own hardware run it one clock edge at a time.

Period
November 2026–Present
Domain
Digital logic · Computer architecture
Tools
Rust · WebAssembly · TypeScript · React · PixiJS

From gates to a computer

Circuits are built from switches, gates and LEDs, then buses, custom components, clocks, flip-flops, RAM and ROM. An 8-bit reference CPU ships with its own assembly language, and a keyboard, screen and hex display mapped into its memory. Catch, a small game, runs on it.

Clockyard editor with a 4-bit adder built from four chained full-adder chips, live signals glowing amber along the wires.
A 4-bit adder, carry by carry

The engine is the source of truth

A Rust engine compiled to WebAssembly runs in a Web Worker. It validates the circuit document, elaborates it into a flat netlist of primitive components and simulates it; the React and PixiJS interface only renders what the engine reports. A CPU you build runs through its simulated components and wires, never a hidden software emulator.

Clockyard's 8-bit reference CPU running, with the inspector showing the program ROM, its assembly source and disassembly.
The reference CPU and its program

Local and shareable

Everything runs in the browser, with no accounts or servers. A circuit can be shared as a file or as a link that carries it whole. Next on the roadmap is the computer-building sandbox, where you design the CPU yourself.

Catch running on the reference CPU: a falling block and paddle on the screen device, the score on two seven-segment digits.
Catch, running on simulated hardware