← Catalog

No. 120 · ai-ml

Transformers.js

Run ML models in the browser

Version 1.0.0 License MIT Format SKILL.md

Run ML models in the browser with Transformers.js: text classification, image segmentation, speech recognition, and deployment to web apps.

When to use this skill

  • Running a model in the browser
  • Building a client-side ML app
  • Using Transformers.js for inference

Core concepts

This skill provides guidance on transformers.js best practices, patterns, and common pitfalls. It is designed to be loaded on demand when a relevant task is detected.

Installation

curl -LO https://opencode-skills.example/downloads/ai-ml/transformers-js.zip
unzip transformers-js.zip -d ~/.config/opencode/skills/

Restart OpenCode — the skill loads automatically.

When it triggers

  • running a model in the browser
  • building a client-side ML app
  • using Transformers.js for inference