Transformers.js is an open-source JavaScript library from Hugging Face that runs AI models directly in the web browser without a server. It offers a JavaScript interface similar to Transformers, Hugging Face's Python library.
It relies on ONNX Runtime to execute models in the browser and uses WebAssembly or WebGPU for computation. It supports models for text, images and audio.