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

ui-craft-mcp

v0.2.0

Published

ui-craft MCP server — deterministic design-quality gate (anti-slop, tokens, acceptance-bar, score)

Readme

ui-craft MCP Server

Deterministic design-quality gate exposed as a stdio MCP server. Complements the ui-craft skill (taste/judgment layer) — never duplicates it.

Install

npm install -g ui-craft-mcp
# or use npx (no install required):
npx ui-craft-mcp

Wiring

Copy .mcp.json.example from the repo root to .mcp.json in your project:

{
  "mcpServers": {
    "ui-craft": {
      "command": "npx",
      "args": ["ui-craft-mcp"]
    }
  }
}

Claude Desktop, Cursor, and other MCP clients read .mcp.json automatically.

Tools

check_anti_slop

Scans source code for anti-slop violations using the 38 deterministic rules from ui-craft-detect. In-process (no subprocess spawn).

Input (one required):

  • code — inline source string
  • path — file or directory path

Output:

{
  "findings": [{ "severity": "error|warning", "rule": "...", "file": "...", "line": 42, "message": "..." }],
  "summary": { "total": 3, "errors": 2, "warnings": 1 }
}

tokens_lint

Static regex analysis for off-system token values. Flags: raw hex colors, non-scale border-radius px, non-8pt spacing px, and magic z-index integers. Token scale source: references/tokens.md.

Rule IDs: tokens/color, tokens/radius, tokens/spacing, tokens/z-index.

Input (one required): code or path

Output: same findings[] + summary shape as check_anti_slop.

acceptance_bar

Returns the deterministic acceptance checklist for a UI surface. Data only — no scoring or judgment. Scoring is the caller's responsibility using check_anti_slop + tokens_lint results.

Input:

  • surface — one of: dashboard, landing, auth, generic

Output:

{
  "surface": "dashboard",
  "items": [{ "id": "dash-01", "description": "...", "category": "hierarchy" }]
}

Surfaces:

  • dashboard — SaaS dashboard acceptance bar (from recipe-dashboard.md)
  • landing — Landing page acceptance bar (from recipe-landing.md)
  • auth — Auth screen acceptance bar (from recipe-auth.md)
  • generic — 10 finish-bar passes (from finish-bar.md)

Boundary: Taste vs. Deterministic

The MCP server is the checks layer. The SKILL.md is the taste layer.

This server contains ZERO taste, judgment, or aesthetic preference rules. All such rules live exclusively in skills/ui-craft/SKILL.md. The server produces identical output for identical input — it is a deterministic gate, not an AI evaluator.

acceptance-data — Regen on Recipe Edit

src/acceptance-data.mjs is hand-derived from the recipe and finish-bar reference files. It must be updated manually when any of these files change:

  • references/recipe-dashboard.md## Acceptance bar section
  • references/recipe-landing.md## Acceptance bar section
  • references/recipe-auth.md## Acceptance bar section
  • references/finish-bar.md — 10 pass descriptions

v1 is manual — no generator script. A generator is deferred. When updating: edit src/acceptance-data.mjs directly (an ESM module, export default { … }), following the existing { id, description, category } schema. It's a module rather than JSON so it inlines into the published bundle and loads from source on every Node version.

Development

cd mcp
npm install
npm test        # node --test (zero external deps)
node src/server.mjs  # run server directly

Node Version

Requires Node.js >= 18.