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

@design-parity/baseline

v0.1.20

Published

Detect a repo's design-system maturity and, for a repo with no design system, bootstrap an opinionated committed baseline (tokens, design-map, check config, parity direction).

Downloads

2,740

Readme

@design-parity/baseline

Detect a repo's design-system maturity and, for a repo with no design system, bootstrap an opinionated committed baseline. This is the one place AI generates artifacts (see docs/PRINCIPLES.md, Principles 1, 3, 4, 5); the steady-state Action only runs what this writes.

Maturity rungs

detectMaturity(repoRoot) classifies a repo by scanning committed files, returning core's MaturityRung:

  1. machine-link — Figma Code Connect (figma.config.json or *.figma.{tsx,kt,swift,…}). → direction design-led.
  2. manifest — a design-map.json or a design-token source (*.tokens.json, a tokens/ tree, Style Dictionary). → code-led.
  3. bootstrap — neither. → code-led, and bootstrap.

Direction resolution is delegated to @design-parity/policy so setup and the Action's late fallback agree.

Bootstrap (bootstrap rung)

planBootstrap decides what to write; applyBootstrap writes it. Every rung gets a concrete parity direction in policy's committed .design-parity.jsonauto is never left behind. The bootstrap rung additionally gets:

  • design-tokens.json — Material 3 + WCAG AA + i18n-ready token baseline,
  • design-parity.checks.json@design-parity/checks's ChecksConfig (WCAG AA, hardcoded-string lint on),
  • design-map.json — components that authored a binding next to them — a @DesignRef("figma:…") annotation or a design-ref: comment — become real, high-confidence entries (source inferred from the ref). The rest, discovered by name convention, are surfaced as low-confidence review items to wire to a design source later. With no authored refs the manifest is an empty scaffold.

This is the design→code half of the binding: the code references its design element, and the resolver's buildReverseIndex inverts the manifest so a design node can answer "what implements me?" without Code Connect.

Compose Multiplatform (Principle 6)

detectMaturity also reports whether a repo is Compose Multiplatform (CMP) capablecmpCapable: boolean plus an evidence trail (cmp.signals) from a bounded scan of Gradle build files (build.gradle{,.kts}, settings.gradle*, libs.versions.toml). This is orthogonal to the maturity rung: a repo at any rung may or may not be CMP-capable.

When a repo is not CMP-capable, cmpSuggestion() returns a non-blocking advisory ("Compose Multiplatform would render candidates on the JVM/desktop with no emulator — consider it"), surfaced via plan.cmpSuggestion and the CLI. Never a gate — plain Jetpack Compose stays fully supported.

The live CMP render path (preferring compose-preview's desktop/JVM render in @design-parity/candidate when capable, plus a Compose-for-Web/wasm spike) is deferred — it needs the JVM/Compose toolchain. See docs/cmp.md.

CLI

design-parity-bootstrap [--dir <path>] [--direction design-led|code-led] [--yes] [--force]

Interactive setup, run once locally; commit the artifacts it writes. It refuses to run in CI — the GitHub Action enforces committed artifacts, it never bootstraps.