jax-js logo

jax-js is an ML library and compiler for the web

High-performance WebGPU and WebAssembly kernels in JavaScript. Run neural networks, image algorithms, simulations, and numerical code, all JIT compiled in your browser.

Add jax-js to your project

Zero dependencies. All major browsers, with and in .

npm install @jax-js/jax

Matrix multiplication

Billions of floating-point operations (GFLOPs) per second

WasmWebGPUWebGPU-fp16

Running benchmark…

Try it out!

This is a live editor, the code is running in your browser.

Run code to see output here.

Learn more