huggingface/huggingface.js
Use Hugging Face with JavaScript observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 99
- Release rhythm 87
- Longevity 93
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 1304
- days_rel: 7
- days_push: 7
- n_releases_24m: 124
Adoption not part of the score
2501 stars · 852 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A collection of TypeScript JavaScript libraries for interacting with the Hugging Face ecosystem, including Hub repository management, unified inference across providers, an MCP client, and GGUF parsing. It ships with full TS types and works in Node, Deno, and browsers.
Use cases
- call hugging face inference api from javascript
- upload and download models from the hugging face hub in node
- run chat completions with llama models via inference providers
- generate images from text prompts in a js app
- build an ai agent with tool calling in typescript
- parse a remote gguf model file in the browser
- connect an mcp client to hugging face models
When to choose
- you need typed JavaScript/TypeScript access to the Hugging Face Hub or Inference API
- you want a unified client across multiple inference providers (SambaNova, Replicate, Together, etc.)
- you're building JS apps or browser tools that interact with HF models, datasets, or Spaces
When to avoid
- you need to run ML models locally in the browser (use Transformers.js instead)
- your stack is Python (use huggingface_hub or transformers)
- you need training or fine-tuning capabilities, which this client does not provide
Facets
library · maturity active
http-client llm-inference sdk agent-framework mcp parser templating machine-learning large-language-models artificial-intelligence developer-tools apis browser bun cross-platform huggingface api-client inference-providers model-hub gguf chat-completions text-to-image monorepo nodejs deno typescript
10 sources
- readme: https://github.com/huggingface/huggingface.js · fetched 2026-08-28 · c2e6ab1eb573
- homepage: https://hf.co/docs/huggingface.js · fetched 2026-08-29 · 61828b1a769b
- site_page: https://huggingface.co/docs · fetched 2026-08-29 · bdec26667b98
- site_page: https://huggingface.co/docs/huggingface.js/inference/README · fetched 2026-08-29 · 77106ccd9023
- site_page: https://huggingface.co/docs/huggingface.js/inference/modules · fetched 2026-08-29 · c4fcffbb4c0d
- site_page: https://huggingface.co/docs/huggingface.js/inference/classes/HfInference · fetched 2026-08-29 · 5ed795cbc4cb
- site_page: https://huggingface.co/docs/huggingface.js/inference/classes/InferenceClient · fetched 2026-08-29 · 4473d4aea311
- site_page: https://huggingface.co/docs/huggingface.js/inference/classes/InferenceClientEndpoint · fetched 2026-08-29 · 6174c42dd813
- site_page: https://huggingface.co/docs/huggingface.js/inference/classes/InferenceClientError · fetched 2026-08-29 · 1ee67ffada6c
- site_page: https://huggingface.co/pricing · fetched 2026-08-29 · de6b7a178be5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| huggingface/huggingface.js | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="huggingface/huggingface.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem