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

lazercursor

v1.0.1

Published

A smooth, physics-driven custom cursor inspired by osu!lazer.

Readme

lazercursor 🎯

A smooth, physics-driven custom cursor inspired by osu!lazer. Framework-agnostic core + React adapter.


🚀 Installation

npm install lazercursor

⚛️ Usage in React

import { LazerCursorProvider } from "lazercursor/react"
import "lazercursor/styles/cursor.css"

function App() {
  return (
    <LazerCursorProvider>
      <YourApp />
    </LazerCursorProvider>
  )
}

🌐 Usage in Vanilla JS / Other Frameworks

import { LazerCursorEngine } from "lazercursor"
import "lazercursor/styles/cursor.css"

const el = document.createElement("div")
el.className = "starcursor-cursor"
document.body.appendChild(el)

new LazerCursorEngine(el, { useDamping: true, followerTauMs: 80 })

⚙️ Options

When creating the engine, you can pass an options object:

  • useDamping: boolean Enable smooth cursor damping (default: true). If set to false, the custom cursor will instantly follow the system cursor with no smoothing.

  • followerTauMs: number Damping strength in milliseconds (default: 60). Larger values → more “laggy” and elastic movement. Smaller values → cursor catches up faster.

Example:

new LazerCursorEngine(el, {
  useDamping: true,     // enable smooth damping
  followerTauMs: 100    // stronger "lag"
})

⚠️ Limitations / Known Issues

This library is designed for visual experiments, games, and demos — not for production websites. By default, it intercepts some browser behaviors in order to achieve a smooth cursor effect:

  • Disables right-click context menu (contextmenu event is prevented).
  • Disables dragging (dragstart is prevented).
  • Disables Edge browser hold-to-preview menu (touch/long-press menu).

Because of these restrictions, this cursor is not suitable for content-heavy or production apps where users rely on right-click menus, drag & drop, or accessibility features.

✅ Suitable for:

  • Interactive art projects
  • Game-like UIs
  • Landing pages with “wow effect”

🚫 Not suitable for:

  • Standard business apps
  • Forms / productivity tools
  • Sites where accessibility and standard mouse interactions are critical

📜 License

MIT © ZackMount