TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. 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.

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.

Jul 21, 2019 
TensorFlow Meets

On this episode of TensorFlow Meets, Laurence talks with Yannick Assogba, software engineer on the TensorFlow.js team. Learn about training in the browser, and how TensorFlow.js pre-trained and custom models can help you solve your ML use cases.

May 8, 2019 
Machine Learning Magic for Your JavaScript Application (I/O'19)

In this talk, you will learn about the TensorFlow.js ecosystem: how to bring an existing machine learning model into your JS app, re-train the model using your data, and go beyond the browser to other JS platforms.

Oct 10, 2018 
Text Classification using TF.js

Learn about the Toxicity classifier, and how it’s possible to build entirely client-side text analysis models that run in close to real-time in the browser to combat toxic behaviors in online communities.

Jun 10, 2018
Handtrack.js

Explore the Handtrack.js library, which allows you to track a user’s hand in a browser from an image in any orientation, in 3 lines of code.

Community participation

See more ways to participate in the TensorFlow community.

Gallery of community built TensorFlow.js projects 
TensorFlow.js on GitHub 
Ask a question on Stack Overflow 
Issues, bug reports, and feature requests 
Community discussion forum 
Announcement-only mailing list