npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cutos/ai-face-service

v4.0.0

Published

CUTOS 4.0 Gateway-backed AI face service SDK.

Readme

CUTOS AI Face Service

@cutos/ai-face-service is the CUTOS 4.0 SDK for the Gateway-backed AI face service. It provides face collection creation, registration, lookup, search, comparison, removal, and clearing.

This package does not perform browser-side face detection. Use @cutos/ai-face-detector to detect and capture a face, then send its fullFrame or face image to this service.

Gateway Compatibility

The SDK preserves the existing @cutos/gw-client protocol and the ai-face2 Gateway service. The LWA owns Gateway connection setup and passes its connected IPC instance to FaceService.

By default, the service uses the existing default face collection for the current Gateway. Set lwaName to opt into an LWA-specific collection.

create, register, search, compare, and unregister use the original service protocol. userId, saved images, getByUserId, list, and clear require an ai-face2 deployment that includes the face-record management commands.

Install

npm install @cutos/ai-face-service @cutos/gw-client

Usage

import { CoreAPI } from '@cutos/core'
import { IPC } from '@cutos/gw-client'
import { FaceService } from '@cutos/ai-face-service'

const device = await CoreAPI.getDeviceInfo()
const gateway = new IPC(device.gwUrl, {
  gwi: device.gwi,
  username: device.id,
  token: device.token,
})

const faces = new FaceService(gateway)
await faces.init()

const id = await faces.register(faceImage, { userId: 'u-1001', saveImage: true })
const record = await faces.getByUserId('u-1001', { includeImage: true })
const match = await faces.search(faceImage)
const score = await faces.compare(imageA, imageB)
await faces.unregister(id)

faceImage, imageA, and imageB accept either a raw base64 string or a data:image/...;base64,... URL.

userId is optional, but unique within the selected collection when supplied. Registration images are only persisted when saveImage is true; getByUserId and list only return them when includeImage is true. Search results never return saved registration images. clear() removes every registered face from the selected collection.

const records = await faces.list({ limit: 20 })
await faces.clear()

Development

npm run build
npm pack