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

@dkcli/cli

v0.4.0

Published

Mathematical design CLI for palettes, scales, contrast, layout, motion, and CSS analysis.

Readme

DesignKit CLI

CI Packages Docs npm version

DesignKit generates palettes, type and spacing scales, CSS tokens, and component proof reports for designers and frontend developers.

Proof reports evaluate mathematical constraints. CSS audits analyze source declarations and inferred backgrounds. Neither establishes rendered accessibility. For evidence scope and strict checks, see Proof-driven design.

Install the CLI

To install the published CLI, run:

npm install -g @dkcli/cli

Generate design outputs

The following commands generate a design proof, a palette, a fluid scale, and a source CSS audit:

dk perfect --seed "#D96F32" --ratio perfect-fourth --motion snappy
dk palette "#D96F32" --harmony split-complementary --json
dk scale --fluid --ratio perfect-fourth --base-min 15 --base-max 19
dk audit --css CSS_FILE

Replace CSS_FILE with the path to a CSS file.

To enforce failed or unsupported checks in CI, add --strict to supported proof and audit commands. Artifact generation without --strict can return a report that contains failures.

Packages

The workspace contains these packages:

  • @dkcli/cli: the dk and dkcli command-line tools
  • @dkcli/core: design math, proof contracts, and component recipe compilation
  • @dkcli/tokens: theme generation and CSS and JSON emitters
  • @dkcli/components: Svelte 5 components with compiled recipes and themes

Command families

The following table groups the commands by purpose:

| Family | Commands | Purpose | | --- | --- | --- | | Proof | perfect, contrast, target, audit | Evaluate design constraints and source CSS | | Foundations | palette, distinct, scale, text, typeset, linebreak | Generate color and type systems | | Motion | ease, jerk | Generate motion curves | | Layout | layout, compose, saliency, future | Solve layout constraints and estimate composition metrics | | Projects | project verify, project qualify, project patch | Verify, measure, and revise portable theme projects | | Components and content | components, cms | Verify recipes and manage DKCMS content |

Author and qualify a theme

Theme projects record font stacks, semantic tokens, motion settings, viewport widths, revisions, reviews, and measured browser evidence. The workbench and CLI compile the same public engine. Browser qualification uses a running workbench and binds its results to the authored inputs and exact package artifacts.

For the format, commands, and evidence scope, see Theme projects. A portable example is in Theme project examples.

Run the examples

Both examples install package tarballs built from this checkout:

  • Svelte starter: field entry, selection, save, and clear
  • Release desk: a SvelteKit demo with release creation, review, filters, server validation, and theme preferences

To build and verify Release desk, run:

pnpm example:sveltekit:verify

In Appearance, import theme JSON exported from the workbench.

Develop locally

Use Node.js 22 and pnpm 10.33.0.

  1. To activate the repository's pnpm version, run:

    corepack enable
    corepack prepare [email protected] --activate
  2. To install dependencies, run:

    pnpm install --frozen-lockfile
  3. To inspect source CLI commands, run:

    pnpm dk --help
  4. To verify code changes, run:

    pnpm preflight

Verify a release

Before publishing packages, run:

pnpm release:verify

The gate checks lint, types, tests, builds, package metadata, and tarball contents. It also verifies the standalone CLI and both example apps from packed artifacts. Release desk checks include server actions and Chromium flows with and without JavaScript.

Documentation

The documentation build generates its theme through the source CLI. To build the VitePress site, run:

pnpm docs:build

For development and package guidance, see these documents:

DesignKit uses the MIT License.