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 🙏

© 2025 – Pkg Stats / Ryan Hefner

hand-gesture-controller

v1.0.5

Published

Hand gestures for applications using MediaPipe

Readme

React Hand Gesture Control

A powerful and intuitive React library that transforms web navigation through hand gesture recognition. Effortlessly scroll, swipe between pages, click elements, and take section or full page screenshots using simple hand gestures, eliminating the need for a mouse or keyboard. Enhance your web applications with smooth, hands-free control and modern gesture-driven interaction.


✅ Installation

npm install hand-gesture-controller

✅ Supported Gestures

☝️ Index finger only

  • Move your index finger up or down in front of the camera to scroll the page vertically — just like using a mouse wheel or trackpad.

☝️ Hold cursor on clickable element (1.5s)

  • Hold your index finger steady over a clickable element (like a button or link) for about 1.5 seconds to perform a click/tap action.

✌️ Two fingers - Index and middle

  • When you show two fingers, move them up or down to scroll the page — this provides a smoother and faster scroll compared to the single-finger gesture.

🖐 Four fingers pointing at the screen

  • Extend four fingers toward the camera to activate the swipe gesture.
  • Move your hand left or right to navigate between pages, for example:
    • Swipe left → right for Previous Page
    • Swipe right → left for Next Page

Fist (hold 2.5s)

  • Make a fist and hold it steady for about 2.5 seconds.
  • This triggers a screenshot of the visible part of your screen.

🖐 Palm (hold 2.5s)

  • Show your open palm (all five fingers extended) and hold for 2.5 seconds.
  • This takes a full-page screenshot, capturing the entire scrollable area of the page.

✅ Features

  • 🎯 Precision Cursor Control - Navigate with your index finger
  • 👆 Smart Click Detection - Automatically detects clickable elements (buttons, links, React components with onClick handlers)
  • 📜 Gesture-Based Scrolling - Intuitive up/down scrolling
  • 🔄 Page Navigation - Swipe to go forward/backward
  • 📸 Screenshot Capabilities - Capture viewport or full page
  • Framework Agnostic - Works with React, Next.js

✅ Usage Example

import "./globals.css";
import { HandGestureController } from "hand-gesture-controller";

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode,
}>) {
  return (
    <html lang="en">
      <body>
        <HandGestureController />
        {children}
      </body>
    </html>
  );
}

✅ Requirements

  • React 18+
  • Modern browser with camera/webcam support

📝 License

  • MIT