Transformers.js
JavaScript library that runs transformer models in the browser or Node.js via ONNX Runtime.
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
- Category
- LLM Inference & Serving
- 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-source ChatGPT alternative that runs 100% offline on your computer.
Port of Meta's LLaMA model in C/C++ for efficient CPU inference
Fast LLM inference on consumer GPUs using neuron-aware sparse computation.
High-throughput LLM serving engine with PagedAttention
Minimalist machine learning framework for Rust focused on performance and serverless inference.