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.

October 1, 2020  
Join the TensorFlow.js Special Interest Group (SIG)

We are happy to announce a new SIG to drive community ownership of TensorFlow.js projects. We encourage any developers working at the intersection of machine learning and web/JS applications to join and participate in the activities of the SIG.

September 18, 2020  
TensorFlow.js Community Show & Tell #3

The TensorFlow.js community showcase is back! See eight exciting new demos pushing the boundaries of on-device machine learning in JavaScript. Share your work with #MadewithTFJS for a chance to be featured at the next Show & Tell.

September 2, 2020  
Supercharging the TensorFlow.js WebAssembly backend with SIMD and multi-threading

Announcing a major update to the TensorFlow.js WebAssembly backend: version 2.3.0 adds SIMD and multi-threading support enabling up to a 10x performance boost.

August 25, 2020  
Introducing Danfo.js, a Pandas-like Library in JavaScript

Danfo.js is an open-source, JavaScript library that provides high-performance, intuitive, and easy-to-use data structures for manipulating and processing structured data. Danfo.js is heavily inspired by the Python Pandas library and provides a similar interface/API.