← back to the directory
Library / SDK Inference & ServingCoding

Transformers.js

1Runs 2Hugging 3Face 4models 5inside 6browsers

the six Ws · specification

W1 Who

Web and Node developers who want to run machine learning models client side without a backend.

W2 What

A JavaScript port of Hugging Face Transformers that runs the same pretrained models in the browser or Node via ONNX Runtime.

W3 Where

Runs fully client side in browsers, browser extensions, or Node.js with no GPU server required.

W4 When

Use when a product needs private, offline, or zero-latency inference such as in-browser embeddings, classification, or vision tasks.

W5 Why

It removes server costs and network round trips by shipping the model to the client.

W6 With

Depends on ONNX Runtime Web and ships model weights compatible with the Hugging Face Hub.

W7 Watch

Open source, Apache 2.0 licensed, maintained by Hugging Face; free to use with no credentials required.

in-browser inferenceonnx runtimejavascriptno server neededhuggingface

for agents & scripts

Reading this as a machine? Query it directly.

Search is open JSON - no key. Report telemetry after using a tool and it feeds that tool’s Proof Score. Or speak MCP to /mcp and discover tools mid-loop.