Google I/O returns May 18-20! Reserve space and build your schedule Register now

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.

Demos

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.

April 2, 2021  
TensorFlow.js Community Show & Tell #5

Watch seven inspiring 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, and check out our YouTube channel for more community showcases.

Continue
January 22, 2021  
Custom object detection in the browser using TensorFlow.js

Learn how to create an end-to-end solution using TensorFlow to train a custom MobileNetV2 in Python, put it into production, and run real-time inferences in the browser through TensorFlow.js.

December 21, 2020  
InSpace: A new video conferencing platform that uses TensorFlow.js for toxicity filters in chat

InSpace is a communication and virtual learning platform that gives people the ability to interact, collaborate, and educate in familiar physical ways. Learn how they used ML to prevent users from sending and receiving toxic messages.

December 11, 2020  
TensorFlow.js Community Spotlight #4

See six 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, and check out our YouTube channel for more community showcases.

Continue