Transformers.js
Run Hugging Face transformer models directly in browser without servers.
Model SDKsNPM
3. Used by agents' projects
Dependency in 29 public GitHub projects set up for AI coding agents that we scanned (0.5%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What Transformers.js does
Run Hugging Face transformer models directly in browser without servers.
Transformers.js popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Transformers.js is used
- Transformers.js is a dependency in 29 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.6% of the 4,867 JavaScript/TypeScript ones), #11 of 92 in model sdks.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 154; those are left out of every share on this page.
- The most used alternative in our scan is OpenAI (286 projects).
- Projects that use it most often also use TypeScript (86.2%), tsx (44.8%), Vitest (51.7%).
By coding agent
Often used with
More about Transformers.js
Agent Skills for it
- : Give your agents the power of the Hugging Face ecosystem
- transformers: Hugging Face Transformers for loading Hub models, running pipeline inference, text generation, and Trainer fine-tuning on NLP, vision, audio
Alternatives
Transformers.js This page
Official TypeScript SDK for accessing OpenAI APIs including GPT and embeddings.
Official TypeScript SDK for calling Claude API and building agent applications.
Official SDK for Google Gemini API to build AI-powered applications.
Official JavaScript client library for Ollama to run and interact with local language models.
Official TypeScript SDK for calling Mistral's language models and APIs.
Genkit AI framework plugin for Google Gemini and other Google AI APIs.
JavaScript client library for calling Replicate's AI model API.
Get started
Install it.
npm install @huggingface/transformersNo step-by-step start for Transformers.js yet: we have not written its hand-checked card.