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

ds-bench

v0.1.0

Published

Static audit for design-system agent readiness.

Readme

DS Bench

Static audit for design-system agent readiness.

DS Bench terminal report

DS Bench is a diagnostic tool for the loop: score -> findings -> fixes -> re-run delta. It scans a local design-system checkout and reports where the system is hard for coding agents to understand: missing examples, unclear APIs, weak usage guidance, token drift, deprecation traps, and stale agent metadata.

Quickstart

Requires Node.js 22 or newer.

npx ds-bench audit <path>

Examples:

npx ds-bench audit .
npx ds-bench audit ./packages/react --verbose
npx ds-bench audit . --json > audit-report.json

The audit is deterministic and local. It does not call AI APIs, crawl docs sites, or fetch remote URLs.

Output Modes

Default output is a human report with the composite score, category scores, top findings, and concrete fixes.

npx ds-bench audit .

Use --compact for a short CI-oriented summary:

npx ds-bench audit . --compact

Use --verbose for all findings, evidence, and receipts:

npx ds-bench audit . --verbose

Use --json for the machine-readable AuditReport:

npx ds-bench audit . --json > audit-report.json

Configuration

Pass a JSON config with --config:

{
  "exclude": ["storybook-static/**"],
  "weights": {
    "docs": 25,
    "api": 20,
    "guidance": 15,
    "tokens": 15,
    "deprecation": 15,
    "agent": 10
  }
}

exclude entries are glob patterns applied during shared file discovery. weights may override any category for private analysis.

Published field-survey numbers always use the versioned default weights:

| Category | Default weight | | --- | ---: | | Docs & examples | 25 | | API clarity | 20 | | Usage guidance | 15 | | Token hygiene | 15 | | Deprecation signalling | 15 | | Agent metadata | 10 |

Principles

  1. Diagnostic first: the report should explain what lowered the score and how to improve it.
  2. Static first: ds-bench audit is fast, local, deterministic, and does not need credentials.
  3. Signals over tools: checks measure the information agents need, not allegiance to one documentation stack.

Intrinsic understandability dominates the score. Clear docs, examples, APIs, usage guidance, token discipline, and deprecation signalling matter more than adding an agent-facing file after the fact.

JSON Contract

The AuditReport schema is published at schemas/audit-report.schema.json.

The JSON report is the v0 comparison artifact. To measure a remediation delta, save two reports and diff them externally:

npx ds-bench audit . --json > before.json
# make changes
npx ds-bench audit . --json > after.json

Composite scores are comparable only when both rubricVersion and registryFingerprint match. The report shape will not break naive JSON diffing without a rubricVersion bump.

Design & Process

The design record is published alongside the code:

  • PRD — problem statement, users, and scope for the v0 static tier.
  • CONTEXT.md — the project's ubiquitous language: runs, tiers, brownfield axes, battery terms.
  • ADRs — why this is a tool first (0001), static-first with a behavioral tier to follow (0002), and why intrinsic understandability dominates the score (0003).
  • Check reference and pilot notes — every check's rationale, plus audit runs against MUI, Chakra, Polaris, and Cedar used to calibrate the rubric.

Package Contents

The npm package publishes only the files needed for the CLI, schema, and README image:

  • docs/assets/readme-report.svg
  • dist/src
  • schemas

Fixtures, pilot reports, scratch issues, and development docs stay out of the tarball.