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.
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



Transport yourself to a tropical beach, outer space, and elsewhere with the power of web ML.
How Adobe used Web ML with TensorFlow.js to enhance Photoshop for web
Photoshop Web Beta is a browser-based version of the popular desktop image editing software, Adobe Photoshop. This online tool offers a wide range of features and capabilities for editing, enhancing, and manipulating images, all through a web
TensorFlow
March 30, 2023
Content moderation using machine learning: the server-side part
cd text - moderation / functions const functions = require ( 'firebase-functions' ); const toxicity = require ( '@tensorflow-models/toxicity' ); exports. moderator = functions. database. ref ( '/messages/{messageId}' ). onCreate ( async ( snapshot,
TensorFlow
September 8, 2022
JAX on the Web with TensorFlow.js
In this blog post we demonstrate how to convert and run Python-based JAX functions and Flax machine learning models in the browser using TensorFlow.js. We have produced three examples of JAX-to-TensorFlow.js conversion each with increasing
TensorFlow
August 31, 2022
Content moderation using machine learning: a dual approach
I've often wondered why anonymity drives people to say things that they'd never dare say in person, and it’s unfortunate that comment sections for videos and articles are so often toxic! If you’re interested in content moderation, you can use machine
TensorFlow
August 19, 2022