huggingface/transformers.js

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

68
/ 100
Established

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.

15,538 stars. Actively maintained with 38 commits in the last 30 days.

No Package No Dependents
Maintenance 23 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 19 / 25

How are scores calculated?

Stars

15,538

Forks

1,104

Language

JavaScript

License

Apache-2.0

Last pushed

Mar 12, 2026

Commits (30d)

38

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/transformers/huggingface/transformers.js"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.