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

@raincheck/glyph-react

v0.1.0

Published

Focused, tree-shakeable React hooks written in TypeScript.

Downloads

92

Readme

@raincheck/glyph-react

Small, focused, tree-shakeable React hooks with TypeScript declarations.

npm install @raincheck/glyph-react react
import { useOnOff, useStateRef } from "@raincheck/glyph-react/state";

React 18 or 19 is required as a peer dependency. Only explicit category subpath imports are supported.

Hooks

| Subpath | Hooks | | -------- | ---------------------------------- | | array | useRandomPool | | document | useDocumentTitle | | render | useRenderCount, useRenderPrint | | state | useOnOff, useStateRef, useDirtyRef | | time | useDebounce, useToggleInterval |

  • useRandomPool(values) draws without replacement, refilling from the latest values when exhausted. Empty pools return undefined.
  • useDocumentTitle(pageTitle, siteName) accepts the application name explicitly.
  • useRenderCount() counts render attempts, including development renders.
  • useRenderPrint(id, enabled) logs only when explicitly enabled. Pass the application's development flag.

Development

npm install
npm run verify

Publishing

Run in Git Bash from this repository:

npm run release

The script verifies the package, prompts for an npm token without displaying it, and publishes the current version publicly to npm. The token is passed through the script's environment and cleared when the script exits; it is never written to a file. The committed .npmrc contains only the NPM_TOKEN placeholder.

The token must have publishing access to the package scope. npm may require a 2FA challenge unless the token permits bypassing 2FA.

To verify and preview publishing without uploading or prompting for a token:

npm run release -- --dry-run

Use a new package version for each release.