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/action

v0.1.26

Published

Integration layer: wires resolver, adapters, candidate, checks, diff, and policy into a parity run, and surfaces the verdict (CLI now; GitHub Action surface to follow).

Readme

@design-parity/action

The integration layer — it wires every other package into one parity run and renders the verdict the bot posts on a PR.

resolver ──(Correspondence[])──┐
                               ▼
        registry[source].resolve ──(DesignReference)──┐
                                                       ▼
   candidate render ──(CandidateRender)──►  diff + checks ──(Verdict)──┐
                                                                       ▼
            policy direction ───────────────►  ParityReport ──► markdown

What's here (this increment)

  • createAdapterRegistry() — the source → ReferenceAdapter map (figma / stitch / claude-design). It lives here because it's the one place that imports all three drivers; core must not depend on adapters.
  • orchestrate() — per component: resolve the reference via its adapter, pair with the candidate render, diff them, aggregate. Fail-soft: an adapter/diff error is captured and surfaced, never thrown, and never escalates the overall status — only real verdicts do. The parity direction decides whether a failure blocks (design-led) or is advisory (code-led).
  • resolveRunConfig() — loads the committed design-map.json and .design-parity.json (deterministic; no model, no network).
  • renderReport() — the single markdown comment (with a stable marker so the GitHub surface can update its own comment in place).
  • design-parity run CLI — a local run; candidate renders come from --candidates <file> for now (reproducible offline).

GitHub Action

action.yml + dist/cli/action.js auto-select a mode from the triggering event (mirroring the sibling compose-ai-tools apply action):

  • comment — a pull_request: read the changed files, keep the design-map.json components whose file changed (a PR that touches none is treated as non-UI and skipped), run the pipeline, and post/update a single verdict comment (idempotent via the report marker). Exits non-zero only when the direction blocks (design-led + a failure). If the repo has no committed design-map.json (parity isn't set up), it posts a one-time notice pointing at the interactive bootstrap (design-parity-bootstrap, #11) rather than guessing the design ↔ code mapping at run time — and never blocks.

  • baseline — a push to the development_branch (default main): render the full mapped surface, run the pipeline, and publish the browsable artifacts — a top-level README.md + index.html landing page (linking each component's report, with a "generated, do not edit" banner), each component's self-contained report.html triptych, a machine-readable verdict.json (a versioned BaselineSummary — carries formatVersion + $schema, validated against schema/verdict.schema.json; see docs/report-format.md), and — when the run exposes any design-system tokens — the aggregated table as DTCG at the stable tokens/design-system.tokens.json (linked from the index; the known location to point Claude Design's GitHub import at) — to a permanent artifact_branch (default design-parity/<dev-branch>). This gives a stable, always-current view of main's parity state without committing generated PNGs/HTML onto main, and a real baseline a PR can diff its candidate against. Requires contents: write.

    History accrues automatically. publishBaseline re-parents each run's tree on the existing branch tip (a linear commit chain, fast-forward push — no force), so the artifact branch already carries one commit per run. The landing page links a per-screen History to each report.html's commit log. Because report.html is deterministic, a run that doesn't change a screen touches no file and adds no commit noise — the history shows exactly the runs where a screen's code or mock actually changed.

  • skip — nothing applies (e.g. a push to a non-dev branch).

mode: baseline|comment|skip overrides the selector when needed.

# .github/workflows/design-parity.yml
on:
  pull_request:
  push:
    branches: [main]
jobs:
  parity:
    runs-on: ubuntu-latest
    permissions:
      contents: write       # baseline mode force-updates the artifact branch
      pull-requests: write  # comment mode posts the verdict comment
    steps:
      - uses: actions/checkout@v4
      # ... a prior step renders candidates -> candidates.json (or bundles) ...
      - uses: yschimke/design-parity/packages/action@main
        with:
          candidates: candidates.json        # CandidateRender[] …
          # candidate_bundles: out/previews   # … and/or compose-preview bundles
          # development_branch: main          # push here → baseline mode
          # artifact_branch: design-parity/main

The selector + surface logic (selectMode, postReport, componentsForChangedFiles, checkConclusion) and the artifact builders (baselineSummary, renderBaselineIndex) are pure and unit-tested; the git plumbing (publishBaseline) takes an injectable GitRunner so its orphan/re-parent/force-push sequence is unit-tested without a real remote.

Still to come (issue #8)

  • Live compose-preview rendering in the candidate provider (today candidates come from a precomputed CandidateRender[] / preview bundles).
  • Bundle + commit dist/ so the action is directly consumable (e.g. via ncc) and can be pinned as yschimke/design-parity/packages/action@<tag>.
  • Comment mode diffing the PR candidate against the published baseline (the verdict.json on the artifact branch) for regression detection.

Use

import { createAdapterRegistry, orchestrate, renderReport } from "@design-parity/action";

const report = await orchestrate({
  repoRoot,
  registry: createAdapterRegistry(),
  correspondences,            // from @design-parity/resolver
  candidate: (id) => renders.get(id),
  direction,                  // from @design-parity/policy
});
console.log(renderReport(report));