# TensorFlow.js | Machine Learning for JavaScript Developers

# 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](https://www.tensorflow.org/js/tutorials)


Tutorials show you how to use TensorFlow.js with complete, end-to-end examples.
[See models](https://www.tensorflow.org/js/models)


Pre-trained, out-of-the-box models for common use cases.
[See demos](https://www.tensorflow.org/js/demos)


Live demos and examples run in your browser using TensorFlow.js.
![](https://www.tensorflow.org/static/site-assets/images/marketing/learn/learn-js-hero.svg)

## How it works

![](https://www.tensorflow.org/static/site-assets/images/marketing/learn/js-run.svg)

#### Run existing models

Use off-the-shelf JavaScript models or convert Python TensorFlow models to run in the browser or under Node.js.
[Use official TensorFlow.js models](https://www.tensorflow.org/js/models) [Convert Python models](https://www.tensorflow.org/js/tutorials#convert_pretained_models_to_tensorflowjs) ![](https://www.tensorflow.org/static/site-assets/images/marketing/learn/js-retrain.svg)

#### Retrain existing models

Retrain pre-existing ML models using your own data.
[Use Transfer Learning to customize models](https://www.tensorflow.org/js/tutorials/transfer/what_is_transfer_learning) ![](https://www.tensorflow.org/static/site-assets/images/marketing/learn/js-develop.svg)

#### Develop ML with JavaScript

Build and train models directly in JavaScript using flexible and intuitive APIs.
[Get started with TensorFlow.js](https://www.tensorflow.org/js/tutorials)

## Demos

![](https://www.tensorflow.org/static/site-assets/images/marketing/cards/tile_piano.jpg) [Performance RNN](https://magenta.tensorflow.org/demos/performance_rnn/index.html#2%7C2,0,1,0,1,1,0,1,0,1,0,1%7C1,1,1,1,1,1,1,1,1,1,1,1%7C1,1,1,1,1,1,1,1,1,1,1,1%7Cfalse) Enjoy a real-time piano performance by a neural network.
[Explore demo](https://magenta.tensorflow.org/demos/performance_rnn/index.html#2%7C2,0,1,0,1,1,0,1,0,1,0,1%7C1,1,1,1,1,1,1,1,1,1,1,1%7C1,1,1,1,1,1,1,1,1,1,1,1%7Cfalse) [View code](https://github.com/tensorflow/magenta-demos/tree/master/performance_rnn) ![](https://www.tensorflow.org/static/site-assets/images/marketing/cards/tile_webcam.jpg) [Webcam Controller](https://storage.googleapis.com/tfjs-examples/webcam-transfer-learning/dist/index.html) Play Pac-Man using images trained in your browser.
[Explore demo](https://storage.googleapis.com/tfjs-examples/webcam-transfer-learning/dist/index.html) [View code](https://github.com/tensorflow/tfjs-examples/tree/master/webcam-transfer-learning) ![](https://www.tensorflow.org/static/site-assets/images/marketing/cards/tile_holobooth_flutter.gif) [Holobooth](https://holobooth.flutter.dev/) Transport yourself to a tropical beach, outer space, and elsewhere with the power of web ML.
[Explore demo](https://holobooth.flutter.dev/) [View code](https://github.com/flutter/holobooth) [See all demos](https://www.tensorflow.org/js/demos)

## News \& announcements

Check out our [blog](https://blog.tensorflow.org/search?label=TensorFlow.js&max-results=20) for additional updates, and subscribe to our TensorFlow newsletter to get the latest announcements sent directly to your inbox.
[Sign up](https://www.tensorflow.org/subscribe)

## Community participation

See more ways to participate in the TensorFlow community.
[Community](https://www.tensorflow.org/community) ![](https://www.tensorflow.org/static/site-assets/images/marketing/cards/tile_community_card_hero.jpg) [Made with TensorFlow.js demos](https://www.youtube.com/playlist?list=PLQY2H8rRoyvzSZZuF0qJpoJxZR1NgzcZw) [TensorFlow.js on GitHub](https://github.com/tensorflow/tfjs) [Ask a question on TensorFlow Forum](https://discuss.ai.google.dev/c/tensorflow/21) [Stack Overflow](https://stackoverflow.com/questions/tagged/tensorflow.js) [Issues, bug reports, and feature requests](https://github.com/tensorflow/tfjs/issues) [Announcement-only mailing list](https://groups.google.com/a/tensorflow.org/forum/#!forum/tfjs-announce) [Join the TF.js Special Interest Group](https://github.com/tensorflow/community/blob/master/sigs/tf.js/CHARTER.md) [Explore Dev Library community projects](https://devlibrary.withgoogle.com/products/ml)

## Get started with TensorFlow.js

[Explore tutorials](https://www.tensorflow.org/js/tutorials)