#45 · Primary category: AI Gateway & API Infrastructure

huggingface.js

api-client hub huggingface inference machine-learning

Use Hugging Face with JavaScript

Project last updated:08/29/26

GitHub Stars

2.5K

Forks

856

Contributors

382

License

MIT

Why we included this project

For JavaScript projects that need to reach Hugging Face without hand-rolling HTTP calls, this is the official SDK. The packages split cleanly: the hub client handles creating repos, uploading files, and committing from the browser or Node, while the inference client wraps chat completions, text-to-image, and other tasks against both serverless providers and your own dedicated endpoints. TypeScript types ship with every package, and the libraries work from a CDN as plain ES modules, so front-end and edge setups stay light. There is also a GGUF parser, a Jinja implementation for chat templates, and a small Model Context Protocol client for agent tooling. For teams already standardizing on Hugging Face, this gives a typed, maintained path from your code into those models.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category