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

leapgim

v0.1.6

Published

Leap Motion gesture input mapper

Downloads

7

Readme

Leap Motion gesture input mapper

Leapgim

Leapgim takes hand signs as input and outputs other types of emulated computer input.

Installation

Prequisites: Robot.js dependencies.

Setup:

npm install leapgim

Usage

Run the service with:

npm start

Open a browser at "http://localhost:3000" for audio.

Background

Leap Motion is a sensor device for detecting detecting hand motions. A neat little piece of future technology. My first thought was that I would love to use the controller as a mouse replacement. Unfortunately the controller works with Leap-enabled software only. The goal of this project is to enable the Leap Motion controller to be used with other software also.

The basic premise of this project is that the Leap Motion controller can't replace both the mouse and the keyboard, since all the possible actions that a user could perform with a keyboard and a mouse can't feasibly be mapped into hand gestures. But it doesn't have to! A significant portion of desktop applications could be used with a small subset of possible mouse and keyboard input.

This project provides a way to define custom hand gestures and evoke actions based on those gestures. Supported actions include mouse and keyboard control, and shell scripts. Hand gesture customization allows timed, multi-step gestures to be defined, and includes as much as possible from the offical API.

Leapgim can be used as a prototyping platform to easily test a variety of hand gestures and their reliability.

Default Gesture Mapping

  • Mouse grab/release: Generic grabbing pose

  • Mouse 1: Pinch index finger

  • Mouse 2: Pinch ring finger

  • Mouse scrollwheel: Circle gesture while mouse is inactive

Leapgim takes hand signs as input and outputs other types of emulated computer input. Recipes are how signs are translated into actions. The term is borrowed from IFTTT (https://ifttt.com/).

signs -> recipe -> actions

Action Types

Mouse buttons:

  • Mouse button down
  • Mouse button up
  • Mouse button click
  • Mouse scroll up
  • Mouse scroll down

Mouse movement:

  • Move
  • Freeze
  • Unfreeze
  • Toggle freeze

Keyboard:

  • Key down
  • Key up
  • Key tap

Misc:

  • Compound action - execute a list of actions
  • Exec - run scripts
  • Load profile

Misc:

  • Compound (trigger a list of other actions)
  • System (run a script)
  • Reconfigure (load another profile / client config)

Signs

Signs are hand gestures in leapgim context. A sign can contain contain information about hand hand poses, native gestures, and time constraints.

We use the term 'sign' to provide a clear distinction from leap motion's native gestures circle, swipe, key tap and screen tap.