Sign in
Explore
Skills · SkillWeb & UIData & AIMachine learningReviewed

transformers-js

Runs machine learning models in JavaScript and TypeScript with Transformers.js, in browsers, Node.js, Bun and Deno.

Kind
Skill
Works with
Claude Code
Languages
TypeScript / JavaScript
Source
Hugging Face Skills @ 25910b3d0ba3
Path
skills/transformers-js/SKILL.md
Jobs
Implementation
Topics
Machine learning

Credit

Made by
huggingface
Original
github.com/huggingface/skills/blob/25910b3d0ba31a2ba102f901cd…
License
Apache-2.0

Listed by Skill Manifest; not made by us.

InstallInstall it by hand, following the source.
hf skills add transformers-js
Install factsScanned 2 Nov 2026
Adds
  • .claude/skills/transformers-js/ (the skill folder)
  • 7 file(s) the skill refers to
Runs scripts
Yes
  • shell block in the text
Uses the network
Yes
  • downloads npm packages
  • HTTP client calls
Needs secrets
Yes
  • HF_TOKEN
Reads environment variables
  • HF_TOKEN
Source revision
25910b3d0ba3
Licence
Apache-2.0
Last activity
30 Oct 2026
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

  • Only the main file is read; other files in the folder are not scanned
# 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
```bash
npm install @huggingface/transformers
```

### Browser Usage (CDN)
```javascript
<script type="module">
  import { pipeline } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers';
</script>
```

## Core Concepts

### 1. Pipeline API
The pipeline API is the easiest way to use models. It groups together preprocessing, model inference, and postprocessing:

```javascript
import { pipeline } from '@huggingface/transformers';

// Create a pipeline for a specific task
…