Transformers.js

JavaScript library that runs transformer models in the browser or Node.js via ONNX Runtime.

Open SourceSelf HostedOffline Capable
0.0 (0)

About

Hugging Face's Transformers library has a JavaScript twin: Transformers.js runs pretrained models directly in the browser or Node.js with no server, using ONNX Runtime for execution and WebGPU for GPU acceleration. The API deliberately mirrors the Python pipeline interface, so a few lines cover text classification, translation, summarization, object detection, image segmentation, speech recognition, zero-shot classification, and embedding generation, spanning more than 160 model architectures from BERT and Whisper to Llama, Mistral, and Qwen. Models load from the Hugging Face Hub with quantization options at fp32, fp16, q8, and q4 to keep downloads and memory reasonable for client devices. Installation is npm i @huggingface/transformers, or a CDN import for quick prototypes, with the v4 series current. Everything is Apache-2.0 licensed with around 16.2k GitHub stars. Web developers use it to add on-device inference to extensions, PWAs, and sites where privacy, latency, or hosting cost rules out a server-side model.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
Local/Desktop
Difficulty
Intermediate (3/5)
License
Apache-2.0
Added
Jul 29, 2026

Related Tools

Minimalist ML framework in Rust by Hugging Face for fast inference.

Open SourceSelf HostedOffline
Advanced
0.0 (0)

Open-source ChatGPT alternative that runs 100% offline on your computer.

Open SourceSelf HostedOffline
Beginner
0.0 (0)
Featured

Port of Meta's LLaMA model in C/C++ for efficient CPU inference

Open SourceSelf HostedOffline
Intermediate
0.0 (0)

Fast LLM inference on consumer GPUs using neuron-aware sparse computation.

Open SourceSelf HostedOfflineGPU 4GB+
Advanced
0.0 (0)
Featured

High-throughput LLM serving engine with PagedAttention

Open SourceSelf HostedOfflineGPU 16GB+
Intermediate
0.0 (0)

Minimalist machine learning framework for Rust focused on performance and serverless inference.

Open SourceSelf HostedOffline
Intermediate
0.0 (0)
Browse all LLM Inference & Serving tools