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

@denizeffects/bracket-cursor

v0.1.0

Published

Bracket cursor for React. A dot that follows the pointer and brackets that snap around whatever you point at.

Readme

bracket-cursor

bracket cursor for react. a small dot follows the pointer, and two bracket marks leave its side to embrace whatever interactive element you rest on. magnetic targeting, four glyph shapes, hover labels and a blend mode for mixed grounds. zero dependencies, ssr safe, desktop only by design.

install

npm install @denizeffects/bracket-cursor

quick start

import { BracketCursor } from "@denizeffects/bracket-cursor";

// mount once, near the root of your app
<BracketCursor />

that is all. links, buttons and anything with data-cursor get embraced automatically. styles are injected on first mount.

glyphs

<BracketCursor glyphs="square" />   // [ ] the default
<BracketCursor glyphs="round" />    // ( ) soft
<BracketCursor glyphs="angle" />    // < > sharp
<BracketCursor glyphs="corners" />  // corner ticks, frames without walls
<BracketCursor glyphs={["{", "}"]} /> // any pair of strings

labels

give any target a small caption that rides under the brackets:

<button data-cursor-label="save draft">save</button>

turn the feature off entirely with labels={false}.

blend

pages that mix light and dark sections can run the cursor in difference mode, so it stays visible on any ground:

<BracketCursor blend />

scoped previews

hand the cursor a container and it lives only inside it. useful for demos, docs and product pages:

const ref = useRef<HTMLDivElement>(null);

<div ref={ref} data-cursor-void>
  ...
  <BracketCursor within={ref} />
</div>

data-cursor-void makes any page level cursor yield inside that region, so two instances never fight.

opting out

<video data-cursor="none" />

the custom cursor hides and the native cursor returns over that element.

props

| prop | type | default | notes | | --- | --- | --- | --- | | glyphs | "square" \| "round" \| "angle" \| "corners" \| [string, string] | "square" | | | speed | "calm" \| "normal" \| "quick" | "normal" | tuned presets, not multipliers | | targets | string | links, buttons, labels, [data-cursor] | selector for what gets embraced | | padding | number | 9 | gap between bracket and target edge, px | | maxHeight | number | 96 | brackets stop growing past this, px | | dot | boolean | true | the trailing dot | | labels | boolean | true | read data-cursor-label from targets | | blend | boolean | false | mix-blend-mode difference | | zIndex | number | 100 | | | within | RefObject<HTMLElement> | | confine the cursor to one container |

theming

a few css custom properties, all optional:

:root {
  --bc-ink: #1b1a17;   /* color, defaults to currentColor */
  --bc-stroke: 1.5px;  /* line weight */
  --bc-dot: 5px;       /* dot size */
  --bc-glyph: 9px;     /* bracket width */
  --bc-label: 10px;    /* label font size */
}

accessibility

never mounts on touch or coarse pointers, so phones and tablets keep their native behavior. never mounts under prefers-reduced-motion. the native cursor is only hidden while the component is actually active, and every rendered part is aria-hidden and pointer-events: none.

license

mit