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

react-move-safe-button

v1.0.1

Published

## The motivation

Readme

React Move Safe Button

The motivation

It has been frustrating for me to mistakenly click a button which was sliding in the position of the button which I actually want to click. I figure out if the moved button was disabled for a second the user can just retry clicking without being distracted by unwanted action.

Developers might be able to implement this functionality by themselves, but it's somewhat tedious and I've never seen such a button, so I decided to build this and publish for other developers.

I chose React as the framework for this component because I'm a React developer and I believe it's most efficient to use most popular frontend framework to improve UX of many web applications all over the world.

I aimed to make this as simple as possible along with offering flexibility which most developers require when applying this to their projects.

Happy coding!

Demo for developers

You can try here!

How to use

You can learn how to use this component from Demo app code, E2E test code and JSDOC of the properties(you can check them out by hovering over props inside modern IDEs like VSCode).

NPM commands

yarn or yarn install

Obviously you need to run this before running any other command.

yarn start:demo

Starts demo app.

yarn build

Builds the component for publishing to NPM.

yarn build:demo

Builds demo app for deploying to hosting server.

yarn test

Runs all of main E2E tests and supplemental unit tests.

yarn test:jest:dev

Runs unit tests which watch the changes(Run this along with touching component's code).

CYPRESS_RECORD_KEY=<cypress-cloud-project-key> yarn test:cypress:ci

Runs and upload the results to Cypress Cloud(Here is mine).

yarn test:cypress:open

Opens Cypress testing tools(Run this along with touching component's code).