Skip to content

transformers.js

Run transformer models in the browser

Visit official site

What transformers.js is

The library is described as a way to bring machine learning to web pages by running pre-trained models inside a browser.

What you can do with it

  • Run text and vision tasks locally
  • Handle audio and multimodal tasks
  • Use a pipeline for preprocessing

Example uses

  • A page offers live translation
  • Images are labelled and sorted
  • A page turns speech into text

Pros & cons

✓ What we like

  • No server support is needed
  • An API close to the Python library is stated

! What to watch out for

  • Models must be in ONNX format
  • A model is chosen before inference

FAQ

What backend is named?

The material names ONNX Runtime as the backend.

Which Python library is referenced?

The material states feature parity with the Hugging Face transformers Python library.

Last reviewed: 2026-11-15

More AI coding tools tools

View all →

How we review