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 🙏

© 2024 – Pkg Stats / Ryan Hefner

youverse-webcam-component

v1.0.8

Published

This web component is designed to manage selfie photos while incorporating facial detection capabilities.

Downloads

44

Readme

https://yk-website-images.s3.eu-west-1.amazonaws.com/LogoV4_TRANSPARENT.png

Youverse Webcam Component

License Version

Getting Started

npm install youverse-webcam-component

Integration via NPM

Install youverse-webcam-component:

npm i youverse-webcam-component

Import youverseWebcam from youverse-webcam-component into your .js file:

// If you use module bundler
import { youverseWebcam } from 'youverse-webcam-component';

// If you don't use module bundler
import { youverseWebcam } from './node_modules/youverse-webcam-component/js/dist/youverse-webcam.min.js';

Add the component name to the .html file.

<youverse-webcam 
    cancel-verification 
    change-camera
></youverse-webcam>

Integration via CDN

Connect the script in your .html file. Here is the CDN link: https://www.jsdelivr.com/package/npm/:package@:version/:file

For example:

<script src="https://cdn.jsdelivr.net/npm/youverse-webcam-component@latest/js/dist/youverse-webcam.min.js"></script>

Add the component name to the .html file.

<youverse-webcam 
    cancel-verification 
    change-camera
    locale="en"
></youverse-webcam>

Attributes

Attribute | Info | Data type | Default Value | Values
-------------------------|------------------------------------------------------------------------------------------------------|---------------|---------------------------------------------------------|------------------ face-position-check | Option for guided face positioning | boolean | true | true, false
cancel-verification | Option to cancel verification. If true, an option to cancel de verification will appear | boolean | false | true, false
change-camera | Option to change camera. If true and if exist multiple cameras, an icon to switch camera will appear | boolean | true | true, false
locale | The language of the component interface | string | en | en, pt, es
color | The color of the component interface | string | #492280 | hex color string title-text | Text for the component title. Translation based on the language selected | string | Take a selfie | string
info-text | Text for the component info. Translation based on the language selected | string | Make sure that your face is in the frame and is visible | string

Events

You can subscribe to the component events.

For example:

document.addEventListener('NEXT_STEP_EVENT', (event) => console.log(event.detail)); // Event

Type of events:

| Event | Description | Event Handling | |------------------------------|----------------------------------------------------------------|--------------------------------------------------------------| | NEXT_STEP_EVENT | Event triggered when a selfie is taken | Handled by a designated event listener in the application(listener) | | CANCEL_EVENT | Event triggered when cancellation occurs | Handled by a designated event listener in the application(listener) | | RESPONSE_NEXT_STEP_EVENT | Event to communicate with the component after NEXT_STEP_EVENT | Dispatched by the application to signal handling components(dispatch) | | RESPONSE_CANCEL_EVENT | Event to communicate with the component after CANCEL_EVENT | Dispatched by the application to signal handling components(dispatch) |

Response Events

Type of events:

Event | Response Parameters | Usage | Description
------------------------------|-------------|------|---------------------------------------------------------------- NEXT_STEP_EVENT |{ detail: { image: string } } | event.detail.image | The event returns an image
CANCEL_EVENT | null | null | The event has no return

For more information please contact us.