Transformers.js is an open-source JavaScript library developed by Hugging Face that allows you to run pretrained machine learning models directly in web browsers and JavaScript runtimes such as Node.js, Deno, and Bun.
It supports a variety of tasks, including text classification, sentiment analysis, image classification, audio processing, and feature extraction. It also allows developers to use many pretrained models from the Hugging Face Hub without having to build an inference backend from scratch.
One of the most interesting features of Transformers.js is that models can run locally in the browser, depending on the model and available hardware. This can reduce reliance on external inference APIs and allow certain inputs to be processed on the user's device.
Image Credit: Wordline
![Cloud and Edge Robotics — Ch.01: Cloud Computing Fundamentals [KR]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuv6yg87mfximmfl292zz.png)
![Cloud and Edge Robotics — Ch.02: Edge Computing [KR]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjk14lidwy2b6t9v5ruto.png)
![Cloud and Edge Robotics — Ch.03: Hybrid Cloud Edge Architecture [KR]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fttlxlllf1y54hubdjq2u.png)
![Cloud and Edge Robotics — Ch.04: AWS Robotics [KR]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3sn4d95inevzeohuhj10.png)