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

pixeljury-core

v0.1.5

Published

Node.js visual QA engine for rendering pages with Playwright, detecting static design issues, and composing PixelJury scores.

Downloads

34

Readme

pixeljury-core

pixeljury-core is the Node.js rendering and deterministic scoring engine behind PixelJury: it captures web pages with Playwright, detects static design/accessibility issues, and composes review artifacts.

npm version npm downloads license Node

  • Render desktop and 390px mobile screenshots from a URL.
  • Detect deterministic hard fails such as contrast, mobile overflow, small touch targets, and tiny text.
  • Identify common AI UI tropes including default fonts, gradient panels, repeated cards, and AI-marketing badges.
  • Compose findings, vision scores, screenshots, and markdown outputs into the PixelJury score format.

Install

npm install pixeljury-core
pnpm add pixeljury-core
yarn add pixeljury-core
bun add pixeljury-core

Most developers should install the CLI instead:

npx pixeljury review http://localhost:3000

Quickstart

import { analyze, buildScore, render, summarizeForVision } from "pixeljury-core";

const rendered = await render("http://localhost:3000", { outDir: "pixeljury" });
const findings = analyze(rendered.snapshot);
const staticSummary = summarizeForVision(findings, rendered.snapshot);

const score = buildScore({
  url: "http://localhost:3000",
  findings,
  screenshots: rendered.screenshots,
  vision: {
    dimensions: {
      typography: { score: 70, reason: "Readable type scale." },
      hierarchy: { score: 70, reason: "Primary content is clear." },
      color: { score: 70, reason: "Palette is coherent." },
      spacing: { score: 70, reason: "Spacing is mostly consistent." },
      originality: { score: 70, reason: "Some distinctive choices." },
      polish: { score: 70, reason: "No major finish issues." },
    },
    visionTropes: [],
  },
});

console.log(staticSummary);
console.log(score.score);

What You Can Build With It

  • A custom visual QA command that uses PixelJury's deterministic checks.
  • CI jobs that render a page and inspect score.json.
  • Internal dashboards that combine static signals with your own model or review workflow.
  • Tests around contrast, mobile overflow, touch-target size, or repeated AI UI patterns.

Why pixeljury-core?

  • The checks are reproducible. Static signals do not require an LLM or network call.
  • It ships the same engine as the CLI. Integrations can use the exact renderer and composer behind npx pixeljury.
  • It separates deterministic evidence from model judgment. You can pair the static summary with any scoring layer.
  • The scoring contract is inspectable. Rubric constants and output composition live in source.

Compared To Alternatives

| Need | pixeljury-core | Common alternative | |---|---|---| | Browser-rendered design signals | Captures screenshots and a DOM/CSS snapshot before running PixelJury checks. | DOM-only linters miss final layout and rendered sizes. | | Accessibility smoke checks | Includes contrast, mobile overflow, touch target, and tiny-text findings. | Axe and Lighthouse are broader and more mature accessibility/performance tools. | | AI UI trope detection | Includes default font, gradient panel, repeated-card, and AI-copy heuristics. | General-purpose test libraries do not include these design-specific rules. |

API

import {
  RenderError,
  analyze,
  buildScore,
  contrastRatio,
  parseColor,
  relativeLuminance,
  render,
  renderCritique,
  renderFixPrompt,
  rubric,
  summarizeForVision,
  writeOutputs,
} from "pixeljury-core";

Key exports:

  • render(url, options): uses Playwright to capture screenshots and a page snapshot.
  • analyze(snapshot): returns deterministic findings.
  • summarizeForVision(findings, snapshot): prepares a compact summary for a vision model.
  • buildScore({ url, findings, vision, screenshots }): composes the final score payload.
  • writeOutputs(outDir, score): writes critique.md, fix-prompt.md, and score.json.
  • contrastRatio, parseColor, relativeLuminance: contrast utilities.

Compatibility And Limitations

  • Requires Node.js 18 or newer.
  • Uses Playwright and Chromium; run npx playwright install chromium if the browser is missing.
  • It does not call a vision model. Use pixeljury-vision or the pixeljury CLI for model-backed scoring.
  • The package exports JavaScript modules; TypeScript declaration files are not currently published.

Links

License

MIT