transformers-js

Run machine learning models in JavaScript and TypeScript environments.

3|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/nico-martin/skills --skill transformers-js
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: transformers-js
Source: https://github.com/nico-martin/skills/tree/main/transformers.js
Command: npx skills add https://github.com/nico-martin/skills --skill transformers-js

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows you to run state-of-the-art machine learning models directly within JavaScript/TypeScript applications, eliminating the need for separate backend servers or complex Python environments.

Core Features & Use Cases

  • On-Device ML: Execute NLP, computer vision, and audio models client-side in browsers or Node.js.
  • Wide Task Support: Covers text classification, translation, image recognition, speech-to-text, and more.
  • Use Case: Integrate real-time image classification into a web app to identify objects in user-uploaded photos, or use text summarization directly in a browser extension without sending data to a server.

Quick Start

Use the transformers-js skill to classify the sentiment of the text "I love this product!".

Frequently Asked Questions about transformers-js

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run machine learning models in JavaScript without a backend server?

You can run machine learning models in JavaScript entirely on the client side using transformers-js. It executes NLP, computer vision, and audio models directly in browsers or Node.js, eliminating the need for separate backend servers.

Can I perform on-device natural language processing and image classification in a web browser?

Yes, on-device natural language processing and image classification work directly in web browsers through transformers-js. It accelerates client-side inference using WebGPU and WASM, supporting real-time tasks like object detection and text summarization.

Does transformers-js support both browser and Node.js environments?

Transformers-js supports both browser and Node.js environments seamlessly. It enables the execution of advanced machine learning models across both platforms using a unified pipeline API for simplified model integration.

How do I integrate speech-to-text and text classification into a TypeScript application?

To integrate speech-to-text and text classification into a TypeScript application, use the transformers-js pipeline API. It provides a robust interface for simplified model integration across a wide spectrum of AI tasks.

What is the best way to accelerate client-side AI inference without Python?

The best way to accelerate client-side AI inference without Python is using transformers-js, which leverages WebGPU and WASM for fast execution. It allows you to run state-of-the-art models directly within JavaScript and TypeScript environments.

Are there limitations to running computer vision models client-side in web apps?

Running computer vision models client-side in web apps depends on browser support for WebGPU and WASM acceleration. While transformers-js handles execution directly in JavaScript, performance is constrained by the user's local device hardware capabilities.