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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@deekshaaa/kinetic-ui

v0.2.0

Published

An advanced, high-performance gesture library for React with contactless MediaPipe hand tracking.

Readme

Kinetic UI

Kinetic UI is an advanced, high-performance gesture library for React. It radically differs from basic gesture implementations by utilizing a high-speed callback architecture that completely bypasses React's render loop (useState) for continuous events, allowing for complex spring physics at a silky smooth 60fps utilizing the standard motion library.

It uniquely includes pioneering features such as Contactless MediaPipe Hand Tracking out of the box as a standardized hook.

Installation

Install the library along with its peer dependencies:

npm install @deekshaaa/kinetic-ui
npm install motion @mediapipe/tasks-vision

Note: The motion library is the modernized, upgraded version of what was previously known as framer-motion.

The Architecture & API

Instead of returning state variables that cause UI-blocking re-renders, every hook in Kinetic UI accepts a callback function and passes a highly detailed context object.

Basic Usage (useDrag)

import { useDrag } from '@deekshaaa/kinetic-ui';
import { motion, useMotionValue, useSpring } from 'motion/react';

function DraggableObject() {
  const x = useMotionValue(0);
  const y = useMotionValue(0);

  // Elegant rubberbanding physics
  const springX = useSpring(x, { stiffness: 800, damping: 35 });
  const springY = useSpring(y, { stiffness: 800, damping: 35 });

  const bind = useDrag(({ offset, active }) => {
    // These update directly in the DOM, skipping React's reconciliation!
    x.set(offset.x);
    y.set(offset.y);
  });

  return <motion.div {...bind} style={{ x: springX, y: springY }} />;
}

Available Hooks

useSwipe

Detects rapid swipe gestures accurately using a dual threshold of distance and velocity over time. Prioritizes rapid flings natively over slow draws.

const bind = useSwipe(({ direction, velocity, last }) => {
    if (last) console.log(`Swiped ${direction} at ${velocity} px/ms`);
}, { threshold: 50 });

useDrag

Tracks total offset distance over continuous draggings. Enjoy full unconstrained freedom, or explicitly bound the gesture. Returns { offset, movement, velocity, active, first, last }.

useScroll

Debounced and smooth wheel scrolling tracking.

const bind = useScroll(({ offset, delta }) => {
    console.log("Scrolled smoothly down by:", delta.y);
});

usePinch & useRotate

Advanced multi-touch manipulation. Bind them both to the same element to handle standard map/photo manipulation effortlessly.

useTap

Smart tap detection using hysteresis boundaries to tell the difference between an intended tap and a slightly wobbly drag.

useSensor

Streams DeviceOrientation raw metrics. (Note: Apple and Modern Browsers require HTTPS to utilize device hardware sensors).

🚀 useContactless (MediaPipe Web)

A cutting-edge inclusion. Utilizing MediaPipe, this tracks the user's hand landmarks via webcam and maps their index finger into a coordinate plane to drive motion UI elements without touching the screen!

Beyond raw coordinates, it has built-in Semantic Gesture Recognition.

How to test swipes: Move your wrist rapidly and horizontally across the screen view (at least 12% across the frame within 300ms) to trigger a swipe.

import { useContactless } from '@deekshaaa/kinetic-ui';

const { start, stop, isReady } = useContactless((results) => {
    // 1. Raw Coordinates Mapping
    if (results.landmarks && results.landmarks.length > 0) {
       const fingerTipX = results.landmarks[0][8].x;
       // ... drive UI springs directly
    }

    // 2. Semantic Actions
    if (results.semanticGesture) {
        switch (results.semanticGesture) {
            case 'SWIPE_LEFT':
               console.log("Skipping to next slide...");
               break;
            case 'SWIPE_RIGHT':
               console.log("Going back...");
               break;
            case 'FIST':
               console.log("Grabbing/Pausing item");
               break;
            case 'OPEN_PALM':
               console.log("Hovering / Stopping");
               break;
            case 'PRANAM':
               // Namaste gesture recognition (Bringing two hands together)
               console.log("Greetings!");
               break;
        }
    }
});

Demos

A complete interactive Glassmorphism playground showcasing every hook is provided in the library repository.