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

@chromakit/core

v0.1.12

Published

Next-gen composable CLI color and layout toolkit: beautiful boxes, banners, tables, gradients, and more.

Readme

ChromaKit

Composable CLI color and layout toolkit: beautiful boxes, banners, tables, gradients, and more.

ChromaKit

A modern, fast, and expressive Node.js CLI styling & layout library for the next generation of command-line tools. Easily style text, draw boxes, banners, tables, progress bars, and more—with first-class TypeScript support and a clean, composable API.


Features

  • Color & Style: 16m+ color support, gradients, bold/underline/dim/inverse, easy composability.
  • Layouts: Draw banners, boxes, dividers, tables with headers and alignment.
  • Progress: Animated and static progress bars, multi-step and concurrent progress, spinners.
  • Animations: One-liner spinners, progress bar runners, advanced multi-line animation support.

Installation

pnpm add @chromakit/core
# Or
yarn add @chromakit/core
# Or
npm install @chromakit/core

Quick Usage

1. Color & Style

ChromaKit linearGradient

import { color, gradient } from 'chromakit/color';
import { bold, underline, dim, composeStyles } from 'chromakit/style';

console.log(color('Hello', 'magenta'));
console.log(gradient('Rainbow!', ['red', 'yellow', 'green', 'blue']));
console.log(bold(underline('Elite Output')));
console.log(composeStyles([bold, dim])('Elite + Dim'));

2. Banners & Boxes

ChromaKit banner

import { banner } from 'chromakit/layout/banner';
import { box } from 'chromakit/layout/box';

console.log(banner('🚀 ChromaKit Rocks!', { color: 'cyan', char: '~', spacing: true }));
console.log(
  box(['ChromaKit', 'Box example'], { title: 'Test', borderStyle: 'single', borderColor: 'cyan' }),
);

3. Dividers

ChromaKit dividers

import { divider } from 'chromakit/layout/divider';

console.log(divider({ color: 'green', char: '=', width: 50 }));

4. Tables

ChromaKit table

import { table } from 'chromakit/layout/table';

console.log(
  table(
    [
      ['foo', 42, 'bar'],
      ['baz', 3, 'qux'],
    ],
    {
      headers: ['Name', 'Value', 'Type'],
      align: ['left', 'right', 'center'],
      borderColor: 'blue',
      headerStyle: bold,
      cellStyle: (cell, row, col) => (col === 1 ? color(cell, 'yellow') : cell),
      padding: 1,
    },
  ),
);

5. Progress Bars (Static & Animated)

ChromaKit multibars

import { progressBar } from 'chromakit/layout/progress-bar';

console.log(progressBar(0.42, { width: 30, color: 'cyan', showPercent: true, border: true }));

Animated Progress Bar / Multi-Step

import { withProgressBar } from 'chromakit/animation/progress-animate';
import { withMultiStepProgress } from 'chromakit/animation/progress-multistep';

// Single-bar animation
await withProgressBar(
  async (update) => {
    for (let i = 0; i <= 100; ++i) {
      await sleep(18); // custom sleep util
      update(i / 100, `Progress: ${i}%`);
    }
  },
  { color: 'cyan', border: true },
);

// Multi-step progress (serial)
await withMultiStepProgress(
  [
    {
      label: 'Install',
      fn: async (update) => {
        for (let i = 0; i < 20; ++i) {
          await sleep(20);
          update?.(i / 20);
        }
      },
    },
    {
      label: 'Build',
      fn: async (update) => {
        for (let i = 0; i < 24; ++i) {
          await sleep(15);
          update?.(i / 24);
        }
      },
    },
    {
      label: 'Deploy',
      fn: async (update) => {
        for (let i = 0; i < 8; ++i) {
          await sleep(45);
          update?.(i / 8);
        }
      },
    },
  ],
  { color: 'green', border: true },
);

Multi-bar (Concurrent) Progress

import { multiProgress } from 'chromakit/animation/progress-concurrent';

const mp = multiProgress([
  { label: 'Download A', progress: 0, opts: { color: 'yellow' } },
  { label: 'Download B', progress: 0, opts: { color: 'magenta' } },
  { label: 'Download C', progress: 0, opts: { color: 'blue' } },
]);
for (let i = 0; i <= 100; i++) {
  mp.update(0, i / 100, `A: ${i}%`);
  mp.update(1, Math.min(i / 100 + 0.18, 1), `B: ${Math.round(Math.min(i + 18, 100))}%`);
  mp.update(2, Math.max(0, (i - 16) / 80), `C: ${Math.round(Math.max(0, i - 16))}%`);
  await sleep(13);
}
mp.stop('✅ All parallel jobs done!');

6. Spinners

ChromaKit spinner

import { startSpinner } from 'chromakit/animation/spinner';

const spinner = startSpinner('Loading awesome...');
await sleep(1000);
spinner.update('Almost done!');
await sleep(500);
spinner.stop('All done!');

API Reference

View the Reference Docs