
Description
transformers-js is an agent skill for using Transformers.js, a library that runs machine learning models directly in JavaScript and TypeScript. The library works in browsers and on server runtimes such as Node.js, Bun and Deno, without a Python server. The skill covers when to use the library: text analysis, generation and translation, image classification, object detection and segmentation, speech recognition and audio processing, multimodal tasks such as text-to-image and image-to-text, and running models client-side in a browser with no backend. It gives the npm install step for the @huggingface/transformers package and points the agent to the usage patterns for each task. The skill is part of Hugging Face's skills repository and is added to a compatible agent with the skills command. It is useful for web and JavaScript developers who want to add a model to an app without building an inference service in Python.…
Highlights
- Runs models in browsers and on Node, Bun and Deno
- Covers text, vision, speech and multimodal tasks
- Installs with npm as @huggingface/transformers
- No Python server needed
Ratings & Reviews
No ratings yet
Be the first to rate transformers-js.
People also visit
transformers-js FAQ
What is Transformers.js?
It is a library for running state-of-the-art machine learning models directly in JavaScript and TypeScript, in browsers and on servers.
Can it run in the browser?
Yes. The skill covers running models client-side in a browser without a backend.
Which tasks does it support?
Text classification, translation and generation, image classification, object detection, segmentation, speech recognition and multimodal tasks such as text-to-image.
How do I install the library?
Install the @huggingface/transformers package with npm.
How do I add the skill?
Run: npx skills add https://github.com/huggingface/skills --skill transformers-js
What security audits has it passed?
Gen Agent Trust Hub, Socket and Snyk all passed.
What are the best transformers-js alternatives?
Popular alternatives to transformers-js include huggingface/transformers.js, transformers and developing-genkit-js. See all transformers-js alternatives









