Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

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.

Move Mirror

Explore pictures in a fun new way, just by moving around.

News & announcements

See updates to help you with your work, and subscribe to our monthly TensorFlow newsletter to get the latest announcements sent directly to your inbox.

Mar 18, 2020 
TensorFlow.js: ML for the web and beyond (TF Dev Summit '20)

Watch the Dev Summit presentation to see all that is new for TensorFlow.js and learn about upcoming features, improvements and releases.

Feb 24, 2020 
Using TensorFlow.js in production for AR makeup try on in the browser

See how L'Oréal's Modiface team uses TensorFlow.js to make makeup try on as easy as visiting a website.

Feb 4, 2020 
TensorFlow.js for React Native is here!

Learn about the new platform integration and capabilities such as GPU accelerated backend, model loading and saving, training custom models, and image and video handling.

Jan 14, 2020 
Run a TensorFlow SavedModel in Node.js directly without conversion

Use a Python model in Node.js without having to convert it. You may even see a performance boost too.