transformers-js
Use Transformers.js to run state-of-the-art machine learning models directly in JavaScript/TypeScript.
Skill by huggingface
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sediman-agent-transformers-js
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
transformers-js- Description
- Use Transformers.js to run state-of-the-art machine learning models directly in JavaScript/TypeScript. Supports NLP (text classification, translation, summarization), computer vision (image classification, object detection), audio (speech recognition, audio classification), and multimodal tasks. Works in browsers and server-side runtimes (Node.js, Bun, Deno) with WebGPU/WASM using pre-trained models from Hugging Face Hub.
- License
- Apache-2.0
- Compatibility
- Requires Node.js 18+ (or compatible Bun/Deno runtime) or modern browser with ES modules support. WebGPU requires runtime and hardware support; WASM is the broad fallback. Internet access is needed for downloading models from Hugging Face Hub (optional if using local models).
- Metadata
- author: huggingface · version: 4.x · category: machine-learning · repository: https://github.com/huggingface/transformers.js
- Instructions
- 682 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- body: 682 lines (spec recommends under 500)
Files (8)
- SKILL.md
- CACHE.md · references/
- CONFIGURATION.md · references/
- EXAMPLES.md · references/
- MODEL_ARCHITECTURES.md · references/
- MODEL_REGISTRY.md · references/
- PIPELINE_OPTIONS.md · references/
- TEXT_GENERATION.md · references/
SKILL.md (first lines)
# 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
const pipe = await pipeline('sentiment-analysis');
// Use the pipeline
const result = await pipe('I love transformers!');
// Output: [{ label: 'POSITIVE', score: 0.999817686 }]
// IMPORTANT: Always dispose when done to free memory
await pipe.dispose();
```
**⚠️ Memory Management:** All pipelines must be disposed with `pipe.dispose()` when finished to prevent memory leaks. See examples in [Code Examples](./references/EXAMPLES.md) for cleanup patterns across different environments.
### 2. Model Selection
You can specify a custom model as the second argument:
```javascript
const pipe = await pipeline(
'sentiment-analysis',
'Xenova/bert-base-multilingual-uncased-sentiment'
);
```
**Finding Models:**
Browse available Transformers.js models on Hugging Face Hub:
- **All models**: https://huggingface.co/models?library=transformers.js&sort=trending
- **By task**: Add `pipeline_tag` parameter
- Text generation: https://huggingface.co/models?pipeline_tag=text-generation&library=transformers.js&sort=trending
- Image classification: https://huggingface.co/models?pipeline_tag=image-classification&library=transformers.js&sort=trending
- Speech recognition: https://huggingface.co/models?pipeline_tag=automatic-speech-recognition&library=transformers.js&sort=trending
**Tip:** Filter by task type, sort by trending/downloads, and check model cards for performance metrics and usage examples.
### 3. Device Selection
Choose where to run the model:
```javascript
// Run on CPU (default for WASM)
const pipe = await pipeline('sentiment-analysis', 'model-id');
// Run on GPU (WebGPU)
const pipe = await pipeline('sentiment-analysis', 'model-id', {
device: 'webgpu',
});
```
### 4. Quantization Options
Control model precision vs. performance:
```javascript
// Use quantized model (faster, smaller)
const pipe = await pipeline('sentiment-analysis', 'model-id', {
dtype: 'q4', // Options: 'fp32', 'fp16', 'q8', 'q4'
});
```
## Supported Tasks
**Note:** All examples below show basic usage.
### Natural Language Processing
#### Text Classification
```javascript
const classifier = await pipeline('text-classification');
const result = await classifier('This movie was amazing!');
```
#### Named Entity Recognition (NER)
```javascript
const ner = await pipeline('token-classification');
const entities = await ner('My name is John and I live in New York.');
```
#### Question Answering
```javascript
const qa = await pipeline('question-answering');
const answer = await qa({
question: 'What is the capital of France?',
context: 'Paris is the capital and largest city of France.'
});
```From sediman-agent/OpenSkynet, Apache-2.0.
More from sediman-agent/OpenSkynet
- 0.705score
firecrawl-build-onboarding
firecrawl
Get Firecrawl credentials and SDK setup into a project.
SkillCFreshness: C★ 394Claude Code +9 - 0.699score
firecrawl-build-interact
firecrawl
Integrate Firecrawl `/interact` into product code for dynamic pages and browser actions after scraping.
SkillCFreshness: C★ 394Claude Code +9 - 0.699score
firecrawl-build-search
firecrawl
Integrate Firecrawl `/search` into product code and agent workflows.
SkillCFreshness: C★ 394Claude Code +9 - 0.699score
firecrawl-build-scrape
firecrawl
Integrate Firecrawl `/scrape` into product code for single-page extraction.
SkillCFreshness: C★ 394Claude Code +9 - 0.525score
expo-module
sediman-agent
Guide for creating and writing Expo native modules and views using the Expo Modules API (Swift, Kotlin, TypeScript).
SkillCFreshness: C★ 394Claude Code +9 - 0.525score
expo-observe
sediman-agent
Use for anything related to EAS Observe — adding `expo-observe` to an Expo project (AppMetricsRoot/ObserveRoot HOC, markInteractive, the useObserve hook, and…
SkillCFreshness: C★ 394Claude Code +9 - 0.525score
eas-update-insights
sediman-agent
Check the health of published EAS Updates: crash rates, install/launch counts, unique users, payload size, and the split between embedded and OTA users per…
SkillCFreshness: C★ 394Claude Code +9 - 0.525score
expo-cicd-workflows
sediman-agent
Helps understand and write EAS workflow YAML files for Expo projects.
SkillCFreshness: C★ 394Claude Code +9 - 0.522score
building-native-ui
sediman-agent
Complete guide for building beautiful apps with Expo Router.
SkillCFreshness: C★ 394Claude Code +9 - 0.520score
cloudflare
sediman-agent
Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship)…
SkillCFreshness: C★ 394Claude Code +9 - 0.520score
expo-brownfield
sediman-agent
Integrate Expo and React Native into an existing native iOS or Android app.
SkillCFreshness: C★ 394Claude Code +9 - 0.520score
cloud
sediman-agent
Documentation reference for using Browser Use Cloud — the hosted API and SDK for browser automation.
SkillCFreshness: C★ 394Claude Code +9
Signals
- Stars
- 394
- Forks
- 44
- Open issues
- 135
- Last commit (this folder)
- May 30, 2026 (5 months ago)
- Last release
- Jun 4, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 4.x
- License
- Apache-2.0
- Repository
- github.com/sediman-agent/OpenSkynet
- Website
- agent.sediman.com/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from huggingface
- 0.856score
hf-cli
huggingfaceOfficial
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and more on the Hugging Face Hub.
SkillAFreshness: A★ 11.2KClaude Code +9 - 0.856score
trl-training
huggingfaceOfficial
Post-train LLMs with TRL (Transformers Reinforcement Learning) — SFT, DPO, GRPO, KTO, and reward-model training.
SkillAFreshness: A★ 11.2KClaude Code +9 - 0.815score
hf-cloud-serving-image-selection
huggingfaceOfficial
Pick the right serving container for a SageMaker model deployment and find its current image URI.
SkillBFreshness: B★ 11.2KClaude Code +9 - 0.815score
huggingface-spaces
huggingfaceOfficial
Build, deploy, and maintain applications on Hugging Face Spaces — Gradio / Docker / Static SDKs, ZeroGPU and dedicated hardware, model loading, debugging…
SkillBFreshness: B★ 11.2KClaude Code +9 - 0.815score
train-sentence-transformers
huggingfaceOfficial
Train or fine-tune sentence-transformers models across `SentenceTransformer` (bi-encoder, dense or static embedding model for retrieval, similarity…
SkillBFreshness: B★ 11.2KClaude Code +9 - 0.815score
hf-cloud-sagemaker-production-defaults
huggingfaceOfficial
Create a SageMaker endpoint (real-time, real-time scale-to-zero, or async) with autoscaling, CloudWatch alarms, and tagging enabled by default.
SkillBFreshness: B★ 11.2KClaude Code +9
Cite this page
transformers-js skill. Agent Mart. https://agentmart.dev/skills/sediman-agent-transformers-js (last updated 2026-10-24)