New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fancy-cursor

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fancy-cursor

fancy-cursor

latest
Source
npmnpm
Version
0.1.7
Version published
Maintainers
1
Created
Source

fancy-cursor

Stars Forks Issues Commits

npm Code Size

Live Demo

Introduction

  • A remake version of legendary cursor using typescript and lastest version of three.

Tech Stack

Screenshots

Installation

Using package manager

  • Install the package
npm i fancy-cursor
# or
yarn add fancy-cursor
# or
pnpm add fancy-cursor
  • Play with it
import FancyCursor from 'fancy-cursor';

addEventListener('load', () => {
  console.log(
    new FancyCursor({
      opacityDecrement: 0.85,
      sparklesCount: 128,
    })
  );
});

Using CDN

  • Put the code below inside the <head></head> tag, after the styles and replace <version> with an actual version (like 0.1.7)
<script type="importmap">
  {
    "imports": {
      "fancy-cursor": "https://cdn.jsdelivr.net/npm/fancy-cursor@<version>/bundle/esm/index.js"
    }
  }
</script>
  • Then we can play with it
<script type="module">
  import FancyCursor from 'fancy-cursor';

  addEventListener('load', () => {
    console.log(
      new FancyCursor({
        opacityDecrement: 0.85,
        sparklesCount: 128,
      })
    );
  });
</script>
  • Full example
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Fancy Cursor</title>
    <script type="importmap">
      {
        "imports": {
          "fancy-cursor": "https://cdn.jsdelivr.net/npm/fancy-cursor@0.1.6/bundle/esm/index.js"
        }
      }
    </script>
  </head>
  <body>
    <script type="module">
      import FancyCursor from 'fancy-cursor';

      addEventListener('load', () => {
        console.log(
          new FancyCursor({
            opacityDecrement: 0.85,
            sparklesCount: 128,
          })
        );
      });
    </script>
  </body>
</html>

Development

Follow these steps to set up the project locally on your machine.

Prerequisites

Make sure you have the following installed or downloaded on your machine:

Cloning the Repository

git clone https://github.com/yuran1811/fancy-cursor.git
cd fancy-cursor

Installation

  • Enable pnpm to build and run the project
corepack enable pnpm

Install the project dependencies:

pnpm install

Running the Project

pnpm dev

Open http://localhost:5173 in your browser to view the project.

References

FAQs

Package last updated on 25 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts