Machine Learning in the Browser with JavaScript

Run machine learning models directly in the browser or Node.js — no Python server required.

TensorFlow.js

ML & Browser AI

Machine learning for JavaScript. Train and deploy ML models in the browser and Node.js.

tensorflow/tfjs

ONNX Runtime Web

ML & Browser AI

Run ONNX models in the browser with WebAssembly and WebGPU acceleration.

microsoft/onnxruntime

Transformers.js

ML & Browser AI

Run Hugging Face transformers directly in the browser. NLP, vision, and audio — no server needed.

huggingface/transformers.js

WebLLM

ML & Browser AI

Run large language models entirely in the browser using WebGPU. Private, fast, offline-capable.

mlc-ai/web-llm

Brain.js

ML & Browser AI

GPU-accelerated neural networks in JavaScript. Simple API for training and running neural nets.

BrainJS/brain.js

More JavaScript AI tools