npm.io
2.3.0 • Published 2d ago

@supermousejs/core

Licence
MIT
Version
2.3.0
Deps
0
Size
70 kB
Vulns
0
Weekly
0
Stars
1

@supermousejs/core

The high-performance runtime engine for Supermouse v2.

It separates cursor intent (input, physics, logic) from rendering (visuals), exposing a deterministic plugin pipeline.

Installation

pnpm add @supermousejs/core

Basic Usage

import { Supermouse } from "@supermousejs/core";
// Import visuals separately to keep bundle size low
import { Dot } from "@supermousejs/dot";

const app = new Supermouse({
  smoothness: 0.15, // 0-1 (Physics damping)
  hideCursor: true // Auto-hide native cursor
});

app.use(Dot({ size: 8, color: "#f59e0b" }));

Documentation

Full documentation and interactive playground available at supermouse or check out the repo.

Keywords