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

@stealthscale/provider-hotkeys

v0.1.0

Published

Publishes the keyboard shortcuts a page answers to, under this design system's own name.

Readme

@stealthscale/provider-hotkeys

@stealthscale/provider-hotkeys publishes the keyboard shortcuts a page responds to. It is TanStack's hotkeys under this design system's own name, and it adds nothing to them: a shortcut behaves the way that library documents it.

An application and every component import shortcuts from one place, which is the whole point of the rename. If this design system moves to another library or adds a default of its own, the change happens here rather than at every call site.

Install

pnpm add @stealthscale/provider-hotkeys @tanstack/react-hotkeys

The package peers on @tanstack/react-hotkeys and react. Install both.

Usage

Render the provider innermost, under everything else, because a shortcut is handled by whatever is on screen.

import { HotkeysProvider } from "@stealthscale/provider-hotkeys";

<HotkeysProvider>
  <Page />
</HotkeysProvider>;

Register a shortcut where it is handled.

import { useHotkey } from "@stealthscale/provider-hotkeys";

export function SearchField() {
  const ref = useRef<HTMLInputElement>(null);

  useHotkey("Mod+K", () => ref.current?.focus());

  return <input ref={ref} type="search" />;
}

Mod is the platform's own command key: Ctrl on Windows and Linux, on a Mac. Write a binding beside what it does with formatForDisplay, which returns Ctrl+K on Windows and ⌘ K on a Mac.

<kbd>{formatForDisplay("Mod+K")}</kbd>

The defaults

Every default is the library's own:

  • A shortcut stops the browser's action.
  • A shortcut stops the event propagating.
  • A shortcut is ignored while an input has focus, so typing k in a search field does not run a shortcut bound to k.

useDefaultHotkeysOptions reads what the provider settled on.

Reference

The package re-exports every name @tanstack/react-hotkeys exports, more than sixty of them, through a wildcard rather than a written list. The library is still below its first major, and a written list would drift on the release that adds a name. Read that library's own documentation for what each one does.

Note: the wildcard means this package's API is the library's API. A name the library adds appears here without a release of this package, and a name it removes disappears the same way. That is the intent for a package whose whole content is the rename.

Licence

MIT. See LICENSE.