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

rhythmguard

v3.20.1

Published

The rhythmguard command: zero-config spacing-scale audit for CSS, SCSS and Tailwind. `npx rhythmguard` runs the CLI of stylelint-plugin-rhythmguard.

Readme

rhythmguard

Nobody chose 13px. rhythmguard measures off-scale spacing in your CSS, SCSS and Tailwind class strings against the scale your project already defines, and tells you the nearest steps.

npm version npm downloads License: MIT

Start here

npx rhythmguard

No install, no config. It detects your stack and token files, infers your spacing scale from your own tokens, audits the current directory, and prints the exact .stylelintrc.json (and ESLint snippet for Tailwind) to paste. This is the whole run on Bootstrap's v6-dev branch, unedited:

Commands

npx rhythmguard audit ./src --format markdown                  # a report to share in a pull request
npx rhythmguard audit ./src --write-baseline                   # record today's drift
npx rhythmguard audit ./src --since-baseline --fail-on-new-drift   # in CI: fail only on new drift
npx rhythmguard audit ./src --format github                    # inline annotations in GitHub Actions
npx rhythmguard audit ./src --plan                             # propose a decision for every off-scale value
npx rhythmguard fix ./src --value 10px --to "var(--space-sm)"  # one decision as one reviewable change
npx rhythmguard init                                           # starter config for your stack
npx rhythmguard doctor                                         # check the setup

Reports come as text, Markdown, JSON, HTML, GitHub annotations or a README badge. Full reference: docs/AUDIT.md. In GitHub Actions, PetriLahdelma/rhythmguard-action runs the audit, comments on the pull request and fails on new drift in one step.

Where the scale comes from

Your own tokens, in this order: token files you name, spacing custom properties and Tailwind v4 @theme in your stylesheets, Sass variables and maps, and installed design-token packages (Bootstrap, Carbon, Primer, PatternFly, Radix, Mantine and others). The report says which source it used. When nothing is found it falls back to a 4px scale and says so.

What this package is

The command name. It depends on stylelint-plugin-rhythmguard and runs its CLI; the Stylelint rules, the audit and the ESLint companion (eslint-plugin-rhythmguard) live there. Once the plugin is a dev dependency of your project, npx rhythmguard resolves to the same command without this package.

Compatibility

Node 20.19 or newer. Reads CSS, SCSS (with postcss-scss installed) and class strings in JS, TS, JSX, TSX, Vue, Svelte and Astro files. Makes no network requests.

License

MIT. Issues and contributions: github.com/PetriLahdelma/stylelint-plugin-rhythmguard.