



JavaScript library from Hugging Face for running transformer models directly in the browser with no server required, providing embeddings, classification, and multimodal capabilities using ONNX Runtime.
Transformers.js is a JavaScript library for running 🤗 Transformers directly in your browser with no server required. Designed to be functionally equivalent to the original Python library with a similar API.
Vector Embeddings in Browser: Popular model all-MiniLM-L6-v2 produces 384-dimension vectors from text, running entirely client-side
Related Content: Build semantic related posts or document similarity without backend infrastructure
Privacy-Focused Applications: All processing happens locally, ensuring user data privacy
import { pipeline } from "@huggingface/transformers";
Works in:
Free and open-source.
Loading more......