jax-js is a machine learningan 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 .
Matrix multiplication
Billions of floating-point operations (GFLOPs) per second
Running benchmark…
Try it out!
This is a live editor, the code is running in your browser.
Run code to see output here.
Live examples
Interactive demos for local AI models, simulations, geometry processing, and numerical methods.
Gemma 3 Chat
Run a small language model locally in your browser, with GPU and CPU-based inference.
Neural Cellular Automata
Grow image patterns with a tiny differentiable automaton.
Heat Method Geodesics
Compute surface distances on triangle meshes with dense solves.
Whisper ASR
Transcribe audio locally with OpenAI Whisper.
Kyutai Pocket TTS
Voice cloning AI model that runs in your browser.
Fluid Simulation
Interactive Navier-Stokes flow with WebGPU kernels.
D-FINE Detection
Run an ONNX object detector locally with WebGPU.
MobileCLIP2 Inference
Compute embeddings for book passages.
MNIST Training
Train a neural network on handwritten digits in-browser.
Principal Component Analysis
Explore components of a 3D point cloud.
Benchmarks
Compare jax-js kernels with other web ML libraries.