Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Transformers.js

Run Hugging Face transformer models directly in browser without servers.

Model SDKsNPM

GitHubWebsite

1. License

License from npm.

github.com/huggingface/transformers.js

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

66 / 100
Gid Score, #624 overall
4.7M
downloads a week, npm
16.5K
GitHub stars
29
agent projects use it
Transformers.js: downloads per weeknpm, @huggingface/transformers 4,671,657
Transformers.js: GitHub starshuggingface/transformers.js 16,455

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

17 projects, 0.5%
15 projects, 0.5%
9 projects, 0.4%

Often used with

In 86.2% of its projects
In 44.8% of its projects
In 51.7% of its projects
In 27.6% of its projects
In 27.6% of its projects
In 27.6% of its projects
In 24.1% of its projects

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

See all

More in Model SDKs

Alternatives

Transformers.js This page

Apache-2.0Gid 664.7M/wk

OpenAI

Official TypeScript SDK for accessing OpenAI APIs including GPT and embeddings.

Apache-2.0Gid 8162.5M/wk

Anthropic SDK

Official TypeScript SDK for calling Claude API and building agent applications.

Apache-2.0Gid 7475M/wk

Google Generative AI

Official SDK for Google Gemini API to build AI-powered applications.

Apache-2.0Gid 6934.2M/wk

Ollama JavaScript Library

Official JavaScript client library for Ollama to run and interact with local language models.

MITGid 571.3M/wk

Mistral AI

Official TypeScript SDK for calling Mistral's language models and APIs.

Apache-2.0Gid 456.7M/wk

Genkit Google AI

Genkit AI framework plugin for Google Gemini and other Google AI APIs.

Apache-2.0Gid 3950.7K/wk

Replicate

JavaScript client library for calling Replicate's AI model API.

Apache-2.0Gid 41713K/wk

Compare Transformers.js with another tool

Get started

Install it.

npm install @huggingface/transformers

No step-by-step start for Transformers.js yet: we have not written its hand-checked card.