TensorFlow 2.0 Beta is available Learn more
TensorFlow.js is a library for developing and training ML models in JavaScript, and deploying in browser or on Node.js
See tutorials

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

See the guide

Guides explain the concepts and components of TensorFlow.js.

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
Jul 15, 2019
Sign up for the Node.js Webinar, happening August 21

In this webinar, we will walk you through how to use TensorFlow.js in Node.js (for training/inference) in the first half. This will be followed by an open Q&A session.

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 StackOverflow 
Issues, bug reports, and feature requests 
Community discussion forum 
Announcement-only mailing list