qmetrics.net

Huggingface.js

JavaScript libraries for Hugging Face Hub and inference APIs

Huggingface.js screenshot

Hugging Face JS packages let TypeScript and JavaScript apps manage Hub repos, call inference providers, and parse ML file formats from browsers or Node.

Overview

Hugging Face JS libraries are a family of npm packages for working with Hugging Face services from JavaScript or TypeScript, with types included. They target modern browsers and Node.js 18 or newer, plus Bun and Deno, without legacy polyfills.

The @huggingface/hub package creates, updates, and deletes repositories and uploads or downloads files on huggingface.co. @huggingface/inference wraps serverless inference providers and dedicated inference endpoints for chat, image, translation, and related model tasks.

Additional packages cover MCP clients and tiny agents, GGUF and DDUF parsers for remote files, LeRobot dataset layouts, OpenUSD web viewing, Hub task definitions, a minimal Jinja engine for chat templates, Space header embedding, Ollama compatibility helpers, and tool-using agent utilities.

You install only the packages you need from npm, import them in bundled apps, or load them as ES modules from a CDN. Examples in the docs use access tokens from Hugging Face account settings for authenticated Hub and inference calls.

Key features

  • @huggingface/hub repo file operations
  • @huggingface/inference multi-provider calls
  • MCP client and tiny agents package
  • GGUF DDUF and LeRobot parsers
  • USD web viewer with three.js
  • Jinja templates for chat models
  • CDN and npm installation paths
  • TypeScript types included

Use cases

  • Manage Hub models from a web app
  • Call hosted LLMs in Node or browser
  • Build agents with MCP tool servers
  • Parse remote GGUF metadata in JS

Tags

Similar software

TensorFlow

End-to-end machine learning platform and tooling ecosystem

TensorFlow is a machine learning platform with Python and C++ APIs, optional GPU packages, and companion libraries for data, training, deployment, and visualization.

★ 201.8k⟳ todayApache-2.0

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

★ 169.4k⟳ todayApache-2.0

RAGFlow

Open-source RAG engine and agent context platform

RAGFlow ingests heterogeneous documents, builds retrievable knowledge, and supports agent workflows with citations. It can run on your own hardware with Docker or a from-source server stack.

★ 94.8k⟳ todayApache-2.0

Headroom

Local LLM context compression library and proxy

Headroom shrinks tool outputs, logs, JSON, and chat history before LLM calls to cut input tokens while preserving retrievable originals. It offers a Python library, proxy, MCP tools, and agent wrappers.

★ 81k⟳ yesterdayApache-2.0

Unsloth

Local desktop workspace to run and fine-tune AI models

Unsloth is a desktop application to chat with, fine-tune, and serve LLMs, diffusion, audio, and embedding models on your own hardware with optional agent integrations.

★ 80.4k⟳ todayApache-2.0

Models

TensorFlow reference models and modeling utilities collection

The TensorFlow Model Garden hosts implementations of models and modeling solutions for TensorFlow, installable via pip as tf-models-official.

★ 77.6k⟳ 11 days agoApache-2.0