huggingface/transformers.js

State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!

View on GitHub ↗Jump to charts ↓Open shareable report →

Summary Information

Updated 3 minutes ago
Added to GitGenius on September 3rd, 2026
Created on February 13th, 2023
Open Issues & Pull Requests: 265 (+0)
GitHub issues: Enabled
Number of forks: 1,187
Total Stargazers: 16,290 (+0)
Total Subscribers: 106 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 19.9 hours
Mean response time: 45.5 days
90th percentile: 63.0 days
Tracked items: 533

How this project is maintained

98% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Three people close 82% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 119
New in 7 days: 0
Closed in 7 days: 2
Avg open age: 404 days
Stale 30+ days: 107
Stale 90+ days: 94

Recent activity

Opened in 7 days: 0
Closed in 7 days: 2
Comments in 7 days: 0
Events in 7 days: 2

Top labels

  • bug (246)
  • question (159)
  • enhancement (79)
  • new model (38)
  • v4 (9)
  • good first issue (3)
  • help wanted (3)
  • new pipeline (3)

Detailed Description

Transformers.js is a machine learning library that enables you to run transformer models directly in web browsers without requiring a backend server.

The library solves the problem of deploying machine learning inference to client-side environments by leveraging ONNX Runtime to execute transformer models in the browser. It provides a JavaScript API designed to be functionally equivalent to Hugging Face's Python transformers library, allowing developers to use familiar patterns while working in web contexts. The tool supports a broad range of tasks across multiple modalities: natural language processing including text classification, named entity recognition, question answering, and text generation; computer vision tasks such as image classification, object detection, and segmentation; audio processing including automatic speech recognition and text-to-speech; and multimodal capabilities like zero-shot classification and embeddings. Models can be converted to ONNX format from PyTorch, TensorFlow, or JAX using Hugging Face Optimum, then deployed through the library.

Developers should adopt this tool when building web applications that need machine learning inference without server round-trips, such as privacy-sensitive applications, offline-capable tools, or performance-critical interfaces. It suits projects where latency matters and where keeping computation on the client side provides user experience or privacy benefits. The library can be installed via NPM or used directly in vanilla JavaScript through CDN delivery without a bundler.

The project maintains a substantial user base, with nearly all open issues originating from external users rather than the core team. Maintainers typically respond to new issues and pull requests within a day. Work in the issue tracker centers on bug reports, user questions, and enhancement requests.