State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!
About this project
transformers.js is an open-source inference and training project on GitHub: State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server. It is infrastructure rather than a finished product: the layer that serves, quantises, trains or orchestrates models. It is maintained by huggingface and published as a public repository you can read, fork and run yourself.
On GitHub the repository is tagged browser, javascript, transformers and webml, which is a fair summary of what it covers. That generally means an API surface, batching and memory management, and often an OpenAI-compatible endpoint so existing clients keep working unchanged.
It is written mainly in JavaScript and released under APACHE-2.0, a permissive license — commercial use is fine as long as copyright notices are kept. It is actively maintained: the most recent commit landed on November 18, 2026.
To try it, clone the repository and follow its README; that file is the canonical install guide. There is also a project page at https://huggingface.co/docs/transformers.js for documentation or a hosted demo. Because it runs on your own infrastructure, budget time for environment setup: dependencies, model weights and configuration usually take longer than the first successful run.
Key facts as recorded on GitHub: 16,427 stars; 1,236 forks; primary language JavaScript; license APACHE-2.0; last commit on November 18, 2026; topics browser, javascript, transformers, webml.