<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/face-api-js-vklr6rjnm" -->

---
title: face-api.js | daily.dev
description: face-api.js is a JavaScript API built on the tensorflow.js core for face detection and recognition in browsers. It supports multiple models like SSD...
canonical: https://daily.dev/posts/face-api-js-vklr6rjnm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: face-api.js | daily.dev
og:description: face-api.js is a JavaScript API built on the tensorflow.js core for face detection and recognition in browsers. It supports multiple models like SSD...
og:url: https://daily.dev/posts/face-api-js-vklr6rjnm
og:image: https://api.daily.dev/og/posts/VKLR6rjnM.png
og:image:alt: face-api.js
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# face-api.js

**[Community Picks](https://daily.dev/sources/community)** · 13 min read · 838 upvotes · 20 comments

## Summary

face-api.js is a JavaScript API built on the tensorflow.js core for face detection and recognition in browsers. It supports multiple models like SSD MobileNetV1, Tiny Face Detector, and MTCNN, each optimized for different needs. The library also provides lightweight and fast 68-point face landmark detection, face recognition using a ResNet-34 model, and face expression recognition. It can be used both in browsers and Node.js environments and includes comprehensive examples for setup and usage.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://justadudewhohacks.github.io/face-api.js/docs/index.html>

## Community discussion

Top comments from developers on daily.dev.

**@snoupix** · 17 upvotes

> I'm not into AI programming (just yet) but I love the fact that you used The Big Bang Theory show characters to test your lib !
> Props on the documentation 🔥

**@ghost** · 3 upvotes

> The breakdown of the available models and their use cases is very informative, with clear and well-structured documentation Solid work! 👍

**@4natole** · 2 upvotes

> It works great, makes me want to add it to my porfolio and play with it 😄

**@noricode** · 1 upvotes

> Hotdog or not hotdog

**@faslin\_kosta** · 1 upvotes

> My door cam is going to get so smart after this article!

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#machine-learning](https://daily.dev/tags/machine-learning), [#javascript](https://daily.dev/tags/javascript), [#computer-vision](https://daily.dev/tags/computer-vision)

[View this post on daily.dev](https://daily.dev/posts/face-api-js-vklr6rjnm)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"face-api.js","url":"https://daily.dev/posts/face-api-js-vklr6rjnm","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/face-api-js-vklr6rjnm"},"datePublished":"2024-07-20T01:24:00.585Z","dateModified":"2024-10-05T16:33:26.028Z","description":"face-api.js is a JavaScript API built on the tensorflow.js core for face detection and recognition in browsers. It supports multiple models like SSD...","image":"https://media.daily.dev/image/fetch/s--lHS1cGsC--/f_auto,pg_1,q_auto/https://user-images.githubusercontent.com/31125521/42756818-0a41edaa-88fe-11e8-9033-8cd141b0fa09.gif?_a=BAMAMiZY0","thumbnailUrl":"https://media.daily.dev/image/fetch/s--lHS1cGsC--/f_auto,pg_1,q_auto/https://user-images.githubusercontent.com/31125521/42756818-0a41edaa-88fe-11e8-9033-8cd141b0fa09.gif?_a=BAMAMiZY0","isAccessibleForFree":true,"articleSection":"Community Picks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Community Picks","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community","url":"https://daily.dev/sources/community"},"commentCount":20,"discussionUrl":"https://daily.dev/posts/face-api-js-vklr6rjnm","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":838},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":20}],"keywords":"webdev,machine-learning,javascript,computer-vision","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"face-api.js"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/face-api-js-vklr6rjnm","comment":[{"@type":"Comment","text":"I’m not into AI programming (just yet) but I love the fact that you used The Big Bang Theory show characters to test your lib !\nProps on the documentation 🔥","datePublished":"2024-07-20T05:03:38.505Z","url":"https://daily.dev/posts/VKLR6rjnM#c-CrM2B3UKs","author":{"@type":"Person","name":"Snoupix","url":"https://daily.dev/snoupix","image":"https://avatars.githubusercontent.com/u/35530306?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":17}},{"@type":"Comment","text":"The breakdown of the available models and their use cases is very informative, with clear and well-structured documentation Solid work! 👍","datePublished":"2024-07-20T05:46:54.599Z","url":"https://daily.dev/posts/VKLR6rjnM#c-9H10LPZKr","author":{"@type":"Person","name":"Deleted user","url":"https://daily.dev/ghost","image":"https://media.daily.dev/image/upload/s--hNIUzLiO--/f_auto/v1705327420/public/ghost_vlftth"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"It works great, makes me want to add it to my porfolio and play with it 😄","datePublished":"2024-08-08T13:47:26.236Z","url":"https://daily.dev/posts/VKLR6rjnM#c-FWB0xl64L","author":{"@type":"Person","name":"anatole","url":"https://daily.dev/4natole","image":"https://avatars.githubusercontent.com/u/48732483?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Hotdog or not hotdog","datePublished":"2024-08-09T19:58:14.387Z","url":"https://daily.dev/posts/VKLR6rjnM#c-v6LiFHe5z","author":{"@type":"Person","name":"noricode","url":"https://daily.dev/noricode","image":"https://media.daily.dev/image/upload/v1672934357/avatars/avatar_v9I0Ty3qOPTDx9IvWetC0.jpg"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"My door cam is going to get so smart after this article!","datePublished":"2024-08-28T05:21:30.331Z","url":"https://daily.dev/posts/VKLR6rjnM#c-wgl3MuzyA","author":{"@type":"Person","name":"Vasil Kostadinov","url":"https://daily.dev/faslin_kosta","image":"https://media.daily.dev/image/upload/s--N-IW4iWG--/f_auto/v1722674095/avatars/avatar_qmI7pya78bleggKBsigYx"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

