What do you want to do?
3 use cases
-
Run the Handwired demos locally
Clone the repo, install with bun and start the demos.
- REPO
chenglou/handwired - Claude Code
- Codex
- Software and DevOps
- Intermediate
View prompt
Clone chenglou/handwired, run bun install and bun start, then walk me through the demos and what docs/, src/ and template/ contain.
- REPO
-
See how an if-else becomes arithmetic
Follow the README example that rewrites a ternary with ReLU so both branches compute.
View prompt
Explain the Handwired How It Works example step by step with a few values of a, then find in src/ where such programs are collected into matmul and reglu.
-
Unfreeze hand-written weights and train them
Try the README's ideas: unfreeze a program's weights, or attach a frozen program to a neural net.
View prompt
Using chenglou/handwired, take the template program, unfreeze its weights and train them on a small task. Report what changes in behavior.
Quick start with Handwired
- Check you have what it needs: Bun to run the demos locally; A browser for the live demos; WebGPU is optional.
- Open chenglou/handwired on GitHub and read the README and license.
- Try the live demos at chenglou.me/handwired first
- Run
git cloneon the repo and thenbun install - Run
bun startto run the demos locally - Check docs/, src/ and template/ to get started
These steps come from our top use case, Run the Handwired demos locally, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for chenglou/handwired
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeHandwired alternatives · Best AI repos for Software and DevOps
About this repo
- Who it is forJavaScript and ML developers curious about differentiable programs and GPU-parallel code.
- Why it is hot2k stars, launched 10 days ago, talked about in 2 AI sources we track
- LanguageTypeScript
- Sourcegithub.com/chenglou/handwired · Back to Hot repos
Requirements
- Bun to run the demos locally
- A browser for the live demos; WebGPU is optional
Add this badge to your README
Maintain Handwired? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/chenglou-handwired/?utm_source=github&utm_medium=badge&utm_campaign=chenglou-handwired)
HTML
<a href="https://dedupedai.com/use-cases/chenglou-handwired/?utm_source=github&utm_medium=badge&utm_campaign=chenglou-handwired"><img src="https://dedupedai.com/badge/chenglou/handwired.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Handwired
What is Handwired?
Handwired turns regular JavaScript code into a neural net with no training: if-else, loops and state become matrix multiplication and reglu over floats. The result is exact and fully differentiable, and runs on JS or WebGPU. It is an open-source project on GitHub: https://github.com/chenglou/handwired.
How do I use Handwired?
Try the live demos at chenglou.me/handwired first; then run git clone on the repo and then bun install; run bun start to run the demos locally. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Handwired for?
JavaScript and ML developers curious about differentiable programs and GPU-parallel code.
What can I do with Handwired?
3 use cases so far, for example: Run the Handwired demos locally; See how an if-else becomes arithmetic; Unfreeze hand-written weights and train them. Each has steps and a copy-paste agent prompt.
What do I need to run Handwired?
Bun to run the demos locally; A browser for the live demos; WebGPU is optional.
What are alternatives to Handwired?
Other hot AI repos in Software and DevOps: Deep Infer, Harness2, Orca, Opencode, Graphify.
Is Handwired safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.