Skip to content
Back to skills

Transformers Js

ASecurity

Use Transformers.js to run state-of-the-art machine learning models directly in JavaScript/TypeScript.

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
developmentjavascripttypescriptpythonjavareactnodegitapibackendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add huytran1120/vietnam-agentic-skills --skill transformers-js --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Transformers Js?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Transformers Js
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/huytran1120-transformers-js/badge)](https://www.skillsdirectory.com/skills/huytran1120-transformers-js)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: transformers-js
description: "Use Transformers.js to run state-of-the-art machine learning models directly in JavaScript/TypeScript."
risk: critical
source: https://github.com/huggingface/skills/tree/main/skills/transformers-js
source_repo: huggingface/skills
source_type: official
date_added: 2026-07-01
license: Apache-2.0
license_source: https://github.com/huggingface/skills/blob/main/LICENSE
---

# 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.

## Detailed Guide

Read [the detailed guide](references/detailed-guide.md) before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

## 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

## Limitations

- Use this skill only when the task clearly matches its upstream product or API scope.
- Verify commands, API behavior, pricing, quotas, credentials, and deployment effects against current official documentation before making changes.
- Do not treat generated examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.

### Runtime and model boundaries

The references mix stable APIs with v4/main-only examples (including ModelRegistry and `env.fetch`). Pin a tested library version and check its matching documentation; the unversioned main docs may require a source build. Model repositories need compatible ONNX exports, tokenizer/config files and supported backend operators; an `onnx/` folder alone does not prove compatibility. Respect each model's license and gated-access terms. Keep tokens server-side. Offline operation also requires local runtime/WASM assets; cache presence alone is insufficient.

Examples are illustrative and were not executed against downloaded models in this review. Larger models and lower precision do not guarantee better quality or faster inference. Browser unload handlers cannot guarantee asynchronous disposal; await explicit cleanup while the application is active. React examples require cancellation/unmount handling for pending loads and inference. Server deployments need authentication, input/rate limits, readiness checks and bounded shutdown before exposure.

Modified for catalog review on 2026-10-23; upstream attribution and Apache-2.0 metadata retained.

Files in this skill

  • SKILL.md2.9 KB
  • references/CACHE.md9.5 KB
  • references/CONFIGURATION.md11.2 KB
  • references/EXAMPLES.md16.2 KB
  • references/MODEL_ARCHITECTURES.md5.5 KB
  • references/MODEL_REGISTRY.md6.3 KB
  • references/PIPELINE_OPTIONS.md15.3 KB
  • references/TEXT_GENERATION.md8 KB
  • references/detailed-guide.md23.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.