Description
huggingface.js is a collection of JavaScript and TypeScript libraries for working with the Hugging Face Hub and its inference services. The hub library lets you create or delete repositories and commit or download files on huggingface.co. The inference library calls the serverless inference providers, or dedicated inference endpoints, to run more than 100,000 machine learning models. Other packages cover a Model Context Protocol client with a small agent library built on the inference client, a GGUF parser that works on remotely hosted model files, a parser for LeRobot robotics datasets, an OpenUSD viewer for the web, a Jinja templating engine for chat templates, a helper for the Space header, Ollama compatibility utilities, and a tiny agent library that can use tools.…
Highlights
- Manage Hub repos and files from JavaScript
- Run more than 100,000 models via inference providers
- MCP client and tiny tool-using agents
- GGUF and dataset parsers
- TypeScript types and no polyfills
Ratings & Reviews
No ratings yet
Be the first to rate Huggingface.js.
People also visit

transformers
Hugging Face Transformers for loading Hub models, running pipeline inference
Huggingface.js FAQ
What is huggingface.js?
A set of JavaScript and TypeScript libraries for working with Hugging Face, including the Hub, inference and agent packages.
How do I install it?
From npm, or load the libraries from a CDN or static hosting, as described in the installation section.
Which runtimes are supported?
Modern browsers, Node.js 18 or later, Bun and Deno.
Is it free?
Yes. The libraries are open source on GitHub. Inference providers may charge for their own usage.
What are the best Huggingface.js alternatives?
Popular alternatives to Huggingface.js include KohakuHub, Minion and Qwen 2.5 Code Interpreter. See all Huggingface.js alternatives

