huggingface/transformers.js
State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server! observed · 2026-08-28
Health v2 · maintenance only
91/100
- Activity 99
- Release rhythm 80
- Longevity 92
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 9
- age_days: 1297
- days_rel: 132
- days_push: 7
- n_releases_24m: 38
Adoption not part of the score
16270 stars · 1184 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Transformers.js is a JavaScript library that lets you run Hugging Face Transformers pretrained models directly in the browser (or Node.js) using ONNX Runtime, with no server required. It offers a pipeline API functionally equivalent to the Python transformers library, covering NLP, computer vision, audio, and multimodal tasks.
Use cases
- run sentiment analysis in the browser without a server
- do object detection on uploaded images client-side
- transcribe speech to text in a web app
- translate text multilingually in a React app
- generate text embeddings for semantic search in JavaScript
- classify images or audio with zero-shot models in the browser
- run text generation or summarization locally in the user's browser
When to choose
- you want privacy-preserving, client-side ML inference with no backend or API costs
- you want to use Hugging Face pretrained models from JavaScript with a familiar pipeline API
- you're building a web app (vanilla JS, React, Next.js) that needs NLP, vision, or audio ML features
- you want models cached in the browser for fast offline-capable inference
When to avoid
- you need to train or fine-tune models — this is inference only
- you need maximum performance or very large models better suited to GPU servers
- your model architecture isn't supported by ONNX Runtime / Optimum conversion
- you're working in Python — use the transformers library instead
Facets
library · maturity active
machine-learning llm-inference nlp computer-vision speech-recognition tts image-processing audio-processing machine-learning deep-learning computer-vision web-development artificial-intelligence browser wasm onnx-runtime transformers client-side-inference hugging-face webml pretrained-models natural-language-processing nodejs javascript
10 sources
- readme: https://github.com/huggingface/transformers.js · fetched 2026-08-28 · 401df7f8d6af
- homepage: https://huggingface.co/docs/transformers.js · fetched 2026-08-29 · 1223e94e767d
- site_page: https://huggingface.co/docs · fetched 2026-08-29 · bdec26667b98
- site_page: https://huggingface.co/docs/transformers.js/installation · fetched 2026-08-29 · 3c35d566188a
- site_page: https://huggingface.co/docs/transformers.js/pipelines · fetched 2026-08-29 · 3370190dcb7b
- site_page: https://huggingface.co/docs/transformers.js/custom_usage · fetched 2026-08-29 · 405368d5497a
- site_page: https://huggingface.co/docs/transformers.js/tutorials/vanilla-js · fetched 2026-08-29 · 2cbc9b01dc2d
- site_page: https://huggingface.co/docs/transformers.js/tutorials/react · fetched 2026-08-29 · 9500c5e2a849
- site_page: https://huggingface.co/docs/transformers.js/tutorials/next · fetched 2026-08-29 · 6830708f880e
- site_page: https://huggingface.co/pricing · fetched 2026-08-29 · de6b7a178be5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| huggingface/transformers.js | main | 91 |
For agents
markdown · JSON · MCP: product_card(name="huggingface/transformers.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem