{
 "kind": "tool",
 "slug": "huggingface",
 "path": "tools/huggingface/",
 "name": "Transformers.js",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Model SDKs",
   "tools/ai-sdks/"
  ]
 ],
 "lead": "Run Hugging Face transformer models directly in browser without servers.",
 "chips": [
  {
   "label": "Model SDKs",
   "path": "tools/ai-sdks/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @huggingface/transformers"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/huggingface/transformers.js"
  },
  {
   "label": "Website",
   "href": "https://github.com/huggingface/transformers.js#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "Apache-2.0",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/huggingface/transformers.js"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Oct 28, 2026. ",
   "src": "https://github.com/huggingface/transformers.js"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "29 projects",
   "status": "info",
   "sub": "#11 of 92 in its category",
   "note": "Dependency in 29 public GitHub projects set up for AI coding agents that we scanned (0.5%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Official agent skills",
   "status": "yes",
   "sub": "1 from the makers",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Transformers.js does",
   "parts": [
    {
     "t": "prose",
     "text": "Run Hugging Face transformer models directly in browser without servers."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Transformers.js popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "66",
       "of": "/ 100",
       "l": "Gid Score, #624 overall"
      },
      {
       "n": "4.7M",
       "l": "downloads a week, npm"
      },
      {
       "n": "16.5K",
       "l": "GitHub stars"
      },
      {
       "n": "29",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Transformers.js is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "17 projects, 0.5%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "15 projects, 0.5%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "9 projects, 0.4%",
       "v": "Cursor",
       "path": "agents/cursor/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 86.2% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 44.8% of its projects",
       "v": "tsx",
       "path": "tools/tsx/"
      },
      {
       "l": "In 51.7% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 34.5% of its projects",
       "v": "Model Context Protocol SDK (JavaScript)",
       "path": "tools/modelcontextprotocol/"
      },
      {
       "l": "In 27.6% of its projects",
       "v": "uuid",
       "path": "tools/uuid/"
      },
      {
       "l": "In 27.6% of its projects",
       "v": "yaml",
       "path": "tools/yaml/"
      },
      {
       "l": "In 27.6% of its projects",
       "v": "Anthropic SDK",
       "path": "tools/anthropic-ai/"
      },
      {
       "l": "In 24.1% of its projects",
       "v": "OpenAI",
       "path": "tools/openai-npm/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Transformers.js",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        ": 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"
       ]
      },
      {
       "title": "More in Model SDKs",
       "path": "tools/ai-sdks/",
       "items": [
        {
         "text": "AI SDK",
         "path": "tools/ai/"
        },
        {
         "text": "OpenAI Python Library",
         "path": "tools/openai-pypi/"
        },
        {
         "text": "Anthropic Python SDK",
         "path": "tools/anthropic/"
        },
        {
         "text": "Google GenAI Python SDK",
         "path": "tools/google-genai-pypi/"
        },
        {
         "text": "Hugging Face Hub",
         "path": "tools/huggingface-hub/"
        },
        {
         "text": "LiteLLM",
         "path": "tools/litellm/"
        },
        {
         "text": "Ollama",
         "path": "tools/ollama-pypi/"
        },
        {
         "text": "Pi-AI",
         "path": "tools/mariozechner-pi-ai/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Transformers.js",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 66",
        "4.7M/wk"
       ]
      },
      {
       "name": "OpenAI",
       "why": "Official TypeScript SDK for accessing OpenAI APIs including GPT and embeddings.",
       "path": "tools/openai-npm/",
       "facts": [
        "Apache-2.0",
        "Gid 81",
        "62.5M/wk"
       ]
      },
      {
       "name": "Anthropic SDK",
       "why": "Official TypeScript SDK for calling Claude API and building agent applications.",
       "path": "tools/anthropic-ai/",
       "facts": [
        "Apache-2.0",
        "Gid 74",
        "75M/wk"
       ]
      },
      {
       "name": "Google Generative AI",
       "why": "Official SDK for Google Gemini API to build AI-powered applications.",
       "path": "tools/google-genai-npm/",
       "facts": [
        "Apache-2.0",
        "Gid 69",
        "34.2M/wk"
       ]
      },
      {
       "name": "Ollama JavaScript Library",
       "why": "Official JavaScript client library for Ollama to run and interact with local language models.",
       "path": "tools/ollama-npm/",
       "facts": [
        "MIT",
        "Gid 57",
        "1.3M/wk"
       ]
      },
      {
       "name": "Mistral AI",
       "why": "Official TypeScript SDK for calling Mistral's language models and APIs.",
       "path": "tools/mistralai-mistralai/",
       "facts": [
        "Apache-2.0",
        "Gid 45",
        "6.7M/wk"
       ]
      },
      {
       "name": "Genkit Google AI",
       "why": "Genkit AI framework plugin for Google Gemini and other Google AI APIs.",
       "path": "tools/genkit-ai-googleai/",
       "facts": [
        "Apache-2.0",
        "Gid 39",
        "50.7K/wk"
       ]
      },
      {
       "name": "Replicate",
       "why": "JavaScript client library for calling Replicate's AI model API.",
       "path": "tools/replicate-npm/",
       "facts": [
        "Apache-2.0",
        "Gid 41",
        "713K/wk"
       ]
      }
     ],
     "more": "Compare Transformers.js with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @huggingface/transformers"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Transformers.js yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @huggingface/transformers"
  ],
  [
   "Category",
   "Model SDKs"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "65.8"
  ],
  [
   "Rank in category",
   "#11 of 92"
  ],
  [
   "GitHub",
   "huggingface/transformers.js"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/huggingface.png"
}