← All projects
Developer building blocks

TensorFlow.js

Lets web developers build, train and run AI models directly in a web browser or in Node.js.

What it does

TensorFlow.js is a JavaScript library, part of Google's TensorFlow family, for machine learning in web pages and in Node.js (JavaScript running on servers). Because models can run inside the browser, data can stay on the user's device.

Developers can build new models from scratch, convert existing TensorFlow and Keras models to run on the web, or retrain models with data gathered in the browser, such as sensor input. It uses the computer's graphics hardware through WebGL or WebGPU for speed, and a collection of ready-made models is available.

Who it's for

Web developers who want to add AI features to websites and apps.

Can I use it without coding?

Developers only. A JavaScript library for programmers. New to this? Start here.

Can I run it?

Cost
FreeNothing to pay or sign up for.
Runs on
Web browser
Computer
An ordinary computer is fine
Privacy
Runs on your own device: your data stays with you
API key
Not needed

Try it

Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?

Before you install

  • Only download from the official GitHub page. Copies with similar names exist for many popular projects.
  • License (Apache-2.0): Permissive: free to use, change and share, including for business.
  • More on staying safe

Where people are talking about it