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

leapjs-plugins

v0.1.12

Published

A collection of useful plugins for LeapJS

Downloads

34

Readme

LeapJS Plugins

This repository holds a collection of independent plugins which extend the functionality of LeapJS itself.

leap-plugins.js is a collection of amazing plugins to get you started quickly.

  • Hand Entry Emit events when a hand enters of leaves the field of view.
  • Hand Hold Save data on to hands or fingers which will be persisted between frames.
  • Screen Position Get the on-screen position of any Leap-space point.
  • Version Check Ensure a minimum protocol version when running your app.
  • Playback Record hand-data from the Leap, compress it, and use it to animate your app.
  • Transform Translate, rotate, and scale Leap Motion data. Easily.
  • Bone Hand Drop THREE.js Hands in to any scene, or quick-start with the default scene.

leap-plugins-utils.js explores what can be done with LeapJS Plugins.

Other libraries

  • Widgets 3D input elements - buttons and planes.
  • Rigged Hand Easily add virtual 3d hands to any web page with THREE.js.

Download

developer.leapmotion.com/downloads/javascript#plugins

Usage

Include LeapJS >= 0.4.0 and either javascript file of an individual plugin or a collection. Configure your controller to use the plugin, and that functionality will be available to you. See hand-entry for docs on hand-entry itself.

<!-- your index.html -->
<script type="text/javascript" src="js/leap-0.6.4.js"></script>
<script type="text/javascript" src="js/lib/leap.hand-entry.js"></script>
<script type="text/javascript">
  Leap.loop()
    .use('handEntry')
</script>

Examples

Examples are available on the developer gallery live editor and in subfolders here of individual plugins.

To run them on localhost, you'll need a web server to resolve asset paths.

> python -m SimpleHTTPServer

Contributing

Open an issue!

  • https://github.com/leapmotion/leapjs-plugins/issues

Open a pull request!

  • Read up on Making Plugins, then:
  • Make a fork, name your branch, add your plugin or fix.
  • Add your name, email, and github account to the CONTRIBUTORS.txt list, thereby agreeing to the terms and conditions of the Contributor License Agreement.
  • Open a Pull Request. If your information is not in the CONTRIBUTORS file, your pull request will not be reviewed.