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

@ar-dacity/ardacity-splash-cursor

v1.0.2

Published

Interactive fluid simulation cursor effects for React applications

Readme

ArDacity Splash Cursor

A React component that creates beautiful fluid simulation cursor effects that follow the user's pointer movements, creating a splash-like visual effect. Based on WebGL shaders for high-performance animations.

Installation

npm install @ar-dacity/ardacity-splash-cursor

or

yarn add @ar-dacity/ardacity-splash-cursor

What Happens During Installation

When you install this package, it automatically:

  1. Detects your project structure
  2. Copies the SplashCursor component file into your components directory
  3. Adapts to React or Next.js projects
  4. Supports TypeScript by using the appropriate file extension (.tsx)

Usage

After installation, you can import the component directly from your components directory:

import SplashCursor from './components/SplashCursor';

function App() {
  return (
    <div>
      <h1>My Awesome Website</h1>
      {/* Add the SplashCursor component to enable the effect */}
      <SplashCursor />
    </div>
  );
}

Component Props

| Property | Type | Default | Description | |----------|------|---------|-------------| | SIM_RESOLUTION | number | 128 | Simulation resolution for the fluid dynamics. Higher values increase quality but reduce performance. | | DYE_RESOLUTION | number | 1440 | Resolution of the color/dye field. Higher values create more detailed color effects. | | DENSITY_DISSIPATION | number | 3.5 | How quickly the color dissipates. Lower values make colors last longer. | | VELOCITY_DISSIPATION | number | 2 | How quickly the motion dissipates. Lower values create longer-lasting movement. | | PRESSURE | number | 0.1 | Fluid pressure parameter that affects how the simulation behaves. | | PRESSURE_ITERATIONS | number | 20 | More iterations create more accurate fluid simulation at the cost of performance. | | CURL | number | 3 | Controls the amount of vorticity/swirl in the fluid. | | SPLAT_RADIUS | number | 0.2 | Size of the splash effect when cursor moves. | | SPLAT_FORCE | number | 6000 | Strength of the force applied to the fluid when cursor moves. | | SHADING | boolean | true | Enables 3D-like shading effect on the fluid. | | COLOR_UPDATE_SPEED | number | 10 | How quickly the colors change. | | BACK_COLOR | object | { r: 0.5, g: 0, b: 0 } | The background/base color for the fluid effect (RGB values between 0-1). | | TRANSPARENT | boolean | true | Whether the background should be transparent. |

Customization Examples

You can customize the fluid simulation by adjusting the props:

<SplashCursor 
  SPLAT_RADIUS={0.3}
  SPLAT_FORCE={8000}
  CURL={5}
  BACK_COLOR={{ r: 0, g: 0.3, b: 0.5 }}
/>

Performance Considerations

For optimal performance:

  • Lower the SIM_RESOLUTION and DYE_RESOLUTION on lower-end devices
  • Disable SHADING if performance is an issue
  • Consider reducing PRESSURE_ITERATIONS for better performance

Browser Compatibility

The SplashCursor component is compatible with all modern browsers that support WebGL.

License

MIT