Handwired - Turn regular JavaScript into a neural net

Handwired - Turn regular JavaScript into a neural net

Handwired transforms your ordinary JavaScript code into a fully differentiable neural network without any training. It converts control flow like conditionals into ReLU-based operations, making your program exact yet trainable. Run it in the browser without a GPU. Demos include a mini OS with DOM rendering, a photo gallery with real-time weight training, and a JSON search engine that compiles to WebGPU kernels. It's a novel way to bridge traditional coding and neural networks, perfect for developers exploring differentiable programming.

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

    As far as I understand, this doesn't turn "regular" JavaScript into a NN, it's rather "write your logic in a DSL that creates a neural-net-shaped circuit"

    the source code for the OS demo is not "regular" code, it's full of `emiRelu`... https://github.com/chenglou/handwired/blob/main/src/handwire...

    The main site & readme seem to overclaim, while the docs say things like "With Handwired you write a numeric program" and "No tool converts existing JavaScript source into a program" - https://github.com/chenglou/handwired/tree/main/docs

    happy to be proven wrong, to have misunderstood this, etc.

  2. dvrp

    I think for everyone interested in this project checking your OG twitter thread is also somewhat mandatory:

    https://x.com/_chenglou/status/2110557373651931267

    It took me a bit to wrap my head around what you did.

  3. auraham

    It seems interesting but I am confused. What is the purpose of that landing page? It is not clear since it showcases several (not related) ideas:

    - turning js code into something else, arguably high-level code for training neural networks

    - a mini OS inside the browser

    - a gallery

    - document search

More from this day

2026-10-22