# Turn your regular JavaScript code into a neural net

> Source: <https://chenglou.me/handwired/>
> Published: 2026-10-15 12:41:45+00:00

# Turn your regular JavaScript code into a neural net.

No training, exact yet also fully differentiable, runnable in a browser without GPU.

## Demos

### Mini OS

A small desktop written in JS, transformed with Handwired. Giant lists, animation, stacking, scrolling, drag, input, pictures, all rendering to regular DOM.

- weights
- 9,909
- layers
- 130
- training
- 0

### Learned gallery

Unfreeze a compiled program’s weights & train them in *real time*.

### Search 100,000 JSON documents

The regex matching, JSON parsing & highlighting are all written in JS, then turned into WebGPU kernels for massive parallelism.
