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

@shbernal/rampkit-cli

v0.2.0

Published

CLI and interactive TUI for generating Tailwind-style color ramps with rampkit.

Readme

@shbernal/rampkit-cli

The command line and the interactive TUI for rampkit. Give it one color and get the whole Tailwind-style scale around it, 50 through 950.

bun add -g @shbernal/rampkit-cli

CLI

rampkit '#451dc7'                           # tailwind-v4 @theme, the default
rampkit rebeccapurple -f css-vars -n brand  # another format, another token name
rampkit '#0ea5e9' --color oklch -f css-vars # emit oklch() values
rampkit '#0ea5e9' -f json --preview         # JSON to stdout, swatches to stderr
echo '#0ea5e9' | rampkit -f hex-array       # read the color from stdin
rampkit --help

Formats: tailwind-v4, css-vars, tailwind-config, json, hex-array. Value syntaxes via --color: hex (the default), rgb, hsl, oklch. Data goes to stdout so piping stays clean, --preview swatches go to stderr. Every flag is listed in docs/cli.md.

TUI

Run rampkit with no arguments in an interactive terminal. The screen splits into three panes and Shift+Tab cycles focus through them.

  • Input. ↑/↓ cycle the notation (hex, oklch, rgb, hsl), re-expressing the same color; Tab cycles the value fields, then the token name. The scale lists each stop beside its swatch and marks your preserved input with *.
  • Ramp. The same geometry the flags set: anchor, chroma, hue-shift, lmin, lmax. Tab moves between them, ↑/↓ adjust the focused one, up for more, and for the anchor one stop up the scale above. ←/→ do the same ten steps at a time.
  • Output. ↑/↓ cycle the color syntax, Tab cycles the output format. Enter copies the result to the clipboard, over SSH too.

Esc and Ctrl-C quit. On a terminal too short for all three panes, and an 80x24 one is, the panes you are not in collapse to a summary line each. Shift+Tab to one expands it again.

Swatch blocks are painted in 24-bit sRGB, because that is all a terminal can paint; there is no oklch() escape sequence. Every stop is gamut-mapped into sRGB anyway, so the block shows the color the value denotes, but when you need the precise value, read the emitted text.

The full walkthrough is in docs/tui.md.

License

MIT © shbernal