skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

transformers.js

Run ML models in the browser with Transformers.js

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/huggingface/skills --skill transformers.js

Overview

What This Skill Does

Transformers.js runs Hugging Face machine learning models directly in JavaScript, in both Node.js and browsers. It supports text, image, audio, and multimodal tasks using ONNX-converted models, with no backend or Python runtime needed.

Application

When to use this Skill

Documentation

Show Skills.md file

Transformers.js - Machine Learning for JavaScript

Transformers.js enables running state-of-the-art machine learning models directly in JavaScript across browsers and server-side runtimes (Node.js, Bun, Deno), with no Python server required.

When to Use This Skill

Use this skill when you need to:

  • Run ML models for text analysis, generation, or translation in JavaScript
  • Perform image classification, object detection, or segmentation
  • Implement speech recognition or audio processing
  • Build multimodal AI applications (text-to-image, image-to-text, etc.)
  • Run models client-side in the browser without a backend

Installation

NPM Installation

npm install @huggingface/transformers

Browser Usage (CDN)

<script type="module">
  import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers';
</script>
Lines 1 - 26 of 680

Recommendations

Explore other random skills

All skillsMy patterns