Skip to content

A zero-dependency JavaScript package for real-time facial expression detection. Published on NPM with 95+ weekly downloads, optimized for efficiency and easy integration into web or AI apps.

Notifications You must be signed in to change notification settings

Anant-404/Demo_lightweight-expression-detector

Repository files navigation

Demo: lightweight-expression-detector

This is a demo project to test and showcase the lightweight-expression-detector npm package.

It includes examples of using both:

  • classifyBlendshapes() in a vanilla TypeScript setup
  • useEmotionDetector() as a React Hook

NPM Package

You can find the main package here:
👉 https://www.npmjs.com/package/lightweight-expression-detector

🚀 Getting Started

1. Clone this repository

git clone https://github.com/Anant-404/Demo_lightweight-expression-detector.git
cd Demo_lightweight-expression-detector

2. Install dependencies

npm install

3. Run the development server

npm run dev

Then open http://localhost:3000 in your browser.

What This Demo Shows

  • Real-time webcam feed using MediaPipe Face Landmarker
  • Emotion detection using facial blendshapes
  • React and non-React examples

Resources


MIT © 2025 Anant Mishra

About

A zero-dependency JavaScript package for real-time facial expression detection. Published on NPM with 95+ weekly downloads, optimized for efficiency and easy integration into web or AI apps.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published