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

@ri-dev/react-cursor-kit

v1.0.0

Published

React customizable cursor kit: custom mouse, cursor follower, trailing cursor, and animated cursor components

Readme

React Cursor Kit

A powerful and highly customizable cursor component for React applications. Create beautiful, smooth cursor effects that enhance your website's user experience with dynamic animations and interactive hover states.

✨ Features

  • 🎨 Fully Customizable - Control every aspect of your cursor's appearance
  • 🖱️ Smart Hover Detection - Automatically detects and responds to clickable elements
  • 📱 Mobile Optimized - Gracefully handles touch devices
  • 🛠️ TypeScript Ready - Full type definitions included

🚀 Installation

npm install @ri-dev/react-cursor-kit
# or
yarn add @ri-dev/react-cursor-kit
# or
pnpm add @ri-dev/react-cursor-kit

📖 Basic Usage

The simplest way to get started:

import React from 'react';
import CursorKit from '@ri-dev/react-cursor-kit';

function App() {
  return (
    <>
      <CursorKit />
      <h1>Custom CursorKit!</h1>
      <button>Hover me to see the magic!</button>
    </>
  );
}

export default App;

🎛️ Props Reference

Inner Cursor Properties

| Prop | Type | Default | Description | |------|------|---------|-------------| | innerSize | number | 7 | Diameter of the inner cursor circle in pixels | | innerColor | string | '#ff0000' | Background color of the inner cursor | | innerOpacity | number | 1 | Opacity of the inner cursor (0.0 - 1.0) | | innerBorderWidth | number | 1 | Border thickness of the inner cursor in pixels | | innerBorderStyle | string | 'solid' | CSS border style (solid, dashed, dotted, etc.) | | innerBorderColor | string | '#ff0000' | Color of the inner cursor border | | innerBorderRadius | number \| string | '50%' | Border radius of the inner cursor | | innerStyle | CSSProperties | {} | Additional custom styles for the inner cursor |

Outer Cursor Properties

| Prop | Type | Default | Description | |------|------|---------|-------------| | outerSize | number | 50 | Diameter of the outer cursor circle in pixels | | outerColor | string | 'transparent' | Background color of the outer cursor | | outerOpacity | number | 0.8 | Opacity of the outer cursor (0.0 - 1.0) | | outerScale | number | 1 | Scale multiplier for the outer cursor | | outerBorderWidth | number | 1 | Border thickness of the outer cursor in pixels | | outerBorderStyle | string | 'solid' | CSS border style for the outer cursor | | outerBorderColor | string | '#ff0000' | Color of the outer cursor border | | outerBorderRadius | number \| string | '50%' | Border radius of the outer cursor | | outerStyle | CSSProperties | {} | Additional custom styles for the outer cursor |

Behavior Properties

| Prop | Type | Default | Description | |------|------|---------|-------------| | trailingSpeed | number | 10 | Animation speed of the trailing effect (higher = slower) | | showSystemCursor | boolean | false | Whether to keep the default system cursor visible |

🎨 Styling Examples

Neon Glow Effect

  <CursorKit
    innerSize={8}
    innerColor="#00ffcc"
    innerBorderWidth={0}
    innerStyle={{
      boxShadow: '0 0 15px #00ffcc, 0 0 30px #00ffcc, 0 0 60px #00ffcc',
      borderRadius: '50%'
    }}
    outerSize={50}
    outerColor="transparent"
    outerBorderWidth={2}
    outerBorderStyle="solid"
    outerBorderColor="#00ffcc"
    outerStyle={{
      boxShadow: '0 0 20px #00ffcc, 0 0 40px #00ffcc',
      borderRadius: '50%'
    }}
    trailingSpeed={12}
  />

Fire Cursor

<CursorKit
  innerSize={6}
  innerColor="#ff3c00"
  innerStyle={{
    boxShadow: '0 0 15px #ff3c00, 0 0 30px #ff9a00',
    borderRadius: '50%'
  }}
  outerSize={45}
  outerColor="transparent"
  outerBorderWidth={2}
  outerBorderStyle="solid"
  outerBorderColor="#ff9a00"
  outerStyle={{
    boxShadow: '0 0 25px #ff3c00, 0 0 50px #ff9a00',
    borderRadius: '50%'
  }}
  trailingSpeed={10}
/>

⸆⸉ TypeScript Support

Full TypeScript definitions included:

export interface CursorKitType {
  innerSize?: number;
  innerColor?: string;
  innerOpacity?: number;
  innerBorderWidth?: number;
  innerBorderStyle?: string;
  innerBorderColor?: string;
  innerBorderRadius?: number | string;
  innerStyle?: CSSProperties;

  outerSize?: number;
  outerColor?: string;
  outerOpacity?: number;
  outerBorderWidth?: number;
  outerBorderStyle?: string;
  outerBorderColor?: string;
  outerBorderRadius?: number | string;
  outerStyle?: CSSProperties;

  trailingSpeed?: number;
  showSystemCursor?: boolean;
}

export interface PositionType {
  x: number;
  y: number;
}

📄 License

MIT © 2025 React Cursor Kit