ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

TensorFlow.js is a library for machine learning in JavaScript

Develop ML models in JavaScript, and use ML directly in the browser or in Node.js.

See tutorials

Tutorials show you how to use TensorFlow.js with complete, end-to-end examples.

See models

Pre-trained, out-of-the-box models for common use cases.

See demos

Live demos and examples run in your browser using TensorFlow.js.

How it works

Run existing models

Use off-the-shelf JavaScript models or convert Python TensorFlow models to run in the browser or under Node.js.

Retrain existing models

Retrain pre-existing ML models using your own data.

Develop ML with JavaScript

Build and train models directly in JavaScript using flexible and intuitive APIs.


Performance RNN

Enjoy a real-time piano performance by a neural network.

Webcam Controller

Play Pac-Man using images trained in your browser.

LipSync by YouTube

Lip sync to the popular hit "Dance Monkey" live in the browser with Facemesh.

News & announcements

Check out our blog for additional updates, and subscribe to our monthly TensorFlow newsletter to get the latest announcements sent directly to your inbox.

May 19, 2021  
High Fidelity Pose Tracking with MediaPipe BlazePose and TensorFlow.js

Achieve higher accuracy and performance in pose detection with MediaPipe BlazePose, a 33-keypoint pose estimation model capable of running in real-time.

May 19, 2021  
Run TensorFlow Lite models on the web directly with TensorFlow.js

Unify your mobile and web ML deployments by reusing optimized TF Lite models and running in the browser via WebAssembly, no JavaScript rewrite required. Our new TF.js task APIs support a variety of models and backends.

May 18, 2021  
Speed-up your sites with web-page prefetching using ML

Improve website user experience by training a custom machine learning model with site navigation data to predict next pages, and use an Angular app to prefetch the content and improve site speed.

May 18, 2021  
Machine learning for next gen web apps with TensorFlow.js (Google I/O)

Get a high level overview of what TensorFlow.js is, how it's currently being used, what's new this year, plans for the future, and how you can get involved with our newly formed special interest and working groups.