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

biologreen-vue-sdk

v1.0.0

Published

The official Vue.js SDK for the BioLogreen Facial Authentication API.

Readme

BioLogreen Vue.js SDK

The official Vue.js SDK for the Bio-Logreen Facial Authentication API.

This SDK provides a headless Vue Composable (useBioLogreen) that manages camera access, real-time face detection, and API communication, giving you the flexibility to build a completely custom UI for your login and signup flows. (IT PROVIDES NO UI, SO YOU CAN CUSTOMISE YOUR UI)

Features

Headless by Design: Provides all the logic; you provide the UI.

Fully Reactive: Built with Vue's Composition API, providing reactive state (isLoading, faceDetected, etc.).

Promise-Based API: Modern async/await friendly functions (signupWithFace, loginWithFace) for clean component logic.

TypeScript Support: Fully typed for a superior developer experience.

Installation

npm install biologreen-vue-sdk face-api.js

Setup & Configuration

This SDK relies on face-api.js for face detection, which requires model files to be available in your application.

Download AI Models: You must download the tiny_face_detector model weights from the face-api.js repository.

Host the Models: Place the downloaded model files in your project's /public/models directory. The SDK will automatically fetch them from this location.

Quick Start: Usage Example

Here is a complete example of a login component that uses the useBioLogreen composable.

API Reference

useBioLogreen({ apiKey, videoRef, baseURL })

Parameters

apiKey (string, required): Your project's secret API key.

videoRef (Ref<HTMLVideoElement | null>, required): A Vue ref attached to your element.

baseURL (string, optional): A custom base URL for the Bio-Logreen API. Defaults to the production URL.

Return Values

isLoading (Ref): A reactive boolean that is true when an API call is in progress.

isInitializing (Ref): A reactive boolean that is true while the camera and AI models are loading.

faceDetected (Ref): A reactive boolean that is true when a face is visible in the camera.

error (Ref<string | null>): A reactive string containing an error message if an operation failed.

start(): An async function to initialize the camera and start face detection.

stop(): A function to stop the camera and clean up resources.

signupWithFace(options): An async function to trigger a signup. Returns a Promise.

loginWithFace(): An async function to trigger a login. Returns a Promise.

<!-- This is your custom UI. An overlay that turns green when a face is detected -->
<div class="overlay" :class="{ detected: faceDetected }"></div>

<!-- Show loading states and errors from the composable -->
<div v-if="isLoading" class="spinner">Processing...</div>
<div v-if="error" class="error-message">{{ error }}</div>

<button @click="handleLogin" :disabled="isLoading" class="action-button">
  Login with Face
</button>

Contributing Suggestions and contributions are welcome. Please open an issue or a pull request on the GitHub repository to suggest changes.

License This SDK is licensed under the MIT License with The Commons Clause. See the LICENSE file for more details.