#2222nd of 433 in ML frameworks and libraries

transformers.js

Run Hugging Face models in the browser or Node with JavaScript

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
16.5k
License
Apache-2.0
Last commit
Nov 2026
Last release
Oct 2026
Language
JavaScript
Stars, last 35 weeks+1,030
25 Mar 2026: 15,429 stars1 Apr 2026: 15,545 stars8 Apr 2026: 15,643 stars15 Apr 2026: 15,690 stars22 Apr 2026: 15,724 stars29 Apr 2026: 15,775 stars6 May 2026: 15,803 stars13 May 2026: 15,843 stars20 May 2026: 15,865 stars27 May 2026: 15,893 stars3 Jun 2026: 15,918 stars10 Jun 2026: 15,941 stars17 Jun 2026: 15,986 stars24 Jun 2026: 16,008 stars1 Jul 2026: 16,036 stars8 Jul 2026: 16,065 stars15 Jul 2026: 16,085 stars22 Jul 2026: 16,108 stars29 Jul 2026: 16,129 stars5 Aug 2026: 16,147 stars12 Aug 2026: 16,165 stars19 Aug 2026: 16,183 stars26 Aug 2026: 16,199 stars2 Sept 2026: 16,216 stars9 Sept 2026: 16,227 stars16 Sept 2026: 16,244 stars23 Sept 2026: 16,272 stars30 Sept 2026: 16,299 stars7 Oct 2026: 16,313 stars14 Oct 2026: 16,327 stars21 Oct 2026: 16,346 stars28 Oct 2026: 16,368 stars4 Nov 2026: 16,388 stars11 Nov 2026: 16,408 stars18 Nov 2026: 16,424 stars25 Nov 2026: 16,459 stars

15,429 on 25 Mar 202616,459 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Transformers.js mirrors the Python transformers pipeline API in JavaScript and runs ONNX-format models client-side through ONNX Runtime. It covers NLP, vision, audio and multimodal tasks such as text generation, speech recognition, text-to-speech, object detection and embeddings. Execution defaults to WASM on CPU, with optional WebGPU and selectable quantization (fp32, fp16, q8, q4).

Who it is for: JavaScript developers running ML models client-side in browsers or Node

Strengths

  • Pipeline API closely matches Python transformers, so existing code translates easily
  • Runs in the browser with no server; installable via npm or CDN
  • Optional WebGPU backend and dtype option (fp32, fp16, q8, q4) to cut model size
  • Covers NLP, vision, audio, embeddings and document question answering

Weaknesses

  • Models must be ONNX; PyTorch, TensorFlow or JAX models need conversion via Optimum
  • WebGPU is experimental in many browsers and may fail for some models
  • No text-to-image, visual question answering, mask generation or video classification
  • Default setup fetches models and WASM binaries from remote hosts unless reconfigured

What it needs

  • GPU optional
  • Needs ONNX Runtime, Hugging Face Hub (default model source), Optimum (for ONNX conversion)
  • Models: ONNX, Hugging Face transformers architectures

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in ML frameworks and libraries

See all 433
Also in ML frameworks and libraries
RankProjectScore
#20tensorflowTensor and neural network framework with Python and C++ APIs201.8k starsApache-2.085 out of 100
#21lerobotPyTorch library for robot control, datasets and policy training Live demo ↗ (opens in a new tab)29.2k starsApache-2.085 out of 100
#23autogluonAutoML library for tabular, time series and multimodal data in Python10.8k starsApache-2.085 out of 100
#24feastFeature store that serves consistent ML features for training and online inference7.4k starsApache-2.085 out of 100
#25jaxPython library for autodiff, JIT compilation and vectorization of NumPy-style code36.7k starsApache-2.084 out of 100