repowisechenglou/handwired

Architecture of chenglou/handwired

chenglou/handwired is 955 source files holding 9,173 symbols across 6 modules, written mainly in TypeScript, Swift. The largest module is lab, with 622 files, and 5 files are entry points into the dependency graph.

How handwired fits together

Input enters as ordinary JavaScript arithmetic, and the src directory provides the shared plumbing for building typed numeric circuits and compiling them into GPU-ready programs. The template/main.ts file is a runnable entry point that wires a generic toggle simulation into a single surface, showing how a program runs end to end. The lab/json-search/million/run.ts file is one of the entry points for the JSON search demo, which runs a program over a large document set. The scripts directory builds, validates and serves the demo site pages, and assets/index.html is one of the central pages that the site is built around. The README.md file explains the approach and the two primitives, addition and multiplication plus ReLU, that the generated program uses.

Largest modules

  • lab: 622 files and 123,744 lines of code
  • tests: 42 files and 17,761 lines of code
  • src: 34 files and 13,263 lines of code
  • scripts: 5 files and 559 lines of code
  • template: 4 files and 260 lines of code
  • root: 1 file and 18 lines of code

Languages

By file count: TypeScript 706 files, Swift 2 files.

Documentation

Repowise documents handwired in 1,026 pages generated from the source, 54 of them written explanations of the repository and its modules. Module guides include:

  • lab/candidate-gallery: Candidate Gallery Training
  • lab/ui-exploration/lists: Cards List UI Systems
  • lab/ui-exploration/code-points: Code-Points Editor Circuits

More on handwired: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos