transformers.js and transformers-js

The first is the official Hugging Face implementation that dominates the ecosystem, while the second is an independent third-party alternative attempting to solve the same problem of browser-based transformer inference—making them direct competitors.

transformers.js
68
Established
transformers-js
39
Emerging
Maintenance 23/25
Adoption 10/25
Maturity 16/25
Community 19/25
Maintenance 0/25
Adoption 10/25
Maturity 16/25
Community 13/25
Stars: 15,538
Forks: 1,104
Downloads:
Commits (30d): 38
Language: JavaScript
License: Apache-2.0
Stars: 233
Forks: 17
Downloads:
Commits (30d): 0
Language: JavaScript
License: MIT
No Package No Dependents
Stale 6m No Package No Dependents

About transformers.js

huggingface/transformers.js

State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!

Leverages ONNX Runtime with WASM execution (CPU) or WebGPU (GPU) to run quantized transformer models efficiently in browsers, supporting optional 4-bit and 8-bit quantization. Provides a JavaScript API functionally equivalent to Hugging Face's Python library, enabling seamless conversion of PyTorch, TensorFlow, and JAX models via Optimum. Spans NLP, computer vision, audio, and multimodal tasks across text classification, object detection, speech recognition, and zero-shot learning.

About transformers-js

praeclarum/transformers-js

Browser-compatible JS library for running language models

Scores updated daily from GitHub, PyPI, and npm data. How scores work