# Hugging Face JavaScript Samples

Hugging Face JavaScript/TypeScript examples using Transformers.js for NLP, computer vision, and multimodal tasks in browser and Node.js

> Canonical page: https://elysiatools.com/en/samples/huggingface-js

- **Category:** Machine Learning

- **Keywords:** huggingface, transformers, nlp, javascript, typescript, browser, node.js, ai, ml

## Overview

Hugging Face JavaScript/TypeScript examples using Transformers.js for NLP, computer vision, and multimodal tasks in browser and Node.js

## Examples

- **Hugging Face Transformers.js Basics**: Getting started with Transformers.js for running pre-trained models in JavaScript
- **Multimodal Tasks with Transformers.js**: Vision-language models for image captioning, visual question answering, and document processing
- **Transformers.js Node.js API Server**: Build REST APIs and backend services with Transformers.js for production deployments

## When to use

- Use this sample set when you want reference inputs for Hugging Face JavaScript Samples.
- Use it to preview output formats and compare related sample variants.

## How it works

- Open a sample entry to inspect the prepared example payload or asset.
- Compare it with related tools to understand how the workflow connects.

## Use cases

- Hugging Face Transformers.js Basics
- Multimodal Tasks with Transformers.js
- Transformers.js Node.js API Server

## Frequently asked questions

### What is included in Hugging Face JavaScript Samples?

This page includes curated sample entries, related tools, and neighboring sample collections for Hugging Face JavaScript Samples.

## Related tools

- [AI Face Age & Gender](https://elysiatools.com/en/tools/ai-face-age-gender): Estimate age and gender for each detected face
- [AI Face Align & Crop](https://elysiatools.com/en/tools/ai-face-align-crop): Detect, align, and crop faces into individual images (zip when multiple)
- [AI Face Detection](https://elysiatools.com/en/tools/ai-face-detection): Detect faces in an image and return bounding box coordinates
- [AI Face Expressions](https://elysiatools.com/en/tools/ai-face-expressions): Classify facial expressions per face (neutral/happy/sad/angry/fearful/disgusted/surprised)
- [AI Face Landmarks](https://elysiatools.com/en/tools/ai-face-landmarks): Detect facial landmarks (68 points) and return coordinates for each face
- [AI Face Descriptors](https://elysiatools.com/en/tools/ai-face-descriptors): Generate 128D face embeddings for each detected face
- [AI Face Recognition (Gallery)](https://elysiatools.com/en/tools/ai-face-recognition): Build a gallery from labeled faces and recognize faces in a target image
- [AI Face Compare (1:1)](https://elysiatools.com/en/tools/ai-face-compare): Compare two images, output embedding distance and match boolean by threshold, only compare the first face in each image

## Related content

- [ML5.js Samples](https://elysiatools.com/en/samples/ml5js): ML5.js machine learning examples for creative coding, image classification, pose detection, and neural networks
- [PDF Samples](https://elysiatools.com/en/samples/pdf-samples): Generated PDF samples from tools dated 2026-02-01 to 2026-02-10
- [Cloudflare Workers Samples](https://elysiatools.com/en/samples/cloudflare-workers): Cloudflare Workers edge computing examples including API proxies, image processing, and edge-first applications
- [Gradio Samples](https://elysiatools.com/en/samples/gradio): Machine learning model rapid deployment examples using Gradio for creating interactive web interfaces with minimal code
- [Hugging Face Deploy Samples](https://elysiatools.com/en/samples/huggingface-deploy): Hugging Face model deployment examples including Transformers, Diffusers, and Gradio applications with Docker and cloud deployment
- [Rome JavaScript Toolchain Samples](https://elysiatools.com/en/samples/rome): Rome JavaScript toolchain examples including configuration, linting, formatting, bundling, and project management
