Top AI Repos โ open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
State-of-the-art Machine Learning for the web. Run ๐ค Transformers directly in your browser, with no need for a server!
| Date | Stars |
|---|---|
| 2026-07-31 | 16222 |
| 2026-08-01 | 16222 |
| 2026-08-02 | 16224 |
| 2026-08-03 | 16225 |
| 2026-08-04 | 16227 |
| 2026-08-05 | 16235 |
| 2026-08-06 | 16236 |
Today
+1 stars today
This week
โ stars this week
This month
โ stars this month
Momentum
9.0
growth rate 0.00%/day
<p align="center">
<br/>
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/transformersjs-dark.svg" width="500" style="max-width: 100%;">
<source media="(prefers-color-scheme: light)" srcset="https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/transformersjs-light.svg" width="500" style="max-width: 100%;">
<img alt="transformers.js javascript library logo" src="https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/transformersjs-light.svg" width="500" style="max-width: 100%;">
</picture>
<br/>
</p>
<p align="center">
<a href="https://www.npmjs.com/package/@huggingface/transformers"><img alt="NPM" src="https://img.shields.io/npm/v/@huggingface/transformers"></a>
<a href="https://www.npmjs.com/package/@huggingface/transformers"><img alt="NPM Downloads" src="https://img.shields.io/npm/dw/@huggingface/transformers"></a>
<a href="https://www.jsdelivr.com/package/npm/@huggingface/transformers"><img alt="jsDelivr Hits" src="https://img.shields.io/jsdelivr/npm/hw/@huggingface/transformers"></a>
<a href="https://github.com/huggingface/transformers.js/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/huggingface/transformers.js?color=blue"></a>
<a href="https://huggingface.co/docs/transformers.js/index"><img alt="Documentation" src="https://img.shields.io/website/http/huggingface.co/docs/transformers.js/index.svg?down_color=red&down_message=offline&up_message=online"></a>
</p>
<h3 align="center">
<p>State-of-the-art Machine Learning for the Web</p>
</h3>
Run ๐ค Transformers directly in your browser, with no need for a server!
Transformers.js is designed to be functionally equivalent to Hugging Face's [transformers](https://github.com/huggingface/transformers) python library, meaning you can run the same pretrained models using a very similar API. These models support common tasks in different modalities, such as:
- ๐ **Natural Language Processing**: text classification, named entity recognition, question answering, language modeling, summarization, translation, multiple choice, and text generation.
- ๐ผ๏ธ **Computer Vision**: image classification, object detection, segmentation, and depth estimation.
- ๐ฃ๏ธ **Audio**: automatic speech recognition, audio classification, and text-to-speech.
- ๐ **Multimodal**: embeddings, zero-shot audio classification, zero-shot image classification, and zero-shot object detection.
Transformers.js uses [ONNX Runtime](https://onnxruntime.ai/) to run models in the browser. The best part about it, is that you can easily [convert](#convert-your-models-to-onnx) your pretrained PyTorch, TensorFlow, or JAX models to ONNX using [๐ค Optimum](https://github.com/huggingface/optimum#onnx--onnx-runtime).
For more information, check out the full [documentation](https://huggingface.co/docs/transformers.js).
## Installation
To install via [NPM](https://www.npmjs.com/package/@huggingface/transformers), run:
```bash
npm i @huggingface/transformers
```
Alternatively, you can use it in vanilla JS, without any bundler, by using a CDN or static hosting. For example, using [ES Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules), you can import the library with:
```html
<script type="module">
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected]';
</script>
```
## Quick tour
It's super simple to translate from existing code! Just like the python library, we support the `pipeline` API. Pipelines group together a pretrained model with preprocessing of inputs and postprocessing of outputs, making it the easiest way to run models with the library.
<table>
<tr>
<th width="440px" align="center"><b>Python (original)</b></th>
<th width="440px" align="center"><b>Javascript (ours)</b></th>
</tr>
<tr>
<td>
```python
from transformExcerpt of 109,626 characters
Read on GitHubJoshua Lochner ยท @huggingface
1.8k
36
Nico Martin ยท @huggingface ยท Switzerland
22
11
7
6
6
Steven Roussey
5
Thomas Steiner ยท @google Google
3
Yulong Wang ยท NVIDIA
3
3
Australia
3
Dave
3
3
Joram Millenaar
2
2
Per Harald Borgen ยท Co-founder at Scrimba ยท Norway
2
Sean Gallen ยท Israel
2
2
1
Would you bet a product on this? Bounded 0โ100 and slow moving.
matched fp:f28bc2f0a0738e2f, llm:description: 'Run ๐ค Transformers directly in your browser, with no need for a server!'; topics: transformers, javascript, browser, webml
matched fp:f28bc2f0a0738e2f, llm:description: 'Run ๐ค Transformers directly in your browser, with no need for a server!'; topics: transformers, javascript, browser, webml
matched fp:f28bc2f0a0738e2f, llm:description: 'Run ๐ค Transformers directly in your browser, with no need for a server!'; topics: transformers, javascript, browser, webml