ml5.js is a very friendly and high-level interface to TensorFlow.js, a library for handling GPU-accelerated mathematical operations and memory management for ML algorithms.

ml5.js provides an API to train new models based on pre-trained ones and also training from custom user data. It also provides access to ML algorithms and models in the browser, building on top of TensorFlow.js and requires no external dependencies.

ml5.js has well-explained documentation to guide you through each and every step and has 900 stars on GitHub