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 setupuseEmotionDetector()as a React Hook
You can find the main package here:
👉 https://www.npmjs.com/package/lightweight-expression-detector
git clone https://github.com/Anant-404/Demo_lightweight-expression-detector.git
cd Demo_lightweight-expression-detectornpm installnpm run devThen open http://localhost:3000 in your browser.
- Real-time webcam feed using MediaPipe Face Landmarker
- Emotion detection using facial blendshapes
- React and non-React examples
- Main Package: https://www.npmjs.com/package/lightweight-expression-detector
- MediaPipe Tasks Vision: https://github.com/googlesamples/mediapipe
MIT © 2025 Anant Mishra