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

nui-commander

v0.0.8

Published

Based on block detect samples of webcam surface. nui commander support msgbox yes/no, ...

Downloads

19

Readme

nui-commander

Motion detect on video stream is used to create and control UI Menu system with basic GUI controls, actions-events, popup or creating dom element or canvas staff. Interface must be drawn on video tag in AR manner. Objective is to create total manipulation only with your hands in the air with minimum CPU price usage.

screenshot

On canvas indicator table blocks canvas object will accumulate movement action and after some little period on idle it ill fall to the opacity 0. This is just example of usage!

Whole Example

Branch two Message Box NUI with two button options yes or no

index.html

<html>
<head>
  <link rel="stylesheet" href="css/style.css">
  <script type="module" src="myNuiApp.js" ></script>
</head>
<body>
  <div id="container">
    <div id="nui-commander-container">
      <video id="webcam" autoplay width="640" height="480"></video>
      <canvas id="canvas-source" width="640" height="480"></canvas>
      <canvas id="canvas-blended" width="640" height="480" style="display: none;"></canvas>
      <div id="xylo"></div>
    </div>
  </div>
</body>
</html>

myNuiApp.js

  import {
    indicatorsBlocks,
    canvasEngine,
    interActionController,
    nuiMsgBox } from "nui-commander";

  var nuiCommander = {};
  nuiCommander.drawer = new canvasEngine( interActionController );
  nuiCommander.drawer.draw();

  nuiCommander.indicatorsBlocks = indicatorsBlocks;
  nuiCommander.drawer.elements.push( nuiCommander.indicatorsBlocks );

  nuiCommander.drawer.elements.push(
    new nuiMsgBox( "Do you love this project?", function ( answer ) {
      console.log( answer );
      nuiCommander.drawer.removeElementByName( "nuiMsgBox" );
      if (answer == "yes") {
        console.log( "Good answer is yes." );
        setTimeout( () => {
          nuiCommander.drawer.elements.push(
            new nuiMsgBox(
              "Do you wanna to activate some commander options?",
              function (answer) {
                nuiCommander.drawer.removeElementByName( "nuiMsgBox" );
                if (answer == "yes") {
                  alert("ok , interest idea.");
                }
              }
            )
          );
        }, 100);
      } else {
        console.log( "Ok good buy." );
        window.location.href = "https://google.com";
      }
    } )
  );

  console.info( "nui-commander controls attached." );

Example for mask

Adding Block partial backgrounds

nuiCommander.indicatorsBlocks.icons = [];
for ( var x = 0; x < 64; x++ ) {
  var commanderIconField = new Image();
  commanderIconField.src = "images/tile.png";
  commanderIconField.onload = function () {
    nuiCommander.indicatorsBlocks.icons.push( this );
  };
}

screenshot

Objective:

  • web instance [priory]
    • must work on chrome, opera, safari, firefox and all mobile versions.
    • video stream basic movement motion detect
    • make small canvas object drawer and create interface and logic for actions(some method call)
    • must have a excellent input output logic to be reusable in many ways.

nui-commander user in vuletube:

screenshot

Nui-commander used like submodules in

https://github.com/zlatnaspirala/vue-typescript-starter

LICENCE:

Based on project:

https://github.com/soundstep/magic-xylophone MIT