handwired
Handwired turns ordinary JavaScript logic into differentiable neural-network-style calculations, so programs can run as matrix operations in JavaScript or WebGPU. It is for experimenting with GPU execution and optimization of code written in a traditional style.
Pick a small issue you can reproduce, then fix it with your AI coding agent.
Share on XLicense: MIT
Overview
Handwired is a TypeScript project that converts ordinary JavaScript control flow into arithmetic built from addition, multiplication, and ReLU. It expresses branches as calculations, then combines the operations into matrix multiplication. The resulting program remains differentiable and can run in JavaScript or WebGPU. The project is for exploring GPU execution and optimization of code written in a traditional style, with demos including JSON search across 100,000 documents.
Key features
- Express conditional branches using arithmetic and ReLU.
- Combine additions, multiplications, and ReLU into matrix multiplication.
- Run the calculations in JavaScript or WebGPU.
- Includes a JSON search demo over 100,000 documents.
Best for
Developers curious about differentiable programs or GPU execution of traditional JavaScript can use Handwired to explore these ideas through its demos and code.
- Upstream
- chenglou/handwired
- Fork on GitHub
- Guo-astro/handwired
- Upstream stars
- 2.1k
- Category
- Developer tools and infrastructure
- Language
- TypeScript
- License
- MIT
- Forked
- 2026-10-16
- Sync status
- In syncLast synced 2026-11-08
More in Developer tools and infrastructure
An open-source TypeScript engine for calculating Zi Wei Dou Shu charts and consulting traditional references. It helps developers build charting and interpretation tools.
Forked 2026-10-18Last synced 2026-11-08License: MITDeveloper tools and infrastructureGitHub
ImHex is a hex editor for inspecting and editing binary files. Reverse engineers, programmers, and forensic users can search and patch bytes or describe file structures with its pattern language.
Forked 2026-10-17Last synced 2026-11-08License: GPL-2.0Developer tools and infrastructureGitHub
Numa is a portable DNS resolver for local development and privacy. It blocks ads, gives local services names like frontend.numa, and runs without depending on a cloud account.
Forked 2026-10-17Last synced 2026-11-08License: MITDeveloper tools and infrastructureGitHub
Rustrak is a self-hosted error tracker for collecting errors, logs, transactions, release health, and AI-agent traces through Sentry-compatible SDKs. Run it on your own hardware to monitor applications without moving to a hosted service.
Forked 2026-10-15Last synced 2026-11-08License: AGPL-3.0Developer tools and infrastructureGitHub